gsd-remix 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/LICENSE +21 -0
- package/README.md +939 -0
- package/README.zh-CN.md +876 -0
- package/agents/gsd-advisor-researcher.md +127 -0
- package/agents/gsd-ai-researcher.md +133 -0
- package/agents/gsd-assumptions-analyzer.md +105 -0
- package/agents/gsd-code-fixer.md +517 -0
- package/agents/gsd-code-reviewer.md +371 -0
- package/agents/gsd-codebase-mapper.md +781 -0
- package/agents/gsd-debug-session-manager.md +314 -0
- package/agents/gsd-debugger.md +1452 -0
- package/agents/gsd-doc-classifier.md +168 -0
- package/agents/gsd-doc-synthesizer.md +204 -0
- package/agents/gsd-doc-verifier.md +217 -0
- package/agents/gsd-doc-writer.md +615 -0
- package/agents/gsd-domain-researcher.md +153 -0
- package/agents/gsd-eval-auditor.md +191 -0
- package/agents/gsd-eval-planner.md +154 -0
- package/agents/gsd-executor.md +603 -0
- package/agents/gsd-framework-selector.md +160 -0
- package/agents/gsd-integration-checker.md +470 -0
- package/agents/gsd-intel-updater.md +334 -0
- package/agents/gsd-nyquist-auditor.md +203 -0
- package/agents/gsd-pattern-mapper.md +335 -0
- package/agents/gsd-phase-researcher.md +841 -0
- package/agents/gsd-plan-checker.md +978 -0
- package/agents/gsd-planner.md +1251 -0
- package/agents/gsd-project-researcher.md +677 -0
- package/agents/gsd-research-synthesizer.md +247 -0
- package/agents/gsd-roadmapper.md +688 -0
- package/agents/gsd-security-auditor.md +155 -0
- package/agents/gsd-ui-auditor.md +495 -0
- package/agents/gsd-ui-checker.md +309 -0
- package/agents/gsd-ui-researcher.md +380 -0
- package/agents/gsd-user-profiler.md +171 -0
- package/agents/gsd-verifier.md +830 -0
- package/bin/install.js +7062 -0
- package/commands/gsd/add-backlog.md +79 -0
- package/commands/gsd/add-phase.md +43 -0
- package/commands/gsd/add-tests.md +41 -0
- package/commands/gsd/add-todo.md +47 -0
- package/commands/gsd/ai-integration-phase.md +36 -0
- package/commands/gsd/analyze-dependencies.md +34 -0
- package/commands/gsd/audit-fix.md +33 -0
- package/commands/gsd/audit-milestone.md +36 -0
- package/commands/gsd/audit-uat.md +24 -0
- package/commands/gsd/autonomous.md +46 -0
- package/commands/gsd/check-todos.md +45 -0
- package/commands/gsd/cleanup.md +23 -0
- package/commands/gsd/code-review-fix.md +52 -0
- package/commands/gsd/code-review.md +55 -0
- package/commands/gsd/complete-milestone.md +136 -0
- package/commands/gsd/debug.md +263 -0
- package/commands/gsd/discuss-phase.md +69 -0
- package/commands/gsd/do.md +30 -0
- package/commands/gsd/docs-update.md +48 -0
- package/commands/gsd/eval-review.md +32 -0
- package/commands/gsd/execute-phase.md +63 -0
- package/commands/gsd/explore.md +27 -0
- package/commands/gsd/extract_learnings.md +22 -0
- package/commands/gsd/fast.md +30 -0
- package/commands/gsd/forensics.md +56 -0
- package/commands/gsd/from-gsd2.md +47 -0
- package/commands/gsd/graphify.md +201 -0
- package/commands/gsd/health.md +22 -0
- package/commands/gsd/help.md +24 -0
- package/commands/gsd/import.md +37 -0
- package/commands/gsd/inbox.md +38 -0
- package/commands/gsd/ingest-docs.md +42 -0
- package/commands/gsd/insert-phase.md +32 -0
- package/commands/gsd/intel.md +179 -0
- package/commands/gsd/join-discord.md +19 -0
- package/commands/gsd/list-phase-assumptions.md +46 -0
- package/commands/gsd/list-workspaces.md +19 -0
- package/commands/gsd/manager.md +40 -0
- package/commands/gsd/map-codebase.md +71 -0
- package/commands/gsd/milestone-summary.md +51 -0
- package/commands/gsd/new-milestone.md +44 -0
- package/commands/gsd/new-project.md +46 -0
- package/commands/gsd/new-workspace.md +44 -0
- package/commands/gsd/next.md +28 -0
- package/commands/gsd/note.md +34 -0
- package/commands/gsd/pause-work.md +38 -0
- package/commands/gsd/plan-milestone-gaps.md +34 -0
- package/commands/gsd/plan-phase.md +52 -0
- package/commands/gsd/plan-review-convergence.md +52 -0
- package/commands/gsd/plant-seed.md +28 -0
- package/commands/gsd/pr-branch.md +25 -0
- package/commands/gsd/profile-user.md +46 -0
- package/commands/gsd/progress.md +25 -0
- package/commands/gsd/quick.md +173 -0
- package/commands/gsd/reapply-patches.md +331 -0
- package/commands/gsd/remove-phase.md +31 -0
- package/commands/gsd/remove-workspace.md +26 -0
- package/commands/gsd/research-phase.md +195 -0
- package/commands/gsd/resume-work.md +40 -0
- package/commands/gsd/review-backlog.md +62 -0
- package/commands/gsd/review.md +40 -0
- package/commands/gsd/scan.md +26 -0
- package/commands/gsd/secure-phase.md +35 -0
- package/commands/gsd/session-report.md +19 -0
- package/commands/gsd/set-profile.md +12 -0
- package/commands/gsd/settings.md +36 -0
- package/commands/gsd/ship.md +23 -0
- package/commands/gsd/sketch-wrap-up.md +31 -0
- package/commands/gsd/sketch.md +49 -0
- package/commands/gsd/spec-phase.md +62 -0
- package/commands/gsd/spike-wrap-up.md +31 -0
- package/commands/gsd/spike.md +46 -0
- package/commands/gsd/stats.md +18 -0
- package/commands/gsd/sync-skills.md +19 -0
- package/commands/gsd/thread.md +227 -0
- package/commands/gsd/ui-phase.md +34 -0
- package/commands/gsd/ui-review.md +32 -0
- package/commands/gsd/ultraplan-phase.md +33 -0
- package/commands/gsd/undo.md +34 -0
- package/commands/gsd/update.md +37 -0
- package/commands/gsd/validate-phase.md +35 -0
- package/commands/gsd/verify-work.md +38 -0
- package/commands/gsd/workstreams.md +69 -0
- package/get-shit-done/bin/gsd-tools.cjs +1263 -0
- package/get-shit-done/bin/lib/artifacts.cjs +52 -0
- package/get-shit-done/bin/lib/audit.cjs +757 -0
- package/get-shit-done/bin/lib/commands.cjs +1023 -0
- package/get-shit-done/bin/lib/config-schema.cjs +79 -0
- package/get-shit-done/bin/lib/config.cjs +463 -0
- package/get-shit-done/bin/lib/core.cjs +1794 -0
- package/get-shit-done/bin/lib/docs.cjs +267 -0
- package/get-shit-done/bin/lib/frontmatter.cjs +379 -0
- package/get-shit-done/bin/lib/graphify.cjs +494 -0
- package/get-shit-done/bin/lib/gsd2-import.cjs +511 -0
- package/get-shit-done/bin/lib/init.cjs +1878 -0
- package/get-shit-done/bin/lib/intel.cjs +639 -0
- package/get-shit-done/bin/lib/learnings.cjs +378 -0
- package/get-shit-done/bin/lib/milestone.cjs +283 -0
- package/get-shit-done/bin/lib/model-profiles.cjs +71 -0
- package/get-shit-done/bin/lib/phase.cjs +1058 -0
- package/get-shit-done/bin/lib/profile-output.cjs +1080 -0
- package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
- package/get-shit-done/bin/lib/roadmap.cjs +523 -0
- package/get-shit-done/bin/lib/schema-detect.cjs +238 -0
- package/get-shit-done/bin/lib/security.cjs +504 -0
- package/get-shit-done/bin/lib/state.cjs +1649 -0
- package/get-shit-done/bin/lib/template.cjs +226 -0
- package/get-shit-done/bin/lib/uat.cjs +288 -0
- package/get-shit-done/bin/lib/verify.cjs +1184 -0
- package/get-shit-done/bin/lib/workstream.cjs +495 -0
- package/get-shit-done/bin/repair-sdk.cjs +177 -0
- package/get-shit-done/contexts/dev.md +21 -0
- package/get-shit-done/contexts/research.md +22 -0
- package/get-shit-done/contexts/review.md +22 -0
- package/get-shit-done/references/agent-contracts.md +79 -0
- package/get-shit-done/references/ai-evals.md +156 -0
- package/get-shit-done/references/ai-frameworks.md +186 -0
- package/get-shit-done/references/artifact-types.md +131 -0
- package/get-shit-done/references/autonomous-smart-discuss.md +277 -0
- package/get-shit-done/references/checkpoints.md +808 -0
- package/get-shit-done/references/common-bug-patterns.md +114 -0
- package/get-shit-done/references/context-budget.md +49 -0
- package/get-shit-done/references/continuation-format.md +253 -0
- package/get-shit-done/references/debugger-philosophy.md +76 -0
- package/get-shit-done/references/decimal-phase-calculation.md +64 -0
- package/get-shit-done/references/doc-conflict-engine.md +91 -0
- package/get-shit-done/references/domain-probes.md +125 -0
- package/get-shit-done/references/executor-examples.md +110 -0
- package/get-shit-done/references/few-shot-examples/plan-checker.md +73 -0
- package/get-shit-done/references/few-shot-examples/verifier.md +109 -0
- package/get-shit-done/references/gate-prompts.md +100 -0
- package/get-shit-done/references/gates.md +70 -0
- package/get-shit-done/references/git-integration.md +295 -0
- package/get-shit-done/references/git-planning-commit.md +40 -0
- package/get-shit-done/references/ios-scaffold.md +123 -0
- package/get-shit-done/references/mandatory-initial-read.md +2 -0
- package/get-shit-done/references/model-profile-resolution.md +38 -0
- package/get-shit-done/references/model-profiles.md +145 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planner-antipatterns.md +89 -0
- package/get-shit-done/references/planner-gap-closure.md +62 -0
- package/get-shit-done/references/planner-reviews.md +39 -0
- package/get-shit-done/references/planner-revision.md +87 -0
- package/get-shit-done/references/planner-source-audit.md +73 -0
- package/get-shit-done/references/planning-config.md +460 -0
- package/get-shit-done/references/project-skills-discovery.md +19 -0
- package/get-shit-done/references/questioning.md +162 -0
- package/get-shit-done/references/revision-loop.md +97 -0
- package/get-shit-done/references/sketch-interactivity.md +41 -0
- package/get-shit-done/references/sketch-theme-system.md +94 -0
- package/get-shit-done/references/sketch-tooling.md +45 -0
- package/get-shit-done/references/sketch-variant-patterns.md +81 -0
- package/get-shit-done/references/tdd.md +330 -0
- package/get-shit-done/references/thinking-models-debug.md +44 -0
- package/get-shit-done/references/thinking-models-execution.md +50 -0
- package/get-shit-done/references/thinking-models-planning.md +62 -0
- package/get-shit-done/references/thinking-models-research.md +50 -0
- package/get-shit-done/references/thinking-models-verification.md +55 -0
- package/get-shit-done/references/thinking-partner.md +96 -0
- package/get-shit-done/references/ui-brand.md +160 -0
- package/get-shit-done/references/universal-anti-patterns.md +63 -0
- package/get-shit-done/references/user-profiling.md +681 -0
- package/get-shit-done/references/verification-overrides.md +227 -0
- package/get-shit-done/references/verification-patterns.md +612 -0
- package/get-shit-done/references/workstream-flag.md +111 -0
- package/get-shit-done/templates/AI-SPEC.md +246 -0
- package/get-shit-done/templates/DEBUG.md +169 -0
- package/get-shit-done/templates/README.md +76 -0
- package/get-shit-done/templates/SECURITY.md +61 -0
- package/get-shit-done/templates/UAT.md +265 -0
- package/get-shit-done/templates/UI-SPEC.md +100 -0
- package/get-shit-done/templates/VALIDATION.md +76 -0
- package/get-shit-done/templates/claude-md.md +145 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +56 -0
- package/get-shit-done/templates/context.md +352 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/copilot-instructions.md +7 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/dev-preferences.md +21 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/discussion-log.md +63 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +610 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +186 -0
- package/get-shit-done/templates/requirements.md +231 -0
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/get-shit-done/templates/research-project/STACK.md +120 -0
- package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/get-shit-done/templates/research.md +592 -0
- package/get-shit-done/templates/retrospective.md +54 -0
- package/get-shit-done/templates/roadmap.md +202 -0
- package/get-shit-done/templates/spec.md +307 -0
- package/get-shit-done/templates/state.md +184 -0
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +248 -0
- package/get-shit-done/templates/user-profile.md +146 -0
- package/get-shit-done/templates/user-setup.md +311 -0
- package/get-shit-done/templates/verification-report.md +322 -0
- package/get-shit-done/workflows/add-phase.md +112 -0
- package/get-shit-done/workflows/add-tests.md +354 -0
- package/get-shit-done/workflows/add-todo.md +160 -0
- package/get-shit-done/workflows/ai-integration-phase.md +284 -0
- package/get-shit-done/workflows/analyze-dependencies.md +96 -0
- package/get-shit-done/workflows/audit-fix.md +175 -0
- package/get-shit-done/workflows/audit-milestone.md +340 -0
- package/get-shit-done/workflows/audit-uat.md +109 -0
- package/get-shit-done/workflows/autonomous.md +789 -0
- package/get-shit-done/workflows/check-todos.md +179 -0
- package/get-shit-done/workflows/cleanup.md +154 -0
- package/get-shit-done/workflows/code-review-fix.md +497 -0
- package/get-shit-done/workflows/code-review.md +515 -0
- package/get-shit-done/workflows/complete-milestone.md +847 -0
- package/get-shit-done/workflows/diagnose-issues.md +238 -0
- package/get-shit-done/workflows/discovery-phase.md +291 -0
- package/get-shit-done/workflows/discuss-phase-assumptions.md +670 -0
- package/get-shit-done/workflows/discuss-phase-power.md +308 -0
- package/get-shit-done/workflows/discuss-phase.md +1378 -0
- package/get-shit-done/workflows/do.md +110 -0
- package/get-shit-done/workflows/docs-update.md +1155 -0
- package/get-shit-done/workflows/eval-review.md +155 -0
- package/get-shit-done/workflows/execute-phase.md +1677 -0
- package/get-shit-done/workflows/execute-plan.md +533 -0
- package/get-shit-done/workflows/explore.md +141 -0
- package/get-shit-done/workflows/extract_learnings.md +242 -0
- package/get-shit-done/workflows/fast.md +105 -0
- package/get-shit-done/workflows/forensics.md +265 -0
- package/get-shit-done/workflows/graduation.md +195 -0
- package/get-shit-done/workflows/health.md +314 -0
- package/get-shit-done/workflows/help.md +667 -0
- package/get-shit-done/workflows/import.md +246 -0
- package/get-shit-done/workflows/inbox.md +387 -0
- package/get-shit-done/workflows/ingest-docs.md +328 -0
- package/get-shit-done/workflows/insert-phase.md +130 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/list-workspaces.md +56 -0
- package/get-shit-done/workflows/manager.md +365 -0
- package/get-shit-done/workflows/map-codebase.md +393 -0
- package/get-shit-done/workflows/milestone-summary.md +223 -0
- package/get-shit-done/workflows/new-milestone.md +611 -0
- package/get-shit-done/workflows/new-project.md +1391 -0
- package/get-shit-done/workflows/new-workspace.md +239 -0
- package/get-shit-done/workflows/next.md +220 -0
- package/get-shit-done/workflows/node-repair.md +92 -0
- package/get-shit-done/workflows/note.md +158 -0
- package/get-shit-done/workflows/pause-work.md +243 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +273 -0
- package/get-shit-done/workflows/plan-phase.md +1349 -0
- package/get-shit-done/workflows/plan-review-convergence.md +254 -0
- package/get-shit-done/workflows/plant-seed.md +172 -0
- package/get-shit-done/workflows/pr-branch.md +157 -0
- package/get-shit-done/workflows/profile-user.md +452 -0
- package/get-shit-done/workflows/progress.md +619 -0
- package/get-shit-done/workflows/quick.md +970 -0
- package/get-shit-done/workflows/remove-phase.md +155 -0
- package/get-shit-done/workflows/remove-workspace.md +92 -0
- package/get-shit-done/workflows/research-phase.md +89 -0
- package/get-shit-done/workflows/resume-project.md +326 -0
- package/get-shit-done/workflows/review.md +344 -0
- package/get-shit-done/workflows/scan.md +102 -0
- package/get-shit-done/workflows/secure-phase.md +166 -0
- package/get-shit-done/workflows/session-report.md +146 -0
- package/get-shit-done/workflows/settings.md +319 -0
- package/get-shit-done/workflows/ship.md +302 -0
- package/get-shit-done/workflows/sketch-wrap-up.md +283 -0
- package/get-shit-done/workflows/sketch.md +286 -0
- package/get-shit-done/workflows/spec-phase.md +262 -0
- package/get-shit-done/workflows/spike-wrap-up.md +281 -0
- package/get-shit-done/workflows/spike.md +362 -0
- package/get-shit-done/workflows/stats.md +60 -0
- package/get-shit-done/workflows/sync-skills.md +182 -0
- package/get-shit-done/workflows/transition.md +693 -0
- package/get-shit-done/workflows/ui-phase.md +323 -0
- package/get-shit-done/workflows/ui-review.md +190 -0
- package/get-shit-done/workflows/ultraplan-phase.md +189 -0
- package/get-shit-done/workflows/undo.md +314 -0
- package/get-shit-done/workflows/update.md +587 -0
- package/get-shit-done/workflows/validate-phase.md +176 -0
- package/get-shit-done/workflows/verify-phase.md +465 -0
- package/get-shit-done/workflows/verify-work.md +740 -0
- package/hooks/dist/gsd-check-update-worker.js +108 -0
- package/hooks/dist/gsd-check-update.js +64 -0
- package/hooks/dist/gsd-context-monitor.js +192 -0
- package/hooks/dist/gsd-phase-boundary.sh +28 -0
- package/hooks/dist/gsd-prompt-guard.js +97 -0
- package/hooks/dist/gsd-read-guard.js +82 -0
- package/hooks/dist/gsd-read-injection-scanner.js +152 -0
- package/hooks/dist/gsd-session-state.sh +34 -0
- package/hooks/dist/gsd-statusline.js +293 -0
- package/hooks/dist/gsd-validate-commit.sh +48 -0
- package/hooks/dist/gsd-workflow-guard.js +94 -0
- package/hooks/gsd-check-update-worker.js +108 -0
- package/hooks/gsd-check-update.js +64 -0
- package/hooks/gsd-context-monitor.js +192 -0
- package/hooks/gsd-phase-boundary.sh +28 -0
- package/hooks/gsd-prompt-guard.js +97 -0
- package/hooks/gsd-read-guard.js +82 -0
- package/hooks/gsd-read-injection-scanner.js +152 -0
- package/hooks/gsd-session-state.sh +34 -0
- package/hooks/gsd-statusline.js +293 -0
- package/hooks/gsd-validate-commit.sh +48 -0
- package/hooks/gsd-workflow-guard.js +94 -0
- package/package.json +59 -0
- package/scripts/base64-scan.sh +262 -0
- package/scripts/build-hooks.js +95 -0
- package/scripts/gen-inventory-manifest.cjs +109 -0
- package/scripts/prompt-injection-scan.sh +201 -0
- package/scripts/run-tests.cjs +33 -0
- package/scripts/secret-scan.sh +227 -0
- package/sdk/package-lock.json +1998 -0
- package/sdk/package.json +52 -0
- package/sdk/prompts/agents/gsd-executor.md +110 -0
- package/sdk/prompts/agents/gsd-phase-researcher.md +158 -0
- package/sdk/prompts/agents/gsd-plan-checker.md +160 -0
- package/sdk/prompts/agents/gsd-planner.md +214 -0
- package/sdk/prompts/agents/gsd-project-researcher.md +323 -0
- package/sdk/prompts/agents/gsd-research-synthesizer.md +237 -0
- package/sdk/prompts/agents/gsd-roadmapper.md +670 -0
- package/sdk/prompts/agents/gsd-verifier.md +159 -0
- package/sdk/prompts/templates/project.md +186 -0
- package/sdk/prompts/templates/requirements.md +231 -0
- package/sdk/prompts/templates/research-project/ARCHITECTURE.md +204 -0
- package/sdk/prompts/templates/research-project/FEATURES.md +147 -0
- package/sdk/prompts/templates/research-project/PITFALLS.md +200 -0
- package/sdk/prompts/templates/research-project/STACK.md +120 -0
- package/sdk/prompts/templates/research-project/SUMMARY.md +170 -0
- package/sdk/prompts/templates/roadmap.md +202 -0
- package/sdk/prompts/templates/state.md +175 -0
- package/sdk/prompts/workflows/discuss-phase.md +126 -0
- package/sdk/prompts/workflows/execute-plan.md +106 -0
- package/sdk/prompts/workflows/plan-phase.md +84 -0
- package/sdk/prompts/workflows/research-phase.md +45 -0
- package/sdk/prompts/workflows/verify-phase.md +142 -0
- package/sdk/src/assembled-prompts.test.ts +349 -0
- package/sdk/src/cli-transport.test.ts +388 -0
- package/sdk/src/cli-transport.ts +130 -0
- package/sdk/src/cli.test.ts +383 -0
- package/sdk/src/cli.ts +670 -0
- package/sdk/src/config.test.ts +168 -0
- package/sdk/src/config.ts +177 -0
- package/sdk/src/context-engine.test.ts +295 -0
- package/sdk/src/context-engine.ts +170 -0
- package/sdk/src/context-truncation.test.ts +163 -0
- package/sdk/src/context-truncation.ts +233 -0
- package/sdk/src/e2e.integration.test.ts +178 -0
- package/sdk/src/errors.ts +72 -0
- package/sdk/src/event-stream.test.ts +661 -0
- package/sdk/src/event-stream.ts +441 -0
- package/sdk/src/failure-memory.test.ts +457 -0
- package/sdk/src/failure-memory.ts +1324 -0
- package/sdk/src/golden/capture.ts +95 -0
- package/sdk/src/golden/fixtures/generate-slug.golden.json +1 -0
- package/sdk/src/golden/fixtures/profile-sample-sessions/demo-project/sample.jsonl +3 -0
- package/sdk/src/golden/fixtures/summary-extract-sample.md +26 -0
- package/sdk/src/golden/fixtures/uat-render-checkpoint-sample.md +15 -0
- package/sdk/src/golden/golden-integration-covered.ts +30 -0
- package/sdk/src/golden/golden-mutation-covered.ts +7 -0
- package/sdk/src/golden/golden-policy.test.ts +8 -0
- package/sdk/src/golden/golden-policy.ts +112 -0
- package/sdk/src/golden/golden.integration.test.ts +373 -0
- package/sdk/src/golden/init-golden-normalize.ts +15 -0
- package/sdk/src/golden/read-only-golden-rows.ts +77 -0
- package/sdk/src/golden/read-only-parity.integration.test.ts +125 -0
- package/sdk/src/golden/registry-canonical-commands.ts +31 -0
- package/sdk/src/gsd-tools.test.ts +409 -0
- package/sdk/src/gsd-tools.ts +595 -0
- package/sdk/src/headless-prompts.test.ts +159 -0
- package/sdk/src/index.ts +333 -0
- package/sdk/src/init-e2e.integration.test.ts +136 -0
- package/sdk/src/init-runner.test.ts +783 -0
- package/sdk/src/init-runner.ts +735 -0
- package/sdk/src/lifecycle-e2e.integration.test.ts +258 -0
- package/sdk/src/logger.test.ts +149 -0
- package/sdk/src/logger.ts +113 -0
- package/sdk/src/milestone-runner.test.ts +421 -0
- package/sdk/src/phase-prompt.test.ts +538 -0
- package/sdk/src/phase-prompt.ts +264 -0
- package/sdk/src/phase-runner-types.test.ts +421 -0
- package/sdk/src/phase-runner.integration.test.ts +377 -0
- package/sdk/src/phase-runner.test.ts +2333 -0
- package/sdk/src/phase-runner.ts +1203 -0
- package/sdk/src/plan-parser.test.ts +528 -0
- package/sdk/src/plan-parser.ts +427 -0
- package/sdk/src/prompt-builder.test.ts +306 -0
- package/sdk/src/prompt-builder.ts +193 -0
- package/sdk/src/prompt-sanitizer.test.ts +260 -0
- package/sdk/src/prompt-sanitizer.ts +71 -0
- package/sdk/src/query/QUERY-HANDLERS.md +317 -0
- package/sdk/src/query/audit-open.ts +722 -0
- package/sdk/src/query/check-auto-mode.test.ts +77 -0
- package/sdk/src/query/check-auto-mode.ts +50 -0
- package/sdk/src/query/check-completion.test.ts +113 -0
- package/sdk/src/query/check-completion.ts +182 -0
- package/sdk/src/query/check-gates.test.ts +103 -0
- package/sdk/src/query/check-gates.ts +112 -0
- package/sdk/src/query/check-ship-ready.test.ts +77 -0
- package/sdk/src/query/check-ship-ready.ts +103 -0
- package/sdk/src/query/check-verification-status.test.ts +143 -0
- package/sdk/src/query/check-verification-status.ts +160 -0
- package/sdk/src/query/commit.test.ts +202 -0
- package/sdk/src/query/commit.ts +301 -0
- package/sdk/src/query/config-gates.test.ts +89 -0
- package/sdk/src/query/config-gates.ts +69 -0
- package/sdk/src/query/config-mutation.test.ts +365 -0
- package/sdk/src/query/config-mutation.ts +497 -0
- package/sdk/src/query/config-query.test.ts +161 -0
- package/sdk/src/query/config-query.ts +190 -0
- package/sdk/src/query/context-history.test.ts +165 -0
- package/sdk/src/query/context-history.ts +467 -0
- package/sdk/src/query/decomposed-handlers.test.ts +365 -0
- package/sdk/src/query/detect-custom-files.ts +97 -0
- package/sdk/src/query/detect-phase-type.test.ts +105 -0
- package/sdk/src/query/detect-phase-type.ts +141 -0
- package/sdk/src/query/docs-init.ts +257 -0
- package/sdk/src/query/failure-capture.ts +58 -0
- package/sdk/src/query/frontmatter-array.test.ts +14 -0
- package/sdk/src/query/frontmatter-mutation.test.ts +259 -0
- package/sdk/src/query/frontmatter-mutation.ts +343 -0
- package/sdk/src/query/frontmatter.test.ts +281 -0
- package/sdk/src/query/frontmatter.ts +397 -0
- package/sdk/src/query/helpers.test.ts +426 -0
- package/sdk/src/query/helpers.ts +482 -0
- package/sdk/src/query/index.ts +586 -0
- package/sdk/src/query/init-complex.test.ts +232 -0
- package/sdk/src/query/init-complex.ts +578 -0
- package/sdk/src/query/init.test.ts +522 -0
- package/sdk/src/query/init.ts +1046 -0
- package/sdk/src/query/intel.test.ts +90 -0
- package/sdk/src/query/intel.ts +404 -0
- package/sdk/src/query/normalize-query-command.test.ts +50 -0
- package/sdk/src/query/normalize-query-command.ts +56 -0
- package/sdk/src/query/phase-lifecycle.test.ts +1126 -0
- package/sdk/src/query/phase-lifecycle.ts +1799 -0
- package/sdk/src/query/phase-list-queries.test.ts +88 -0
- package/sdk/src/query/phase-list-queries.ts +152 -0
- package/sdk/src/query/phase-ready.test.ts +65 -0
- package/sdk/src/query/phase-ready.ts +158 -0
- package/sdk/src/query/phase.test.ts +307 -0
- package/sdk/src/query/phase.ts +340 -0
- package/sdk/src/query/pipeline.test.ts +169 -0
- package/sdk/src/query/pipeline.ts +243 -0
- package/sdk/src/query/plan-execution-route.test.ts +166 -0
- package/sdk/src/query/plan-execution-route.ts +209 -0
- package/sdk/src/query/plan-task-structure.test.ts +65 -0
- package/sdk/src/query/plan-task-structure.ts +63 -0
- package/sdk/src/query/profile-extract-messages.ts +247 -0
- package/sdk/src/query/profile-output.ts +908 -0
- package/sdk/src/query/profile-questionnaire-data.ts +181 -0
- package/sdk/src/query/profile-sample.ts +184 -0
- package/sdk/src/query/profile-scan-sessions.ts +174 -0
- package/sdk/src/query/profile.test.ts +74 -0
- package/sdk/src/query/profile.ts +337 -0
- package/sdk/src/query/progress.test.ts +156 -0
- package/sdk/src/query/progress.ts +566 -0
- package/sdk/src/query/registry.test.ts +216 -0
- package/sdk/src/query/registry.ts +174 -0
- package/sdk/src/query/requirements-extract-from-plans.test.ts +58 -0
- package/sdk/src/query/requirements-extract-from-plans.ts +86 -0
- package/sdk/src/query/roadmap-update-plan-progress.ts +132 -0
- package/sdk/src/query/roadmap.test.ts +359 -0
- package/sdk/src/query/roadmap.ts +591 -0
- package/sdk/src/query/route-next-action.test.ts +61 -0
- package/sdk/src/query/route-next-action.ts +345 -0
- package/sdk/src/query/runtime-health.ts +7 -0
- package/sdk/src/query/schema-detect.ts +189 -0
- package/sdk/src/query/skill-manifest.ts +214 -0
- package/sdk/src/query/skills.test.ts +80 -0
- package/sdk/src/query/skills.ts +62 -0
- package/sdk/src/query/state-mutation.test.ts +450 -0
- package/sdk/src/query/state-mutation.ts +1444 -0
- package/sdk/src/query/state-project-load.ts +109 -0
- package/sdk/src/query/state.test.ts +347 -0
- package/sdk/src/query/state.ts +397 -0
- package/sdk/src/query/summary.test.ts +95 -0
- package/sdk/src/query/summary.ts +296 -0
- package/sdk/src/query/template.test.ts +180 -0
- package/sdk/src/query/template.ts +242 -0
- package/sdk/src/query/uat.test.ts +77 -0
- package/sdk/src/query/uat.ts +314 -0
- package/sdk/src/query/utils.test.ts +82 -0
- package/sdk/src/query/utils.ts +92 -0
- package/sdk/src/query/validate.test.ts +656 -0
- package/sdk/src/query/validate.ts +807 -0
- package/sdk/src/query/verify.test.ts +414 -0
- package/sdk/src/query/verify.ts +645 -0
- package/sdk/src/query/websearch.test.ts +31 -0
- package/sdk/src/query/websearch.ts +82 -0
- package/sdk/src/query/workspace.test.ts +119 -0
- package/sdk/src/query/workspace.ts +131 -0
- package/sdk/src/query/workstream.test.ts +51 -0
- package/sdk/src/query/workstream.ts +434 -0
- package/sdk/src/research-gate.test.ts +190 -0
- package/sdk/src/research-gate.ts +94 -0
- package/sdk/src/runtime-health.test.ts +176 -0
- package/sdk/src/runtime-health.ts +387 -0
- package/sdk/src/session-runner.test.ts +98 -0
- package/sdk/src/session-runner.ts +299 -0
- package/sdk/src/tool-scoping.test.ts +160 -0
- package/sdk/src/tool-scoping.ts +61 -0
- package/sdk/src/types.ts +917 -0
- package/sdk/src/workstream-utils.ts +33 -0
- package/sdk/src/ws-flag.test.ts +285 -0
- package/sdk/src/ws-transport.test.ts +161 -0
- package/sdk/src/ws-transport.ts +93 -0
- package/sdk/tsconfig.json +20 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Research Summary Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/research/SUMMARY.md` — executive summary of project research with roadmap implications.
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Project Research Summary
|
|
9
|
+
|
|
10
|
+
**Project:** [name from PROJECT.md]
|
|
11
|
+
**Domain:** [inferred domain type]
|
|
12
|
+
**Researched:** [date]
|
|
13
|
+
**Confidence:** [HIGH/MEDIUM/LOW]
|
|
14
|
+
|
|
15
|
+
## Executive Summary
|
|
16
|
+
|
|
17
|
+
[2-3 paragraph overview of research findings]
|
|
18
|
+
|
|
19
|
+
- What type of product this is and how experts build it
|
|
20
|
+
- The recommended approach based on research
|
|
21
|
+
- Key risks and how to mitigate them
|
|
22
|
+
|
|
23
|
+
## Key Findings
|
|
24
|
+
|
|
25
|
+
### Recommended Stack
|
|
26
|
+
|
|
27
|
+
[Summary from STACK.md — 1-2 paragraphs]
|
|
28
|
+
|
|
29
|
+
**Core technologies:**
|
|
30
|
+
- [Technology]: [purpose] — [why recommended]
|
|
31
|
+
- [Technology]: [purpose] — [why recommended]
|
|
32
|
+
- [Technology]: [purpose] — [why recommended]
|
|
33
|
+
|
|
34
|
+
### Expected Features
|
|
35
|
+
|
|
36
|
+
[Summary from FEATURES.md]
|
|
37
|
+
|
|
38
|
+
**Must have (table stakes):**
|
|
39
|
+
- [Feature] — users expect this
|
|
40
|
+
- [Feature] — users expect this
|
|
41
|
+
|
|
42
|
+
**Should have (competitive):**
|
|
43
|
+
- [Feature] — differentiator
|
|
44
|
+
- [Feature] — differentiator
|
|
45
|
+
|
|
46
|
+
**Defer (v2+):**
|
|
47
|
+
- [Feature] — not essential for launch
|
|
48
|
+
|
|
49
|
+
### Architecture Approach
|
|
50
|
+
|
|
51
|
+
[Summary from ARCHITECTURE.md — 1 paragraph]
|
|
52
|
+
|
|
53
|
+
**Major components:**
|
|
54
|
+
1. [Component] — [responsibility]
|
|
55
|
+
2. [Component] — [responsibility]
|
|
56
|
+
3. [Component] — [responsibility]
|
|
57
|
+
|
|
58
|
+
### Critical Pitfalls
|
|
59
|
+
|
|
60
|
+
[Top 3-5 from PITFALLS.md]
|
|
61
|
+
|
|
62
|
+
1. **[Pitfall]** — [how to avoid]
|
|
63
|
+
2. **[Pitfall]** — [how to avoid]
|
|
64
|
+
3. **[Pitfall]** — [how to avoid]
|
|
65
|
+
|
|
66
|
+
## Implications for Roadmap
|
|
67
|
+
|
|
68
|
+
Based on research, suggested phase structure:
|
|
69
|
+
|
|
70
|
+
### Phase 1: [Name]
|
|
71
|
+
**Rationale:** [why this comes first based on research]
|
|
72
|
+
**Delivers:** [what this phase produces]
|
|
73
|
+
**Addresses:** [features from FEATURES.md]
|
|
74
|
+
**Avoids:** [pitfall from PITFALLS.md]
|
|
75
|
+
|
|
76
|
+
### Phase 2: [Name]
|
|
77
|
+
**Rationale:** [why this order]
|
|
78
|
+
**Delivers:** [what this phase produces]
|
|
79
|
+
**Uses:** [stack elements from STACK.md]
|
|
80
|
+
**Implements:** [architecture component]
|
|
81
|
+
|
|
82
|
+
### Phase 3: [Name]
|
|
83
|
+
**Rationale:** [why this order]
|
|
84
|
+
**Delivers:** [what this phase produces]
|
|
85
|
+
|
|
86
|
+
[Continue for suggested phases...]
|
|
87
|
+
|
|
88
|
+
### Phase Ordering Rationale
|
|
89
|
+
|
|
90
|
+
- [Why this order based on dependencies discovered]
|
|
91
|
+
- [Why this grouping based on architecture patterns]
|
|
92
|
+
- [How this avoids pitfalls from research]
|
|
93
|
+
|
|
94
|
+
### Research Flags
|
|
95
|
+
|
|
96
|
+
Phases likely needing deeper research during planning:
|
|
97
|
+
- **Phase [X]:** [reason — e.g., "complex integration, needs API research"]
|
|
98
|
+
- **Phase [Y]:** [reason — e.g., "niche domain, sparse documentation"]
|
|
99
|
+
|
|
100
|
+
Phases with standard patterns (skip research-phase):
|
|
101
|
+
- **Phase [X]:** [reason — e.g., "well-documented, established patterns"]
|
|
102
|
+
|
|
103
|
+
## Confidence Assessment
|
|
104
|
+
|
|
105
|
+
| Area | Confidence | Notes |
|
|
106
|
+
|------|------------|-------|
|
|
107
|
+
| Stack | [HIGH/MEDIUM/LOW] | [reason] |
|
|
108
|
+
| Features | [HIGH/MEDIUM/LOW] | [reason] |
|
|
109
|
+
| Architecture | [HIGH/MEDIUM/LOW] | [reason] |
|
|
110
|
+
| Pitfalls | [HIGH/MEDIUM/LOW] | [reason] |
|
|
111
|
+
|
|
112
|
+
**Overall confidence:** [HIGH/MEDIUM/LOW]
|
|
113
|
+
|
|
114
|
+
### Gaps to Address
|
|
115
|
+
|
|
116
|
+
[Any areas where research was inconclusive or needs validation during implementation]
|
|
117
|
+
|
|
118
|
+
- [Gap]: [how to handle during planning/execution]
|
|
119
|
+
- [Gap]: [how to handle during planning/execution]
|
|
120
|
+
|
|
121
|
+
## Sources
|
|
122
|
+
|
|
123
|
+
### Primary (HIGH confidence)
|
|
124
|
+
- [Context7 library ID] — [topics]
|
|
125
|
+
- [Official docs URL] — [what was checked]
|
|
126
|
+
|
|
127
|
+
### Secondary (MEDIUM confidence)
|
|
128
|
+
- [Source] — [finding]
|
|
129
|
+
|
|
130
|
+
### Tertiary (LOW confidence)
|
|
131
|
+
- [Source] — [finding, needs validation]
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
*Research completed: [date]*
|
|
135
|
+
*Ready for roadmap: yes*
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
</template>
|
|
139
|
+
|
|
140
|
+
<guidelines>
|
|
141
|
+
|
|
142
|
+
**Executive Summary:**
|
|
143
|
+
- Write for someone who will only read this section
|
|
144
|
+
- Include the key recommendation and main risk
|
|
145
|
+
- 2-3 paragraphs maximum
|
|
146
|
+
|
|
147
|
+
**Key Findings:**
|
|
148
|
+
- Summarize, don't duplicate full documents
|
|
149
|
+
- Link to detailed docs (STACK.md, FEATURES.md, etc.)
|
|
150
|
+
- Focus on what matters for roadmap decisions
|
|
151
|
+
|
|
152
|
+
**Implications for Roadmap:**
|
|
153
|
+
- This is the most important section
|
|
154
|
+
- Directly informs roadmap creation
|
|
155
|
+
- Be explicit about phase suggestions and rationale
|
|
156
|
+
- Include research flags for each suggested phase
|
|
157
|
+
|
|
158
|
+
**Confidence Assessment:**
|
|
159
|
+
- Be honest about uncertainty
|
|
160
|
+
- Note gaps that need resolution during planning
|
|
161
|
+
- HIGH = verified with official sources
|
|
162
|
+
- MEDIUM = community consensus, multiple sources agree
|
|
163
|
+
- LOW = single source or inference
|
|
164
|
+
|
|
165
|
+
**Integration with roadmap creation:**
|
|
166
|
+
- This file is loaded as context during roadmap creation
|
|
167
|
+
- Phase suggestions here become starting point for roadmap
|
|
168
|
+
- Research flags inform phase planning
|
|
169
|
+
|
|
170
|
+
</guidelines>
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Roadmap Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/ROADMAP.md`.
|
|
4
|
+
|
|
5
|
+
## Initial Roadmap (v1.0 Greenfield)
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Roadmap: [Project Name]
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
[One paragraph describing the journey from start to finish]
|
|
13
|
+
|
|
14
|
+
## Phases
|
|
15
|
+
|
|
16
|
+
**Phase Numbering:**
|
|
17
|
+
- Integer phases (1, 2, 3): Planned milestone work
|
|
18
|
+
- Decimal phases (2.1, 2.2): Urgent insertions (marked with INSERTED)
|
|
19
|
+
|
|
20
|
+
Decimal phases appear between their surrounding integers in numeric order.
|
|
21
|
+
|
|
22
|
+
- [ ] **Phase 1: [Name]** - [One-line description]
|
|
23
|
+
- [ ] **Phase 2: [Name]** - [One-line description]
|
|
24
|
+
- [ ] **Phase 3: [Name]** - [One-line description]
|
|
25
|
+
- [ ] **Phase 4: [Name]** - [One-line description]
|
|
26
|
+
|
|
27
|
+
## Phase Details
|
|
28
|
+
|
|
29
|
+
### Phase 1: [Name]
|
|
30
|
+
**Goal**: [What this phase delivers]
|
|
31
|
+
**Depends on**: Nothing (first phase)
|
|
32
|
+
**Requirements**: [REQ-01, REQ-02, REQ-03] <!-- brackets optional, parser handles both formats -->
|
|
33
|
+
**Success Criteria** (what must be TRUE):
|
|
34
|
+
1. [Observable behavior from user perspective]
|
|
35
|
+
2. [Observable behavior from user perspective]
|
|
36
|
+
3. [Observable behavior from user perspective]
|
|
37
|
+
**Plans**: [Number of plans, e.g., "3 plans" or "TBD"]
|
|
38
|
+
|
|
39
|
+
Plans:
|
|
40
|
+
- [ ] 01-01: [Brief description of first plan]
|
|
41
|
+
- [ ] 01-02: [Brief description of second plan]
|
|
42
|
+
- [ ] 01-03: [Brief description of third plan]
|
|
43
|
+
|
|
44
|
+
### Phase 2: [Name]
|
|
45
|
+
**Goal**: [What this phase delivers]
|
|
46
|
+
**Depends on**: Phase 1
|
|
47
|
+
**Requirements**: [REQ-04, REQ-05]
|
|
48
|
+
**Success Criteria** (what must be TRUE):
|
|
49
|
+
1. [Observable behavior from user perspective]
|
|
50
|
+
2. [Observable behavior from user perspective]
|
|
51
|
+
**Plans**: [Number of plans]
|
|
52
|
+
|
|
53
|
+
Plans:
|
|
54
|
+
- [ ] 02-01: [Brief description]
|
|
55
|
+
- [ ] 02-02: [Brief description]
|
|
56
|
+
|
|
57
|
+
### Phase 2.1: Critical Fix (INSERTED)
|
|
58
|
+
**Goal**: [Urgent work inserted between phases]
|
|
59
|
+
**Depends on**: Phase 2
|
|
60
|
+
**Success Criteria** (what must be TRUE):
|
|
61
|
+
1. [What the fix achieves]
|
|
62
|
+
**Plans**: 1 plan
|
|
63
|
+
|
|
64
|
+
Plans:
|
|
65
|
+
- [ ] 02.1-01: [Description]
|
|
66
|
+
|
|
67
|
+
### Phase 3: [Name]
|
|
68
|
+
**Goal**: [What this phase delivers]
|
|
69
|
+
**Depends on**: Phase 2
|
|
70
|
+
**Requirements**: [REQ-06, REQ-07, REQ-08]
|
|
71
|
+
**Success Criteria** (what must be TRUE):
|
|
72
|
+
1. [Observable behavior from user perspective]
|
|
73
|
+
2. [Observable behavior from user perspective]
|
|
74
|
+
3. [Observable behavior from user perspective]
|
|
75
|
+
**Plans**: [Number of plans]
|
|
76
|
+
|
|
77
|
+
Plans:
|
|
78
|
+
- [ ] 03-01: [Brief description]
|
|
79
|
+
- [ ] 03-02: [Brief description]
|
|
80
|
+
|
|
81
|
+
### Phase 4: [Name]
|
|
82
|
+
**Goal**: [What this phase delivers]
|
|
83
|
+
**Depends on**: Phase 3
|
|
84
|
+
**Requirements**: [REQ-09, REQ-10]
|
|
85
|
+
**Success Criteria** (what must be TRUE):
|
|
86
|
+
1. [Observable behavior from user perspective]
|
|
87
|
+
2. [Observable behavior from user perspective]
|
|
88
|
+
**Plans**: [Number of plans]
|
|
89
|
+
|
|
90
|
+
Plans:
|
|
91
|
+
- [ ] 04-01: [Brief description]
|
|
92
|
+
|
|
93
|
+
## Progress
|
|
94
|
+
|
|
95
|
+
**Execution Order:**
|
|
96
|
+
Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
|
|
97
|
+
|
|
98
|
+
| Phase | Plans Complete | Status | Completed |
|
|
99
|
+
|-------|----------------|--------|-----------|
|
|
100
|
+
| 1. [Name] | 0/3 | Not started | - |
|
|
101
|
+
| 2. [Name] | 0/2 | Not started | - |
|
|
102
|
+
| 3. [Name] | 0/2 | Not started | - |
|
|
103
|
+
| 4. [Name] | 0/1 | Not started | - |
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
<guidelines>
|
|
107
|
+
**Initial planning (v1.0):**
|
|
108
|
+
- Phase count depends on granularity setting (coarse: 3-5, standard: 5-8, fine: 8-12)
|
|
109
|
+
- Each phase delivers something coherent
|
|
110
|
+
- Phases can have 1+ plans (split if >3 tasks or multiple subsystems)
|
|
111
|
+
- Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
|
|
112
|
+
- No time estimates (this isn't enterprise PM)
|
|
113
|
+
- Progress table updated by execute workflow
|
|
114
|
+
- Plan count can be "TBD" initially, refined during planning
|
|
115
|
+
|
|
116
|
+
**Success criteria:**
|
|
117
|
+
- 2-5 observable behaviors per phase (from user's perspective)
|
|
118
|
+
- Cross-checked against requirements during roadmap creation
|
|
119
|
+
- Flow downstream to `must_haves` in plan-phase
|
|
120
|
+
- Verified by verify-phase after execution
|
|
121
|
+
- Format: "User can [action]" or "[Thing] works/exists"
|
|
122
|
+
|
|
123
|
+
**After milestones ship:**
|
|
124
|
+
- Collapse completed milestones in `<details>` tags
|
|
125
|
+
- Add new milestone sections for upcoming work
|
|
126
|
+
- Keep continuous phase numbering (never restart at 01)
|
|
127
|
+
</guidelines>
|
|
128
|
+
|
|
129
|
+
<status_values>
|
|
130
|
+
- `Not started` - Haven't begun
|
|
131
|
+
- `In progress` - Currently working
|
|
132
|
+
- `Complete` - Done (add completion date)
|
|
133
|
+
- `Deferred` - Pushed to later (with reason)
|
|
134
|
+
</status_values>
|
|
135
|
+
|
|
136
|
+
## Milestone-Grouped Roadmap (After v1.0 Ships)
|
|
137
|
+
|
|
138
|
+
After completing first milestone, reorganize with milestone groupings:
|
|
139
|
+
|
|
140
|
+
```markdown
|
|
141
|
+
# Roadmap: [Project Name]
|
|
142
|
+
|
|
143
|
+
## Milestones
|
|
144
|
+
|
|
145
|
+
- ✅ **v1.0 MVP** - Phases 1-4 (shipped YYYY-MM-DD)
|
|
146
|
+
- 🚧 **v1.1 [Name]** - Phases 5-6 (in progress)
|
|
147
|
+
- 📋 **v2.0 [Name]** - Phases 7-10 (planned)
|
|
148
|
+
|
|
149
|
+
## Phases
|
|
150
|
+
|
|
151
|
+
<details>
|
|
152
|
+
<summary>✅ v1.0 MVP (Phases 1-4) - SHIPPED YYYY-MM-DD</summary>
|
|
153
|
+
|
|
154
|
+
### Phase 1: [Name]
|
|
155
|
+
**Goal**: [What this phase delivers]
|
|
156
|
+
**Plans**: 3 plans
|
|
157
|
+
|
|
158
|
+
Plans:
|
|
159
|
+
- [x] 01-01: [Brief description]
|
|
160
|
+
- [x] 01-02: [Brief description]
|
|
161
|
+
- [x] 01-03: [Brief description]
|
|
162
|
+
|
|
163
|
+
[... remaining v1.0 phases ...]
|
|
164
|
+
|
|
165
|
+
</details>
|
|
166
|
+
|
|
167
|
+
### 🚧 v1.1 [Name] (In Progress)
|
|
168
|
+
|
|
169
|
+
**Milestone Goal:** [What v1.1 delivers]
|
|
170
|
+
|
|
171
|
+
#### Phase 5: [Name]
|
|
172
|
+
**Goal**: [What this phase delivers]
|
|
173
|
+
**Depends on**: Phase 4
|
|
174
|
+
**Plans**: 2 plans
|
|
175
|
+
|
|
176
|
+
Plans:
|
|
177
|
+
- [ ] 05-01: [Brief description]
|
|
178
|
+
- [ ] 05-02: [Brief description]
|
|
179
|
+
|
|
180
|
+
[... remaining v1.1 phases ...]
|
|
181
|
+
|
|
182
|
+
### 📋 v2.0 [Name] (Planned)
|
|
183
|
+
|
|
184
|
+
**Milestone Goal:** [What v2.0 delivers]
|
|
185
|
+
|
|
186
|
+
[... v2.0 phases ...]
|
|
187
|
+
|
|
188
|
+
## Progress
|
|
189
|
+
|
|
190
|
+
| Phase | Milestone | Plans Complete | Status | Completed |
|
|
191
|
+
|-------|-----------|----------------|--------|-----------|
|
|
192
|
+
| 1. Foundation | v1.0 | 3/3 | Complete | YYYY-MM-DD |
|
|
193
|
+
| 2. Features | v1.0 | 2/2 | Complete | YYYY-MM-DD |
|
|
194
|
+
| 5. Security | v1.1 | 0/2 | Not started | - |
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Notes:**
|
|
198
|
+
- Milestone emoji: ✅ shipped, 🚧 in progress, 📋 planned
|
|
199
|
+
- Completed milestones collapsed in `<details>` for readability
|
|
200
|
+
- Current/future milestones expanded
|
|
201
|
+
- Continuous phase numbering (01-99)
|
|
202
|
+
- Progress table includes milestone column
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# State Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/STATE.md` — the project's living memory.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## File Template
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
# Project State
|
|
11
|
+
|
|
12
|
+
## Project Reference
|
|
13
|
+
|
|
14
|
+
See: .planning/PROJECT.md (updated [date])
|
|
15
|
+
|
|
16
|
+
**Core value:** [One-liner from PROJECT.md Core Value section]
|
|
17
|
+
**Current focus:** [Current phase name]
|
|
18
|
+
|
|
19
|
+
## Current Position
|
|
20
|
+
|
|
21
|
+
Phase: [X] of [Y] ([Phase name])
|
|
22
|
+
Plan: [A] of [B] in current phase
|
|
23
|
+
Status: [Ready to plan / Planning / Ready to execute / In progress / Phase complete]
|
|
24
|
+
Last activity: [YYYY-MM-DD] — [What happened]
|
|
25
|
+
|
|
26
|
+
Progress: [░░░░░░░░░░] 0%
|
|
27
|
+
|
|
28
|
+
## Performance Metrics
|
|
29
|
+
|
|
30
|
+
**Velocity:**
|
|
31
|
+
- Total plans completed: [N]
|
|
32
|
+
- Average duration: [X] min
|
|
33
|
+
- Total execution time: [X.X] hours
|
|
34
|
+
|
|
35
|
+
**By Phase:**
|
|
36
|
+
|
|
37
|
+
| Phase | Plans | Total | Avg/Plan |
|
|
38
|
+
|-------|-------|-------|----------|
|
|
39
|
+
| - | - | - | - |
|
|
40
|
+
|
|
41
|
+
**Recent Trend:**
|
|
42
|
+
- Last 5 plans: [durations]
|
|
43
|
+
- Trend: [Improving / Stable / Degrading]
|
|
44
|
+
|
|
45
|
+
*Updated after each plan completion*
|
|
46
|
+
|
|
47
|
+
## Accumulated Context
|
|
48
|
+
|
|
49
|
+
### Decisions
|
|
50
|
+
|
|
51
|
+
Decisions are logged in PROJECT.md Key Decisions table.
|
|
52
|
+
Recent decisions affecting current work:
|
|
53
|
+
|
|
54
|
+
- [Phase X]: [Decision summary]
|
|
55
|
+
- [Phase Y]: [Decision summary]
|
|
56
|
+
|
|
57
|
+
### Pending Todos
|
|
58
|
+
|
|
59
|
+
[Pending ideas captured during sessions]
|
|
60
|
+
|
|
61
|
+
None yet.
|
|
62
|
+
|
|
63
|
+
### Blockers/Concerns
|
|
64
|
+
|
|
65
|
+
[Issues that affect future work]
|
|
66
|
+
|
|
67
|
+
None yet.
|
|
68
|
+
|
|
69
|
+
## Session Continuity
|
|
70
|
+
|
|
71
|
+
Last session: [YYYY-MM-DD HH:MM]
|
|
72
|
+
Stopped at: [Description of last completed action]
|
|
73
|
+
Resume file: [Path to .continue-here*.md if exists, otherwise "None"]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
<purpose>
|
|
77
|
+
|
|
78
|
+
STATE.md is the project's short-term memory spanning all phases and sessions.
|
|
79
|
+
|
|
80
|
+
**Problem it solves:** Information is captured in summaries, issues, and decisions but not systematically consumed. Sessions start without context.
|
|
81
|
+
|
|
82
|
+
**Solution:** A single, small file that's:
|
|
83
|
+
- Read first in every workflow
|
|
84
|
+
- Updated after every significant action
|
|
85
|
+
- Contains digest of accumulated context
|
|
86
|
+
- Enables instant session restoration
|
|
87
|
+
|
|
88
|
+
</purpose>
|
|
89
|
+
|
|
90
|
+
<lifecycle>
|
|
91
|
+
|
|
92
|
+
**Creation:** After ROADMAP.md is created (during init)
|
|
93
|
+
- Reference PROJECT.md (read it for current context)
|
|
94
|
+
- Initialize empty accumulated context sections
|
|
95
|
+
- Set position to "Phase 1 ready to plan"
|
|
96
|
+
|
|
97
|
+
**Reading:** First step of every workflow
|
|
98
|
+
- progress: Present status to user
|
|
99
|
+
- plan: Inform planning decisions
|
|
100
|
+
- execute: Know current position
|
|
101
|
+
- transition: Know what's complete
|
|
102
|
+
|
|
103
|
+
**Writing:** After every significant action
|
|
104
|
+
- execute: After SUMMARY.md created
|
|
105
|
+
- Update position (phase, plan, status)
|
|
106
|
+
- Note new decisions (detail in PROJECT.md)
|
|
107
|
+
- Add blockers/concerns
|
|
108
|
+
- transition: After phase marked complete
|
|
109
|
+
- Update progress bar
|
|
110
|
+
- Clear resolved blockers
|
|
111
|
+
- Refresh Project Reference date
|
|
112
|
+
|
|
113
|
+
</lifecycle>
|
|
114
|
+
|
|
115
|
+
<sections>
|
|
116
|
+
|
|
117
|
+
### Project Reference
|
|
118
|
+
Points to PROJECT.md for full context. Includes:
|
|
119
|
+
- Core value (the ONE thing that matters)
|
|
120
|
+
- Current focus (which phase)
|
|
121
|
+
- Last update date (triggers re-read if stale)
|
|
122
|
+
|
|
123
|
+
Claude reads PROJECT.md directly for requirements, constraints, and decisions.
|
|
124
|
+
|
|
125
|
+
### Current Position
|
|
126
|
+
Where we are right now:
|
|
127
|
+
- Phase X of Y — which phase
|
|
128
|
+
- Plan A of B — which plan within phase
|
|
129
|
+
- Status — current state
|
|
130
|
+
- Last activity — what happened most recently
|
|
131
|
+
- Progress bar — visual indicator of overall completion
|
|
132
|
+
|
|
133
|
+
Progress calculation: (completed plans) / (total plans across all phases) × 100%
|
|
134
|
+
|
|
135
|
+
### Performance Metrics
|
|
136
|
+
Track velocity to understand execution patterns:
|
|
137
|
+
- Total plans completed
|
|
138
|
+
- Average duration per plan
|
|
139
|
+
- Per-phase breakdown
|
|
140
|
+
- Recent trend (improving/stable/degrading)
|
|
141
|
+
|
|
142
|
+
Updated after each plan completion.
|
|
143
|
+
|
|
144
|
+
### Accumulated Context
|
|
145
|
+
|
|
146
|
+
**Decisions:** Reference to PROJECT.md Key Decisions table, plus recent decisions summary for quick access. Full decision log lives in PROJECT.md.
|
|
147
|
+
|
|
148
|
+
**Pending Todos:** Ideas captured during sessions.
|
|
149
|
+
- Count of pending todos
|
|
150
|
+
- Brief list if few, count if many
|
|
151
|
+
|
|
152
|
+
**Blockers/Concerns:** From "Next Phase Readiness" sections
|
|
153
|
+
- Issues that affect future work
|
|
154
|
+
- Prefix with originating phase
|
|
155
|
+
- Cleared when addressed
|
|
156
|
+
|
|
157
|
+
### Session Continuity
|
|
158
|
+
Enables instant resumption:
|
|
159
|
+
- When was last session
|
|
160
|
+
- What was last completed
|
|
161
|
+
- Is there a .continue-here file to resume from
|
|
162
|
+
|
|
163
|
+
</sections>
|
|
164
|
+
|
|
165
|
+
<size_constraint>
|
|
166
|
+
|
|
167
|
+
Keep STATE.md under 100 lines.
|
|
168
|
+
|
|
169
|
+
It's a DIGEST, not an archive. If accumulated context grows too large:
|
|
170
|
+
- Keep only 3-5 recent decisions in summary (full log in PROJECT.md)
|
|
171
|
+
- Keep only active blockers, remove resolved ones
|
|
172
|
+
|
|
173
|
+
The goal is "read once, know where we are" — if it's too long, that fails.
|
|
174
|
+
|
|
175
|
+
</size_constraint>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Extract implementation decisions that downstream agents need. Analyze the phase to identify gray areas and capture decisions that guide research and planning.
|
|
3
|
+
Headless SDK variant — in autonomous mode, AI self-discusses by analyzing available context and making decisions based on project artifacts and codebase patterns.
|
|
4
|
+
</purpose>
|
|
5
|
+
|
|
6
|
+
<downstream_awareness>
|
|
7
|
+
**CONTEXT.md feeds into:**
|
|
8
|
+
|
|
9
|
+
1. **Researcher** — Reads CONTEXT.md to know WHAT to research
|
|
10
|
+
- Locked decisions guide research focus
|
|
11
|
+
- Discretion areas get options explored
|
|
12
|
+
|
|
13
|
+
2. **Planner** — Reads CONTEXT.md to know WHAT decisions are locked
|
|
14
|
+
- Locked decisions become non-negotiable plan constraints
|
|
15
|
+
- Discretion areas allow planner flexibility
|
|
16
|
+
</downstream_awareness>
|
|
17
|
+
|
|
18
|
+
<philosophy>
|
|
19
|
+
In headless mode, the AI acts as both visionary and builder. It:
|
|
20
|
+
- Analyzes the phase goal and available context
|
|
21
|
+
- Identifies gray areas that need decisions
|
|
22
|
+
- Makes autonomous decisions based on codebase patterns, requirements, and best practices
|
|
23
|
+
- Documents decisions clearly for downstream agents
|
|
24
|
+
</philosophy>
|
|
25
|
+
|
|
26
|
+
<scope_guardrail>
|
|
27
|
+
The phase boundary comes from the roadmap and is FIXED. Discussion clarifies HOW to implement what's scoped, never WHETHER to add new capabilities.
|
|
28
|
+
|
|
29
|
+
When analysis suggests scope creep: note it in "Deferred Ideas" section, do not act on it.
|
|
30
|
+
</scope_guardrail>
|
|
31
|
+
|
|
32
|
+
<process>
|
|
33
|
+
|
|
34
|
+
<step name="initialize" priority="first">
|
|
35
|
+
Load phase context from injected context files. Extract: phase directory, phase number, phase name, has_research, has_context, has_plans.
|
|
36
|
+
|
|
37
|
+
If phase not found: report error via event stream.
|
|
38
|
+
</step>
|
|
39
|
+
|
|
40
|
+
<step name="check_existing">
|
|
41
|
+
If CONTEXT.md already exists: load it and use as-is (in headless mode, existing context is not re-discussed).
|
|
42
|
+
If no CONTEXT.md: proceed to analysis.
|
|
43
|
+
</step>
|
|
44
|
+
|
|
45
|
+
<step name="load_prior_context">
|
|
46
|
+
Read project-level and prior phase context:
|
|
47
|
+
- PROJECT.md — vision, principles, non-negotiables
|
|
48
|
+
- REQUIREMENTS.md — acceptance criteria, constraints
|
|
49
|
+
- Prefer `gsd-remix-sdk query state-snapshot` over full STATE.md reads when only structured progress/decision data is needed
|
|
50
|
+
- Prefer `gsd-remix-sdk query context-history <phase> --limit 8 --max-decisions 3 --max-specifics 2` for prior CONTEXT.md history
|
|
51
|
+
- Use `relevance_score`, `relevance_reasons`, and `conflicts` from that query to prioritize which historical phases deserve attention
|
|
52
|
+
- Treat `counts.omitted_phases` as a sign that the brief is intentionally trimmed; increase `--limit` only when the current gray area remains underdetermined
|
|
53
|
+
- Read a full prior CONTEXT.md only when the condensed history is clearly relevant but underspecified or conflicting
|
|
54
|
+
</step>
|
|
55
|
+
|
|
56
|
+
<step name="analyze_phase">
|
|
57
|
+
Analyze the phase to identify gray areas:
|
|
58
|
+
|
|
59
|
+
1. **Domain boundary** — What capability is this phase delivering?
|
|
60
|
+
2. **Check prior decisions** — What's already decided from earlier phases?
|
|
61
|
+
3. **Gray areas by category** — For each relevant category, identify 1-2 specific ambiguities
|
|
62
|
+
4. **Auto-resolve each gray area** — Make decisions based on:
|
|
63
|
+
- Codebase patterns (existing conventions)
|
|
64
|
+
- Prior phase decisions (consistency)
|
|
65
|
+
- Requirements (constraints)
|
|
66
|
+
- Best practices (industry standard)
|
|
67
|
+
5. **Log each decision** with rationale
|
|
68
|
+
</step>
|
|
69
|
+
|
|
70
|
+
<step name="pass_guard">
|
|
71
|
+
**CRITICAL — Single-pass guard:**
|
|
72
|
+
This step MUST complete in ONE pass. After writing CONTEXT.md, you are DONE. Do NOT re-read your own CONTEXT.md to identify "gaps", "undefined types", or "missing references" and run additional passes. Each decision naturally references other types and interfaces — this is expected, not a gap. The planner and executor will handle implementation details.
|
|
73
|
+
|
|
74
|
+
Self-referential gap-finding creates an infinite loop where:
|
|
75
|
+
1. Pass N creates decisions referencing types/interfaces
|
|
76
|
+
2. Pass N+1 "discovers" those references as "gaps"
|
|
77
|
+
3. Pass N+1 creates new decisions that reference more types
|
|
78
|
+
4. Repeat forever
|
|
79
|
+
|
|
80
|
+
Write your decisions once, comprehensively, then stop.
|
|
81
|
+
</step>
|
|
82
|
+
|
|
83
|
+
<step name="write_context">
|
|
84
|
+
Create CONTEXT.md capturing decisions made:
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
# Phase [X]: [Name] - Context
|
|
88
|
+
|
|
89
|
+
**Gathered:** [date]
|
|
90
|
+
**Status:** Ready for planning
|
|
91
|
+
**Source:** AI self-discuss (headless mode)
|
|
92
|
+
|
|
93
|
+
## Phase Boundary
|
|
94
|
+
[Clear statement of what this phase delivers]
|
|
95
|
+
|
|
96
|
+
## Implementation Decisions
|
|
97
|
+
### [Category]
|
|
98
|
+
- **D-01:** [Decision] — Rationale: [why]
|
|
99
|
+
|
|
100
|
+
### AI Discretion
|
|
101
|
+
[Areas where AI had flexibility and chose approach]
|
|
102
|
+
|
|
103
|
+
## Existing Code Insights
|
|
104
|
+
### Reusable Assets
|
|
105
|
+
- [Component/hook/utility]: [How it could be used]
|
|
106
|
+
|
|
107
|
+
### Established Patterns
|
|
108
|
+
- [Pattern]: [How it constrains/enables this phase]
|
|
109
|
+
|
|
110
|
+
## Specific Ideas
|
|
111
|
+
[Any particular approaches derived from codebase analysis]
|
|
112
|
+
|
|
113
|
+
## Deferred Ideas
|
|
114
|
+
[Ideas that came up but belong in other phases]
|
|
115
|
+
```
|
|
116
|
+
</step>
|
|
117
|
+
|
|
118
|
+
</process>
|
|
119
|
+
|
|
120
|
+
<success_criteria>
|
|
121
|
+
- Phase validated against roadmap
|
|
122
|
+
- Prior context loaded and honored
|
|
123
|
+
- Gray areas identified and resolved autonomously
|
|
124
|
+
- CONTEXT.md captures actual decisions with rationale
|
|
125
|
+
- Scope maintained (no creep into deferred ideas)
|
|
126
|
+
</success_criteria>
|