pan-wizard 3.36.0 → 3.37.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.
Files changed (314) hide show
  1. package/CHANGELOG.md +3645 -0
  2. package/README.md +36 -48
  3. package/agents/pan-conductor.md +2 -3
  4. package/agents/pan-counterfactual.md +1 -2
  5. package/agents/pan-debugger.md +14 -3
  6. package/agents/pan-design-checker.md +1 -2
  7. package/agents/pan-designer.md +1 -2
  8. package/agents/pan-document_code.md +1 -2
  9. package/agents/pan-hardener.md +2 -3
  10. package/agents/pan-integration-checker.md +1 -2
  11. package/agents/pan-knowledge.md +1 -2
  12. package/agents/pan-meta-reviewer.md +3 -3
  13. package/agents/pan-optimizer.md +4 -4
  14. package/agents/pan-phase-researcher.md +79 -488
  15. package/agents/pan-plan-checker.md +12 -2
  16. package/agents/pan-planner.md +10 -6
  17. package/agents/pan-previewer.md +1 -2
  18. package/agents/pan-project-researcher.md +70 -499
  19. package/agents/pan-release.md +1 -1
  20. package/agents/pan-reviewer.md +9 -3
  21. package/agents/pan-roadmapper.md +12 -7
  22. package/agents/pan-verifier.md +7 -2
  23. package/bin/install-lib.cjs +134 -14
  24. package/bin/install.js +59 -12
  25. package/commands/pan/army.md +1 -1
  26. package/commands/pan/autodev.md +76 -0
  27. package/commands/pan/exec-phase.md +3 -4
  28. package/commands/pan/focus-auto.md +14 -7
  29. package/commands/pan/focus-design.md +4 -5
  30. package/commands/pan/focus-docs.md +24 -0
  31. package/commands/pan/learn.md +13 -6
  32. package/commands/pan/milestone-audit.md +8 -1
  33. package/commands/pan/milestone-done.md +10 -5
  34. package/commands/pan/milestone-new.md +2 -2
  35. package/commands/pan/new-project.md +15 -12
  36. package/commands/pan/plan-phase.md +15 -9
  37. package/commands/pan/quick.md +1 -1
  38. package/commands/pan/review-deep.md +11 -5
  39. package/commands/pan/settings.md +6 -0
  40. package/commands/pan/verify-phase.md +6 -2
  41. package/docs/AGENTS.md +917 -0
  42. package/docs/ARCHITECTURE.md +1054 -0
  43. package/docs/CLI-REFERENCE.md +4582 -0
  44. package/docs/COMPARISON.md +116 -0
  45. package/docs/DEVELOPMENT.md +490 -0
  46. package/docs/ECOSYSTEM-REVIEW-2026-06.md +107 -0
  47. package/docs/ECOSYSTEM-REVIEW-2026-08.md +349 -0
  48. package/docs/EXAMPLES.md +584 -0
  49. package/docs/FAQ.md +254 -0
  50. package/docs/FIELD-HARVEST-2026-07.md +88 -0
  51. package/docs/FIELD-REPORT-army-2026-06.md +121 -0
  52. package/docs/HOOKS.md +638 -0
  53. package/docs/IMPROVEMENT-TODO.md +246 -0
  54. package/docs/INTERNALS.md +485 -0
  55. package/docs/MIGRATION-v2-to-v3.md +258 -0
  56. package/docs/SECURITY-HARDENING.md +230 -0
  57. package/docs/SKILLS-ENHANCEMENT-PLAN-V2.md +122 -0
  58. package/docs/SKILLS-FULL-TEXT.md +9685 -0
  59. package/docs/SKILLS-REFERENCE.md +1037 -0
  60. package/docs/TROUBLESHOOTING.md +1084 -0
  61. package/docs/USER-GUIDE.md +1437 -0
  62. package/docs/archive/SKILLS-ENHANCEMENT-PLAN.md +230 -0
  63. package/docs/audits/AUDIT-2026-08-e2e-ROADMAP.md +117 -0
  64. package/docs/audits/AUDIT-2026-08-e2e-VERIFICATION.md +693 -0
  65. package/docs/audits/AUDIT-2026-08-e2e.md +1546 -0
  66. package/docs/audits/OUTSTANDING-2026-08.md +275 -0
  67. package/docs/audits/STABILITY-TEST-2026-08.md +640 -0
  68. package/docs/branding/README-brand-draft.md +119 -0
  69. package/docs/branding/handoff/IMPLEMENTATION.md +205 -0
  70. package/docs/branding/handoff/README-brand-draft.md +119 -0
  71. package/docs/branding/handoff/image-prompts.md +46 -0
  72. package/docs/branding/image-prompts.md +46 -0
  73. package/docs/branding/nano-banana-prompts.txt +60 -0
  74. package/docs/context-monitor.md +13 -0
  75. package/docs/decisions/ADR-0001-strategic-feature-prioritization.md +83 -0
  76. package/docs/decisions/ADR-0002-copilot-cli-runtime.md +71 -0
  77. package/docs/decisions/ADR-0003-smart-execution.md +84 -0
  78. package/docs/decisions/ADR-0004-copilot-cli-interaction.md +89 -0
  79. package/docs/decisions/ADR-0005-command-naming.md +80 -0
  80. package/docs/decisions/ADR-0006-focus-commands.md +101 -0
  81. package/docs/decisions/ADR-0007-ship-v1.md +73 -0
  82. package/docs/decisions/ADR-0008-map-codebase-mermaid-togaf.md +80 -0
  83. package/docs/decisions/ADR-0009-production-deployment-checklist.md +68 -0
  84. package/docs/decisions/ADR-0010-standards-integration.md +79 -0
  85. package/docs/decisions/ADR-0011-help-commands-rewrite.md +64 -0
  86. package/docs/decisions/ADR-0012-contributors-attribution-index.md +42 -0
  87. package/docs/decisions/ADR-0013-strategic-feature-additions.md +53 -0
  88. package/docs/decisions/ADR-0014-internal-cleanup-code-quality.md +53 -0
  89. package/docs/decisions/ADR-0015-focus-auto-runner.md +296 -0
  90. package/docs/decisions/ADR-0016-enhanced-doc-sync.md +54 -0
  91. package/docs/decisions/ADR-0017-enhanced-focus-design.md +69 -0
  92. package/docs/decisions/ADR-0018-user-reality-testing.md +84 -0
  93. package/docs/decisions/ADR-0019-end-to-end-user-acceptance-testing.md +113 -0
  94. package/docs/decisions/ADR-0020-ai-drift-prevention.md +55 -0
  95. package/docs/decisions/ADR-0021-codebase-mapper-v2.md +76 -0
  96. package/docs/decisions/ADR-0022-lifecycle-completeness.md +63 -0
  97. package/docs/decisions/ADR-0023-opus-4-7-adoption.md +89 -0
  98. package/docs/decisions/ADR-0024-spec-b-v2-completion.md +137 -0
  99. package/docs/decisions/ADR-0025-behavioral-guardrails-layer.md +129 -0
  100. package/docs/decisions/ADR-0026-self-improvement-loop.md +171 -0
  101. package/docs/decisions/ADR-0027-doc-code-link-graph.md +164 -0
  102. package/docs/decisions/ADR-0028-unified-agents-skills-target.md +46 -0
  103. package/docs/decisions/ADR-0029-experiment-evaluator.md +76 -0
  104. package/docs/decisions/ADR-0030-planning-concurrency.md +37 -0
  105. package/docs/decisions/ADR-0031-focus-auto-backlog-source.md +47 -0
  106. package/docs/decisions/ADR-0032-squad-model.md +64 -0
  107. package/docs/decisions/ADR-0033-army-campaign.md +40 -0
  108. package/docs/decisions/ADR-0034-scheduled-campaigns.md +57 -0
  109. package/docs/decisions/ADR-0035-army-hud-dashboard.md +40 -0
  110. package/docs/decisions/ADR-0036-agentic-memory-architecture.md +106 -0
  111. package/docs/decisions/ADR-0037-pin-security-agents-to-opus.md +51 -0
  112. package/docs/decisions/ADR-0038-skill-aligned-decomposition.md +41 -0
  113. package/docs/decisions/ADR-0039-worktree-as-project-variant.md +37 -0
  114. package/docs/decisions/ADR-0040-memory-injection-defense.md +55 -0
  115. package/docs/decisions/ADR-0041-mcp-dual-era-bridge.md +47 -0
  116. package/docs/decisions/ADR-0042-design-parity-both-flows.md +45 -0
  117. package/docs/decisions/ADR-0043-addressable-planning-roots.md +56 -0
  118. package/docs/decisions/ADR-0044-bound-the-cached-context.md +104 -0
  119. package/docs/decisions/ADR-0045-agent-plugins-bundle.md +76 -0
  120. package/docs/decisions/ADR-0046-subagent-frontmatter-decisions.md +39 -0
  121. package/docs/decisions/ADR-0047-pan-harness.md +76 -0
  122. package/docs/decisions/ADR-0048-one-core-per-project.md +43 -0
  123. package/docs/decisions/ADR-0049-machine-verdicts-and-findings-ledger.md +116 -0
  124. package/docs/specs/ai_drift_prevention_featureai.md +286 -0
  125. package/docs/specs/codebase_mapper_v2_featureai.md +930 -0
  126. package/docs/specs/command_naming_optimization_featureai.md +930 -0
  127. package/docs/specs/comp_analysis_markdown_v1.md +149 -0
  128. package/docs/specs/continuous_autonomous_execution_featureai.md +304 -0
  129. package/docs/specs/contributors_attribution_index_featureai.md +476 -0
  130. package/docs/specs/copilot_cli_interaction_featureai.md +868 -0
  131. package/docs/specs/copilot_cli_runtime_featureai.md +647 -0
  132. package/docs/specs/custom-skills-assessment.md +461 -0
  133. package/docs/specs/deployment_audit_findings_featureai.md +243 -0
  134. package/docs/specs/doc_code_link_graph_featureai.md +253 -0
  135. package/docs/specs/documentation_alignment_cleanup_featureai.md +69 -0
  136. package/docs/specs/e2e_visual_testing_featureai.md +615 -0
  137. package/docs/specs/end_to_end_user_acceptance_testing_featureai.md +810 -0
  138. package/docs/specs/evidence-loop-plan.md +76 -0
  139. package/docs/specs/evidence_loop_featureai.md +497 -0
  140. package/docs/specs/focus-auto-optimize-category.md +449 -0
  141. package/docs/specs/focus-auto-optimize-superplan.md +188 -0
  142. package/docs/specs/focus_auto_runner_featureai.md +1102 -0
  143. package/docs/specs/focus_design_v2_featureai.md +197 -0
  144. package/docs/specs/focus_sync_v2_featureai.md +202 -0
  145. package/docs/specs/git_integration_overhaul_featureai.md +326 -0
  146. package/docs/specs/glm_zai_provider_featureai.md +200 -0
  147. package/docs/specs/googlecli_adoption_featureai.md +661 -0
  148. package/docs/specs/help_commands_rewrite_featureai.md +860 -0
  149. package/docs/specs/industry_analysis_strategic_additions_featureai.md +231 -0
  150. package/docs/specs/industry_comparison_and_feature_gaps_featureai.md +674 -0
  151. package/docs/specs/internal_cleanup_code_quality_featureai.md +486 -0
  152. package/docs/specs/investigations/README.md +31 -0
  153. package/docs/specs/investigations/digests/2026-09-28.md +47 -0
  154. package/docs/specs/investigations/digests/2026-10-08.md +62 -0
  155. package/docs/specs/investigations/digests/2026-10-10.md +61 -0
  156. package/docs/specs/investigations/features/debugger-red-loop-first.md +55 -0
  157. package/docs/specs/investigations/features/harness-cross-host-behaviour.md +93 -0
  158. package/docs/specs/investigations/features/optimize-apply-regression-gate.md +66 -0
  159. package/docs/specs/investigations/features/reviewer-smell-baseline.md +57 -0
  160. package/docs/specs/investigations/features/trace-failure-capture.md +69 -0
  161. package/docs/specs/lifecycle_completeness_featureai.md +754 -0
  162. package/docs/specs/local-first-ci.md +42 -0
  163. package/docs/specs/map_codebase_mermaid_togaf_featureai.md +805 -0
  164. package/docs/specs/market-delta-2026-09-superplan.md +310 -0
  165. package/docs/specs/market-ideas-2026-09.md +131 -0
  166. package/docs/specs/market-ideas-2026-10.md +428 -0
  167. package/docs/specs/market-ideas-ledger.md +177 -0
  168. package/docs/specs/memory-optimization-2026-10.md +285 -0
  169. package/docs/specs/multi-track-planning-roots.md +143 -0
  170. package/docs/specs/multi_model_routing_featureai.md +687 -0
  171. package/docs/specs/multi_model_routing_superplan.md +197 -0
  172. package/docs/specs/opus_47_existing_enhancements_featureai.md +247 -0
  173. package/docs/specs/opus_47_extended_features_featureai.md +363 -0
  174. package/docs/specs/opus_47_extended_features_v2_featureai.md +397 -0
  175. package/docs/specs/pan_focus_commands_featureai.md +2336 -0
  176. package/docs/specs/pan_zcode_mcp_bridge_featureai.md +120 -0
  177. package/docs/specs/product-excellence-superplan.md +315 -0
  178. package/docs/specs/product_excellence_program_2026_q4_featureai.md +365 -0
  179. package/docs/specs/production_deployment_readiness_featureai.md +433 -0
  180. package/docs/specs/production_readiness_ship_v1_featureai.md +698 -0
  181. package/docs/specs/real_test_enforcement_featureai.md +213 -0
  182. package/docs/specs/reality-check-2026-09-superplan.md +362 -0
  183. package/docs/specs/right-sized-ceremony.md +74 -0
  184. package/docs/specs/roadmap_and_competition_2026_q4_featureai.md +390 -0
  185. package/docs/specs/self_improvement_loop_featureai.md +875 -0
  186. package/docs/specs/skill-aligned-decomposition.md +155 -0
  187. package/docs/specs/standards_integration_featureai.md +833 -0
  188. package/docs/specs/testing-system-redesign-2026-09.md +267 -0
  189. package/docs/specs/user_reality_testing_system_featureai.md +788 -0
  190. package/docs/specs/watch-triggers.json +22 -0
  191. package/docs/specs/workflow-integration-redesign.md +742 -0
  192. package/docs/specs/workflow_state_consistency_featureai.md +183 -0
  193. package/hooks/dist/pan-context-monitor.js +9 -2
  194. package/hooks/dist/pan-cost-logger.js +5 -0
  195. package/hooks/dist/pan-guard.js +28 -5
  196. package/hooks/dist/pan-stop-guard.js +9 -9
  197. package/hooks/dist/pan-trace-logger.js +5 -0
  198. package/package.json +10 -2
  199. package/pan-wizard-core/bin/lib/agents-md.cjs +57 -8
  200. package/pan-wizard-core/bin/lib/autodev-report.cjs +180 -0
  201. package/pan-wizard-core/bin/lib/autodev.cjs +642 -0
  202. package/pan-wizard-core/bin/lib/ci.cjs +143 -0
  203. package/pan-wizard-core/bin/lib/commands.cjs +1 -1
  204. package/pan-wizard-core/bin/lib/config.cjs +31 -2
  205. package/pan-wizard-core/bin/lib/constants.cjs +27 -1
  206. package/pan-wizard-core/bin/lib/core.cjs +22 -10
  207. package/pan-wizard-core/bin/lib/cost.cjs +14 -4
  208. package/pan-wizard-core/bin/lib/cross-family.cjs +164 -0
  209. package/pan-wizard-core/bin/lib/debug-cases.cjs +104 -0
  210. package/pan-wizard-core/bin/lib/failure-class.cjs +81 -0
  211. package/pan-wizard-core/bin/lib/findings.cjs +34 -4
  212. package/pan-wizard-core/bin/lib/focus.cjs +1 -1
  213. package/pan-wizard-core/bin/lib/hosts.cjs +88 -0
  214. package/pan-wizard-core/bin/lib/init.cjs +7 -2
  215. package/pan-wizard-core/bin/lib/knowledge.cjs +2 -0
  216. package/pan-wizard-core/bin/lib/merge.cjs +50 -0
  217. package/pan-wizard-core/bin/lib/mutate.cjs +16 -5
  218. package/pan-wizard-core/bin/lib/next-action.cjs +112 -0
  219. package/pan-wizard-core/bin/lib/optimize.cjs +2 -2
  220. package/pan-wizard-core/bin/lib/phase.cjs +48 -4
  221. package/pan-wizard-core/bin/lib/plan-lint.cjs +150 -1
  222. package/pan-wizard-core/bin/lib/preview.cjs +23 -4
  223. package/pan-wizard-core/bin/lib/requirements-lint.cjs +130 -0
  224. package/pan-wizard-core/bin/lib/research-lint.cjs +150 -3
  225. package/pan-wizard-core/bin/lib/review-deep.cjs +14 -22
  226. package/pan-wizard-core/bin/lib/review-vote.cjs +105 -0
  227. package/pan-wizard-core/bin/lib/runner.cjs +2 -16
  228. package/pan-wizard-core/bin/lib/sizing.cjs +356 -0
  229. package/pan-wizard-core/bin/lib/squads.cjs +1 -1
  230. package/pan-wizard-core/bin/lib/state-write.cjs +247 -0
  231. package/pan-wizard-core/bin/lib/uat.cjs +149 -0
  232. package/pan-wizard-core/bin/lib/verdict.cjs +26 -3
  233. package/pan-wizard-core/bin/lib/verify-plan-set.cjs +30 -1
  234. package/pan-wizard-core/bin/lib/verify-preflight.cjs +2 -2
  235. package/pan-wizard-core/bin/lib/verify-red.cjs +37 -1
  236. package/pan-wizard-core/bin/lib/verify-retro.cjs +3 -2
  237. package/pan-wizard-core/bin/lib/verify.cjs +59 -4
  238. package/pan-wizard-core/bin/lib/worktree.cjs +70 -0
  239. package/pan-wizard-core/bin/pan-tools.cjs +168 -27
  240. package/pan-wizard-core/learnings/universal/autonomous-loop.md +2 -2
  241. package/pan-wizard-core/references/continuation-format.md +3 -3
  242. package/pan-wizard-core/references/guardrails.md +1 -1
  243. package/pan-wizard-core/references/model-profiles.md +2 -3
  244. package/pan-wizard-core/references/questioning.md +24 -0
  245. package/pan-wizard-core/references/ui-brand.md +4 -6
  246. package/pan-wizard-core/references/verdict-contract.md +2 -1
  247. package/pan-wizard-core/templates/config.json +5 -1
  248. package/pan-wizard-core/templates/debug.md +1 -0
  249. package/pan-wizard-core/templates/discovery.md +2 -2
  250. package/pan-wizard-core/templates/requirements.md +9 -0
  251. package/pan-wizard-core/workflows/add-phase.md +4 -6
  252. package/pan-wizard-core/workflows/assumptions.md +19 -1
  253. package/pan-wizard-core/workflows/diagnose-issues.md +2 -0
  254. package/pan-wizard-core/workflows/discuss-phase.md +4 -2
  255. package/pan-wizard-core/workflows/exec-lean.md +69 -0
  256. package/pan-wizard-core/workflows/exec-phase.md +36 -8
  257. package/{commands/pan → pan-wizard-core/workflows}/focus-doc-audit.md +13 -29
  258. package/{commands/pan → pan-wizard-core/workflows}/focus-drift-walking.md +3 -18
  259. package/{commands/pan → pan-wizard-core/workflows}/focus-exec.md +8 -23
  260. package/{commands/pan → pan-wizard-core/workflows}/focus-plan.md +6 -20
  261. package/{commands/pan → pan-wizard-core/workflows}/focus-scan.md +3 -16
  262. package/{commands/pan → pan-wizard-core/workflows}/focus-sync.md +7 -21
  263. package/pan-wizard-core/workflows/health.md +6 -0
  264. package/pan-wizard-core/workflows/help.md +31 -53
  265. package/pan-wizard-core/workflows/insert-phase.md +4 -6
  266. package/pan-wizard-core/workflows/learn.md +3 -3
  267. package/pan-wizard-core/workflows/milestone-audit.md +2 -2
  268. package/pan-wizard-core/workflows/milestone-new.md +38 -95
  269. package/pan-wizard-core/workflows/new-project.md +96 -258
  270. package/pan-wizard-core/workflows/optimize.md +107 -5
  271. package/pan-wizard-core/workflows/phase-tests.md +10 -0
  272. package/pan-wizard-core/workflows/plan-phase.md +86 -43
  273. package/pan-wizard-core/workflows/profile.md +50 -0
  274. package/pan-wizard-core/workflows/progress.md +10 -0
  275. package/pan-wizard-core/workflows/quick.md +34 -43
  276. package/pan-wizard-core/workflows/research-phase.md +118 -40
  277. package/pan-wizard-core/workflows/resume-project.md +18 -2
  278. package/pan-wizard-core/workflows/settings.md +21 -24
  279. package/pan-wizard-core/workflows/todo-check.md +6 -2
  280. package/pan-wizard-core/workflows/transition.md +22 -4
  281. package/pan-wizard-core/workflows/uat-walkthrough.md +90 -0
  282. package/pan-wizard-core/workflows/update.md +1 -1
  283. package/pan-wizard-core/workflows/verify-phase.md +2 -2
  284. package/scripts/build-agent-plugin.js +35 -15
  285. package/scripts/build-plugin.js +10 -1
  286. package/scripts/deprecate-old-versions.js +70 -3
  287. package/scripts/generate-skills-docs.py +1 -1
  288. package/scripts/git-hooks/pre-push +27 -0
  289. package/scripts/install-git-hooks.js +7 -5
  290. package/scripts/install-pre-push.cjs +38 -0
  291. package/scripts/land.cjs +151 -0
  292. package/scripts/local-ci.cjs +501 -0
  293. package/scripts/local-schedule.cjs +277 -0
  294. package/scripts/prompt-lint.cjs +32 -0
  295. package/scripts/prompt-rules.cjs +156 -0
  296. package/scripts/run-tests.cjs +7 -1
  297. package/scripts/test-quality-lint.cjs +3 -3
  298. package/scripts/test-surface.cjs +9 -2
  299. package/agents/pan-research-synthesizer.md +0 -246
  300. package/commands/pan/audit-deployment.md +0 -386
  301. package/commands/pan/dashboard.md +0 -22
  302. package/commands/pan/discord.md +0 -19
  303. package/commands/pan/mcp-bridge.md +0 -143
  304. package/commands/pan/milestone-cleanup.md +0 -19
  305. package/commands/pan/milestone-gaps.md +0 -35
  306. package/commands/pan/optimize.md +0 -115
  307. package/commands/pan/profile.md +0 -76
  308. package/commands/pan/research-phase.md +0 -189
  309. package/pan-wizard-core/bin/lib/bridge.cjs +0 -269
  310. package/pan-wizard-core/templates/research-project/architecture.md +0 -210
  311. package/pan-wizard-core/templates/research-project/features.md +0 -153
  312. package/pan-wizard-core/templates/research-project/pitfalls.md +0 -206
  313. package/pan-wizard-core/templates/research-project/stack.md +0 -126
  314. package/pan-wizard-core/templates/research-project/summary.md +0 -170
@@ -0,0 +1,83 @@
1
+ # ADR-0001: Strategic Feature Prioritization Based on Competitive Analysis
2
+
3
+ ## Status
4
+ Partially Accepted — 3 of 5 features implemented (2026-02-28)
5
+
6
+ ## Date
7
+ 2026-02-28
8
+
9
+ ## Context
10
+
11
+ PAN Wizard operates in a rapidly consolidating AI coding tool market. As of February 2026:
12
+
13
+ - **Cursor 2.0** shipped multi-agent (8 parallel), Mission Control, background agents, and Plan Mode
14
+ - **Windsurf Wave 13** added parallel multi-agent sessions, git worktrees, and Arena Mode
15
+ - **GitHub Copilot** launched agent mode with specialized sub-agents (Explore, Task, Code Review, Plan) and Copilot CLI (GA Feb 2026)
16
+ - **Devin 2.0** dropped pricing from $500/mo to $20/mo with interactive planning, Devin Search, and Devin Wiki
17
+ - **Cline** added CLI 2.0 with parallel agents and headless CI/CD mode
18
+ - **Continue.dev** pivoted to CI/CD background agents with shareable agent configurations
19
+
20
+ PAN Wizard pioneered many of these patterns (multi-agent orchestration, plan-verify loops, wave-based parallel execution) but competitors are closing the gap. The question is: what should PAN build next to maintain and extend its lead?
21
+
22
+ ## Decision
23
+
24
+ **Prioritize features that make PAN's invisible strengths visible and address the primary limitation of phase-scoped execution (lack of cross-session learning), rather than copying competitor features that belong to the host tool layer.**
25
+
26
+ ### Specifically:
27
+
28
+ 1. **Context Budget Tracking** (P0) — Make context engineering visible — **DONE** (`context-budget.cjs`, `/pan:context-budget` command)
29
+ 2. **Cross-Session Learning** (P1) — Extract patterns from completed phases — NOT STARTED
30
+ 3. **Live Project Health Dashboard** (P1) — Quality + velocity + risk scoring — **PARTIAL** (`progress health` subcommand with A-D grading)
31
+ 4. **Intelligent Phase Splitting** (P2) — Auto-decomposition based on context budget — NOT STARTED
32
+ 5. **Comparison & Benchmark Command** (P2) — Honest, factual self-comparison — **DONE** (`docs/COMPARISON.md`, 8-tool × 18-dimension matrix)
33
+
34
+ ### What we explicitly DO NOT build:
35
+
36
+ - **Browser testing** — Cline's territory. Not PAN's job
37
+ - **Autocomplete** — Host tool's job (Claude Code, OpenCode, etc.)
38
+ - **IDE-level codebase indexing** — Cursor/Windsurf's domain. PAN has `map-codebase` which is sufficient
39
+ - **Cloud sandboxed execution** — Devin's territory. PAN runs locally by design
40
+ - **Real-time collaboration** — Not aligned with CLI-first architecture
41
+
42
+ ## Consequences
43
+
44
+ ### Positive
45
+ - Context budget tracking makes PAN's #1 value prop (context rot prevention) tangible and measurable
46
+ - Cross-session learning addresses the most common criticism of fresh-context-per-phase architecture
47
+ - All features maintain zero-dependency constraint and cross-platform support (5 runtimes)
48
+ - All features are additive — no breaking changes to existing workflows
49
+ - Honest comparison command builds trust with evaluators
50
+
51
+ ### Negative
52
+ - Static comparison data requires manual maintenance as competitors evolve rapidly
53
+ - Context quality scoring is a novel concept with no established methodology to validate against
54
+ - Cross-session patterns could become stale or misleading if not actively managed
55
+ - Not building browser testing or autocomplete means PAN remains dependent on host tool capabilities
56
+
57
+ ### Neutral
58
+ - These features strengthen PAN's position as an orchestration layer, not an IDE replacement
59
+ - Compare command may be perceived as marketing rather than engineering (mitigated by factual framing)
60
+ - Phase splitting advisor is advisory, not automatic — users retain control
61
+
62
+ ## Options Considered
63
+
64
+ ### Option A: Copy Competitors (Rejected)
65
+ Add browser testing (from Cline), autocomplete (from Cursor), codebase indexing (from Windsurf).
66
+
67
+ **Why rejected:** Violates PAN's layered architecture. Duplicates host tool capabilities. Would require runtime dependencies (Puppeteer, embedding models). Would narrow cross-platform support. Increases maintenance burden without strengthening core moat.
68
+
69
+ ### Option B: Focus on Visibility and Intelligence (Selected)
70
+ Make existing strengths visible (context budget), add intelligence (pattern learning, health scoring), and enable informed decomposition (phase splitting).
71
+
72
+ **Why selected:** Strengthens PAN's unique moat (context engineering) without scope creep. All features align with zero-dependency constraint. Each feature independently valuable. Clear implementation path through existing architecture.
73
+
74
+ ### Option C: Do Nothing (Rejected)
75
+ Rely on existing differentiators and word-of-mouth.
76
+
77
+ **Why rejected:** Competitors are actively closing the gap on multi-agent execution and planning. PAN's lead is real but not visible to evaluators. Without context budget tracking, users can't see WHY PAN works better. Without cross-session learning, the fresh-context-per-phase design has a real limitation that needs addressing.
78
+
79
+ ## Links
80
+ - Feature spec: `docs/specs/industry_comparison_and_feature_gaps_featureai.md`
81
+ - Related modules: all 14 core modules in `pan-wizard-core/bin/lib/`
82
+ - Related commands: `/pan:progress`, `/pan:health`, `/pan:plan-phase`, `/pan:execute-phase`
83
+ - Enables: v0.2.0 roadmap prioritization
@@ -0,0 +1,71 @@
1
+ # ADR-0002: GitHub Copilot CLI Runtime Support
2
+
3
+ ## Status
4
+ Accepted — fully implemented (2026-02-28)
5
+
6
+ ## Context
7
+
8
+ GitHub Copilot CLI went generally available on February 25, 2026, included in all Copilot plans (Free, Pro, Pro+, Business, Enterprise). It supports custom agents (`.agent.md`), skills (`SKILL.md`), hooks (7 event types), and MCP servers — concepts that map directly to PAN Wizard's architecture.
9
+
10
+ PAN Wizard currently supports 4 terminal AI runtimes: Claude Code, OpenCode, Gemini CLI, and Codex. GitHub Copilot CLI represents the largest commercial AI developer tool ecosystem (150M+ GitHub developers) and shares structural similarities with PAN's existing runtime targets.
11
+
12
+ The key forces at play:
13
+ 1. **Market timing** — First-mover advantage for structured workflow tools on a newly GA platform
14
+ 2. **Architecture fit** — Copilot CLI's skill/agent/hook model maps cleanly to PAN's existing patterns
15
+ 3. **Proven template** — PAN already handles 4 runtimes with format converters; a 5th follows the same pattern
16
+ 4. **User demand** — Direct user request in this conversation; Copilot CLI issue #783 requesting structured planning
17
+
18
+ ## Decision
19
+
20
+ Add GitHub Copilot CLI as PAN Wizard's 5th supported runtime via installer enhancement.
21
+
22
+ ### Key design choices:
23
+
24
+ 1. **Skills, not commands** — Install PAN commands as `skills/pan-*/SKILL.md` (Copilot CLI's native format, similar to how Codex uses `skills/pan-*/SKILL.md`)
25
+
26
+ 2. **`.agent.md` extension** — Install PAN agents as `pan-*.agent.md` files (Copilot CLI convention, distinct from Claude Code's plain `.md`)
27
+
28
+ 3. **Native hooks** — Use Copilot CLI's own hook system (JSON config files with event types) rather than embedding in config.json
29
+
30
+ 4. **`/pan-` prefix** — Skills in Copilot CLI are invoked via `/skill-name`, so PAN commands become `/pan-new-project`, `/pan-plan-phase`, etc.
31
+
32
+ 5. **Global: `~/.copilot/`, Local: `.github/`** — Follow Copilot CLI's standard paths. Local installs to `.github/` (not `.copilot/`) because Copilot CLI reads skills/agents from `.github/` for project scope.
33
+
34
+ 6. **Installer-only change** — No modifications to core modules, pan-tools.cjs, or existing command/agent definitions. All conversion happens at install time.
35
+
36
+ ## Consequences
37
+
38
+ ### Positive
39
+ - PAN Wizard covers 5 major terminal AI runtimes — unmatched multi-runtime support
40
+ - Access to GitHub's massive developer ecosystem
41
+ - First structured workflow tool available on Copilot CLI post-GA
42
+ - Proven pattern — minimal risk, follows existing 4-runtime template
43
+ - Hook support means statusline, context monitor, and update checker all work
44
+
45
+ ### Negative
46
+ - Installer grows by ~200-300 lines (already 2,157 lines for 4 runtimes)
47
+ - Another format converter to maintain (though Copilot CLI format is stable post-GA)
48
+ - Must monitor GitHub Changelog for any format changes in early GA period
49
+
50
+ ### Neutral
51
+ - Command count is 37, agent count stays at 11
52
+ - No new user concepts — same PAN workflow, one more runtime option
53
+ - Test suite grows by ~16 tests for installer coverage
54
+
55
+ ## Options Considered
56
+
57
+ 1. **Wait for Copilot CLI format to stabilize** — Rejected because the format is already stable at GA; waiting loses first-mover advantage.
58
+
59
+ 2. **Plugin distribution via `/plugin install`** — Deferred to v2. Requires GitHub repository packaging and marketplace registration. The installer approach works now and is consistent with other runtimes.
60
+
61
+ 3. **Hybrid: use Codex skill format for Copilot CLI** — Rejected. While both use `SKILL.md`, Copilot CLI has its own conventions (`.agent.md` for agents, different tool names, native hook system). A dedicated converter produces cleaner results.
62
+
63
+ 4. **Add as installer option (chosen)** — Consistent with how all 4 existing runtimes work. Proven pattern, minimal risk, maximum compatibility.
64
+
65
+ ## Links
66
+ - Spec: `docs/specs/copilot_cli_runtime_featureai.md`
67
+ - Related: `bin/install.js` (primary implementation file)
68
+ - Related: ADR-0001 (strategic feature prioritization)
69
+ - External: [Copilot CLI GA announcement](https://github.blog/changelog/2026-02-25-github-copilot-cli-is-now-generally-available/)
70
+ - External: [Copilot CLI custom agents docs](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli)
71
+ - External: [Copilot CLI skills docs](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-skills)
@@ -0,0 +1,84 @@
1
+ # ADR-0003: Smart Execution System
2
+
3
+ **Status:** Accepted
4
+ **Date:** 2026-03-01
5
+ **Context:** Workflow Integration Redesign — `docs/specs/workflow-integration-redesign.md`
6
+
7
+ ## Decision
8
+
9
+ Implement a tiered execution system with budget tracking, commit safety, rollback snapshots, and error pattern learning to improve execution efficiency and safety.
10
+
11
+ ## Context
12
+
13
+ The execute-phase workflow treated all plans identically regardless of complexity. A 1-task typo fix consumed the same agent lifecycle (spawn, execute, verify, summarize) as a 12-task multi-module refactor. This led to:
14
+
15
+ - **Context waste:** Simple tasks consumed full 200K context windows unnecessarily
16
+ - **No budget awareness:** Sessions could attempt more work than practically feasible
17
+ - **No safety nets:** Sensitive files could be committed accidentally; no easy rollback
18
+ - **No learning:** Repeated mistakes weren't captured across sessions
19
+
20
+ ## Approach
21
+
22
+ ### Tier Classification (MICRO / STANDARD / FULL)
23
+
24
+ Plans are classified based on complexity signals from frontmatter:
25
+
26
+ | Tier | Criteria | Agent Behavior |
27
+ |------|----------|----------------|
28
+ | MICRO | task_count <= 3 AND files_modified <= 2 | Minimal context, fast verification |
29
+ | STANDARD | task_count <= 8 | Normal execution with full verification |
30
+ | FULL | task_count > 8 OR autonomous=false | Extended context, human-in-loop possible |
31
+
32
+ Explicit `tier` field in frontmatter overrides the algorithm.
33
+
34
+ ### Budget Point System
35
+
36
+ | Effort | Points | Meaning |
37
+ |--------|--------|---------|
38
+ | XS | 1 | Config tweak, typo fix |
39
+ | S | 2 | Single-file bug fix |
40
+ | M | 4 | Multi-file feature |
41
+ | L | 10 | Multi-module change |
42
+ | XL | 20 | New subsystem |
43
+
44
+ Default budget: 50 points per session. Configurable via `--budget N` (1-200) or `config.budget.default_points`.
45
+
46
+ ### Commit Safety
47
+
48
+ Before committing, check for:
49
+ 1. **Deleted files** — warn unless `--force`
50
+ 2. **Sensitive files** — block `.env`, `.pem`, `.key`, `credentials`, etc.
51
+
52
+ Patterns configurable via `config.commit.sensitive_patterns`.
53
+
54
+ ### Rollback Snapshots
55
+
56
+ `rollback-snapshot <phase>` creates a git tag `pan-rollback-{phase}-{timestamp}` at current HEAD before execution begins. Easy `git reset --hard pan-rollback-...` to undo a failed execution.
57
+
58
+ ### Error Pattern Learning
59
+
60
+ `readErrorPatterns()` and `appendErrorPattern()` manage `.planning/patterns.md` — a structured log of PAT-NNN entries capturing what went wrong, what's correct, and context. Patterns persist across sessions.
61
+
62
+ ### Session History
63
+
64
+ `appendSessionSummary()` appends to `.planning/session-history.md`, keeping the last 20 entries. Tracks phase, plans executed, test counts before/after, and key decisions.
65
+
66
+ ## Consequences
67
+
68
+ ### Positive
69
+ - XS/S tasks can complete in 1 agent round-trip (MICRO tier)
70
+ - Budget prevents context exhaustion from over-ambitious sessions
71
+ - Commit safety catches accidental secret leaks
72
+ - Rollback tags provide easy recovery from failed executions
73
+ - Error patterns enable cross-session learning
74
+
75
+ ### Negative
76
+ - Additional complexity in plan frontmatter (tier, priority, effort fields)
77
+ - Budget system requires effort estimation upfront
78
+ - patterns.md and session-history.md add to planning directory size
79
+
80
+ ## Alternatives Considered
81
+
82
+ 1. **Dynamic tier detection at runtime** — Rejected; frontmatter-based classification is simpler and predictable
83
+ 2. **Token-based budget instead of points** — Rejected; token costs vary by model, points are stable
84
+ 3. **Automatic rollback on test failure** — Deferred; too aggressive for v0.3.0, may lose valid partial work
@@ -0,0 +1,89 @@
1
+ # ADR-0004: Copilot CLI Interactive Experience Optimization
2
+
3
+ ## Status
4
+ Accepted (shipped in v1.0.0 — 2026-03-01)
5
+
6
+ ## Context
7
+ PAN Wizard supports 5 AI CLI runtimes. Four of them (Claude Code, OpenCode, Gemini CLI, Codex)
8
+ have either native structured input tools or adequate text-based equivalents for user interaction.
9
+ The 5th runtime, GitHub Copilot CLI (GA 2026-02-25), has no structured input tool — there is no
10
+ `ask_user` equivalent in the documented API, and the CLI is purely text-in/text-out.
11
+
12
+ PAN's 37 commands contain 41 `AskUserQuestion` invocations across 15 workflow files, including
13
+ 3 multiSelect patterns (discuss-phase, new-project, new-milestone). When installed for Copilot CLI,
14
+ these invocations are stripped (`AskUserQuestion: null` in tool mapping) and naively text-replaced
15
+ (`AskUserQuestion` → `question` in some paths), producing unstructured prose questions that confuse
16
+ users. The user-reported symptom: "On copilot the options are not coming up for select — you get
17
+ a question sheet" with a wall of unstructured text.
18
+
19
+ Competitive analysis of 6 AI coding tools (Aider, Cursor, Continue.dev, Cline, Windsurf,
20
+ GitHub Copilot Workspace) shows that structured user interaction is underserved across the industry.
21
+ Only Cline offers LLM-generated option buttons (single-select), and only Copilot Workspace offers
22
+ file-level checkboxes. No tool offers CLI-native numbered multi-select. This is a differentiation
23
+ opportunity.
24
+
25
+ ## Decision
26
+ Enhance the install-time Copilot CLI converter in `bin/install.js` to:
27
+
28
+ 1. **Adapter header interaction guidance** — Add a "User interaction" section to
29
+ `getCopilotSkillAdapterHeader()` that teaches the model how to present structured choices
30
+ as numbered text menus, handle multi-select via comma-separated numbers, and always offer
31
+ a free-text fallback.
32
+
33
+ 2. **AskUserQuestion block rewriting** — Add a `rewriteAskUserQuestionForCopilot()` function
34
+ that uses regex to convert `AskUserQuestion` block patterns (with header/question/options)
35
+ into explicit numbered-menu instructions with response format guidance.
36
+
37
+ 3. **multiSelect handling** — Detect `multiSelect: true` patterns and add "type numbers
38
+ separated by commas" instructions in the rewritten output.
39
+
40
+ 4. **Inline reference cleanup** — Replace remaining `AskUserQuestion` text references with
41
+ conversational equivalents ("Ask the user with numbered options").
42
+
43
+ This is an install-time conversion only. No runtime changes, no new commands, no new dependencies.
44
+
45
+ ## Consequences
46
+
47
+ ### Positive
48
+ - Copilot CLI users get structured interaction matching the quality of other runtimes
49
+ - All 41 interaction points across 15 workflows improved
50
+ - Leverages the decades-old "numbered menu" text-UI pattern (familiar to all developers)
51
+ - No runtime dependencies, hooks, or API changes needed
52
+ - Zero new commands, zero new concepts — transparent enhancement
53
+ - Establishes PAN as the reference implementation for text-based structured interaction in AI CLIs
54
+
55
+ ### Negative
56
+ - Regex-based block rewriting is fragile — new AskUserQuestion patterns in future workflows
57
+ must follow the existing format or the regex won't match (graceful degradation: passes through unchanged)
58
+ - Users must reinstall to get improvements (no auto-update for installed skill files)
59
+ - Model still must interpret user responses (no programmatic validation — quality depends on the model)
60
+ - Installed skill files become slightly larger (~500 bytes per file from added guidance)
61
+
62
+ ### Neutral
63
+ - Install time increases by ~50ms (negligible)
64
+ - Converter function complexity increases moderately (one new ~40 line function)
65
+ - Pattern established here may need updating if Copilot CLI adds native structured input tools
66
+
67
+ ## Options Considered
68
+
69
+ 1. **Do nothing** — Accept Copilot CLI as a degraded runtime.
70
+ *Rejected:* User reported the problem directly, Copilot CLI is the largest commercial AI CLI,
71
+ and PAN's value proposition is runtime parity.
72
+
73
+ 2. **Runtime prompt engineering via hooks** — Copilot CLI hooks can only deny/allow tool use,
74
+ not modify prompts or inject context.
75
+ *Rejected:* Technically impossible with current Copilot CLI hook API.
76
+
77
+ 3. **Custom TUI framework** — Build ncurses-style widgets for Copilot CLI output.
78
+ *Rejected:* Over-engineering; Copilot CLI doesn't support custom TUI rendering;
79
+ not portable across terminals.
80
+
81
+ 4. **Install-time converter enhancement (chosen)** — Modify existing converter functions to
82
+ produce better output. Best fit for PAN's install-time architecture, zero runtime overhead,
83
+ consistent with how all other runtime conversions work.
84
+
85
+ ## Links
86
+ - Related to: ADR-0002 (Copilot CLI runtime support — established the converter architecture)
87
+ - Feature spec: `docs/specs/copilot_cli_interaction_featureai.md`
88
+ - Affects: `bin/install.js` (converter functions), `tests/copilot-install.test.cjs`
89
+ - AskUserQuestion reference: `pan-wizard-core/references/questioning.md`
@@ -0,0 +1,80 @@
1
+ # ADR-0005: Command Naming Restructure
2
+
3
+ ## Status
4
+ Accepted (shipped in v1.0.0 — 2026-03-01)
5
+
6
+ ## Context
7
+
8
+ PAN Wizard has grown to 32 user-facing commands under the `/pan:` namespace. The naming was organic — each command was named when it was created, without a systematic framework. This has produced:
9
+
10
+ 1. **Inconsistent patterns:** 22 verb-first (`add-phase`), 8 noun-only (`progress`), 2 adjective-noun (`context-budget`). No single convention dominates.
11
+ 2. **Overly long names:** `list-phase-assumptions` (28 chars with prefix), `complete-milestone` (23 chars), `reapply-patches` (21 chars). Mean invocation: 20.3 characters.
12
+ 3. **Flat help output:** All 32 commands listed alphabetically with no grouping. Users must scan the entire list to find what they need.
13
+ 4. **Implicit grouping not surfaced:** Phase commands (11), milestone commands (5), session commands (4) form natural groups but aren't presented that way.
14
+
15
+ Industry precedent is strong: Docker restructured at ~20 commands (2017), gh CLI launched with noun-verb grouping, kubectl uses verb-resource with help categories. The inflection point where flat naming breaks down is well-documented at 20-25 commands.
16
+
17
+ ## Decision
18
+
19
+ ### 1. Rename 18 of 32 commands for consistency and brevity
20
+
21
+ Key renames:
22
+ - `execute-phase` → `exec-phase` (universally understood abbreviation)
23
+ - `verify-work` → `verify-phase` (consistent with other phase commands)
24
+ - `list-phase-assumptions` → `assumptions` (saves 12 chars; context obvious)
25
+ - `pause-work` → `pause`, `resume-work` → `resume` (unambiguous without suffix)
26
+ - Milestone commands → `milestone-*` prefix (`milestone-new`, `milestone-done`, `milestone-audit`, `milestone-gaps`, `milestone-cleanup`)
27
+ - `add-todo` → `todo-add`, `check-todos` → `todo-check` (consistent pair)
28
+ - `join-discord` → `discord`, `reapply-patches` → `patches` (shorter)
29
+
30
+ ### 2. Keep 14 commands unchanged
31
+
32
+ Commands with clear, short, consistent names: `new-project`, `map-codebase`, `discuss-phase`, `plan-phase`, `research-phase`, `add-phase`, `insert-phase`, `remove-phase`, `progress`, `quick`, `settings`, `help`, `health`, `update`, `debug`.
33
+
34
+ ### 3. Create alias .md files for all renamed commands
35
+
36
+ Each old name gets an alias .md file that loads the new command via `@execution_context`. Old invocations continue to work identically. Aliases marked for removal after 2 minor versions.
37
+
38
+ ### 4. Add `group` frontmatter field to all 32 commands
39
+
40
+ 7 groups: Getting Started, Phase Lifecycle, Phase Management, Session & Progress, Milestone, System, and a fallback "Other" for commands missing the field.
41
+
42
+ ### 5. Redesign help output to show groups
43
+
44
+ `/pan:help` displays commands organized by group with descriptions, not a flat alphabetical list.
45
+
46
+ ## Consequences
47
+
48
+ ### Positive
49
+ - Mean invocation length drops 25% (20.3 → 15.3 chars)
50
+ - Grouped help makes discovery of related commands immediate
51
+ - Milestone lifecycle visible: `milestone-new` → `milestone-audit` → `milestone-gaps` → `milestone-done` → `milestone-cleanup`
52
+ - Predictable patterns help AI agents infer command names
53
+ - Clear framework for naming future commands
54
+
55
+ ### Negative
56
+ - 18 alias files to maintain during deprecation period
57
+ - Users who've memorized old names see deprecation notes (mitigated: old names keep working)
58
+ - `cleanup` → `milestone-cleanup` is longer (but grouped and discoverable)
59
+ - `settings` → unchanged, breaking the milestone-* pattern for project config
60
+
61
+ ### Neutral
62
+ - No core library changes (purely orchestration-layer)
63
+ - No JSON output schema changes
64
+ - No state.md or roadmap.md format changes
65
+ - Installer needs converter updates for Codex/Copilot skill filenames
66
+
67
+ ## Options Considered
68
+
69
+ 1. **Full noun-verb restructuring (Docker-style)** — Rename ALL commands to `noun-verb` pattern (`phase-plan`, `phase-exec`, `project-init`). Rejected because: PAN has 11 phase commands, too many for one noun group; verb-first reads more naturally as imperative in slash commands; would rename 28 of 32 commands for marginal benefit over selective rename.
70
+
71
+ 2. **Selective rename (chosen)** — Rename 18 commands for consistency and brevity, keep 14 that already have good names. Creates aliases for backward compat. Best balance of improvement vs disruption.
72
+
73
+ 3. **No rename, only grouped help** — Add `group` frontmatter and redesign help output without renaming. Rejected because: long names (`list-phase-assumptions`) and inconsistent patterns remain; misses the opportunity to shorten frequent commands.
74
+
75
+ 4. **Dual namespace (Cursor-style)** — Add `@` prefix for context commands alongside `/` for action commands. Rejected because: PAN operates via slash commands only across 5 runtimes; introducing a second prefix adds complexity without clear benefit.
76
+
77
+ ## Links
78
+ - Spec: `docs/specs/command_naming_optimization_featureai.md`
79
+ - Related: All 32 command .md files in `commands/pan/`
80
+ - Precedent: Docker CLI restructuring (2017), gh CLI design
@@ -0,0 +1,101 @@
1
+ # ADR-0006: PAN Focus Commands — Strategic Project Management
2
+
3
+ ## Status
4
+ Accepted (shipped in v1.0.0 — 2026-03-01)
5
+
6
+ ## Context
7
+
8
+ PAN Wizard's shipped workflow operates at the **phase level**: plan a phase, execute a phase, verify a phase. This is effective for sequential development but leaves a gap when developers need to:
9
+
10
+ 1. **Decide what to work on** — No shipped prioritization framework. Users must manually read roadmap.md and guess what's most important.
11
+ 2. **Design features before building** — `/pan:discuss-phase` captures vision but doesn't do competitive research, produce ADRs, or create implementation task lists.
12
+ 3. **Budget work sessions** — No capacity system. Users either over-commit (start too much) or under-commit (miss easy wins).
13
+ 4. **Sync documentation** — After changes, docs drift. No automated detection of stale references.
14
+ 5. **Execute mixed-size work efficiently** — All work goes through full plan.md → exec-phase pipeline, even for XS fixes.
15
+
16
+ These capabilities exist as custom `.claude/commands/` skills (superplan, execplan, featureAI, session-start/end, sync) developed during PAN Wizard's own build, but they don't ship to users. Meanwhile, competitors are filling this space:
17
+
18
+ - **Claude Code plan mode** (2026) saves plan files to projects with DAG task dependencies
19
+ - **Cline** separates plan/act modes with different model configs per mode
20
+
21
+ PAN's architecture already has the building blocks: `classifyPlanTier()`, `effortToPoints()`, `readErrorPatterns()`, `appendSessionSummary()`, `shouldSkipTests()`, `cmdRollbackSnapshot()`. The custom skills proved these concepts work across 16 sessions and 800+ tests. What's needed is integration into the shipped product.
22
+
23
+ ## Decision
24
+
25
+ Ship 5 new commands under a "Focus" group that bring the COMPLETE proven custom skill pipelines into PAN as first-class shipped commands — no shortcuts, no streamlining:
26
+
27
+ | Command | Purpose | Derived From |
28
+ |---------|---------|-------------|
29
+ | `/pan:focus-scan` | Full 7-phase strategic work scan with P0-P6 prioritization, Reality Score formula, and validation | SuperPlan — ALL 7 phases (0-6) complete |
30
+ | `/pan:focus-design` | Strategic feature investigation with 4 modes: `--full` (all 10 phases), `--internal` (skip competitive research), `--outward` (strategy focus, skip hardening), `--spike` (fast 4-phase proof-of-concept) | FeatureAI — ALL 10 phases available, mode controls which run. Modifiers: `--gate`, `--audit`, `--mvp` |
31
+ | `/pan:focus-plan` | Create capacity-budgeted work batch with 4 execution modes | ExecPlan stage 2 — complete capacity budget system with all 4 modes (bugfix/balanced/features/full) |
32
+ | `/pan:focus-exec` | Full 6-stage execution pipeline with 9 mandatory behavioral rules and 3 execution tiers | ExecPlan — ALL 6 stages (1-6) complete, ALL 9 rules, ALL 3 tiers (MICRO/STANDARD/FULL) |
33
+ | `/pan:focus-sync` | Synchronize documentation after changes | Sync custom skill — complete |
34
+ | `/pan:focus-drift-walking` | Walk directories, detect doc-code drift, score severity, create/repair docs | Drift killer — 8-phase directory-walking pipeline with severity scoring |
35
+ | `/pan:focus-doc-audit` | Multi-dimensional document audit with 8-dimension scoring and auto-fix | Doc audit — claim extraction, fact verification, cross-consistency, structural linting |
36
+
37
+ **Implementation approach:**
38
+ - New `focus.cjs` core module (follows existing module pattern)
39
+ - Integrates with existing modules (phase.cjs, init.cjs, frontmatter.cjs, commands.cjs)
40
+ - Optional `priority:` (P0-P6) and `effort:` (XS-XL) fields in plan.md frontmatter
41
+ - Batch/scan files stored in `.planning/focus/`
42
+ - Two-phase delivery: v0 (scan+plan+sync), v1 (exec+design)
43
+ - Reality Score formula (RS = (UV + TC + RR) / JS) shipped in focus-scan
44
+ - All 4 execution modes (bugfix/balanced/features/full) shipped in focus-plan and focus-exec
45
+
46
+ **What we explicitly chose NOT to build:**
47
+ - Separate task/superplan file format (integrate into existing plan.md)
48
+ - PanMonty status tracker (redundant with state.md)
49
+ - Separate memory bank files (keep as dev-only)
50
+ - PAN-Wizard-specific references (generalize for any project)
51
+
52
+ ## Consequences
53
+
54
+ ### Positive
55
+ - Users get strategic project management without custom skill setup
56
+ - Proven capabilities (16 sessions, 800+ tests) ship as real product
57
+ - Focus commands compose with existing phase commands (not a parallel system)
58
+ - Cross-platform (all 5 runtimes) from day one
59
+ - Zero migration cost (all fields optional, all directories additive)
60
+
61
+ ### Negative
62
+ - 5 more commands to learn (+15% command count, 32 → 37)
63
+ - New .planning/focus/ directory adds to project structure
64
+ - focus.cjs is a new module to maintain
65
+ - Codebase TODO scanning adds ~200ms to scan time
66
+
67
+ ### Neutral
68
+ - Priority/effort fields in plan.md frontmatter are optional — existing projects work unchanged
69
+ - Focus commands can be completely ignored — the phase workflow remains the default path
70
+ - The custom skills (.claude/commands/superplan.md, etc.) continue to work for PAN Wizard's own development
71
+
72
+ ## Options Considered
73
+
74
+ ### 1. Do nothing — keep custom skills internal
75
+ **Pro:** Zero work, no added complexity.
76
+ **Con:** PAN's most powerful capabilities remain invisible to users. Competitors fill the gap.
77
+
78
+ ### 2. Ship custom skills as-is (copy .md files to commands/pan/)
79
+ **Pro:** Quick — just copy files.
80
+ **Con:** Custom skills are PAN-Wizard-specific (reference test counts, module names). They're orchestration scripts, not integrated commands. No core module, no JSON output, no tests.
81
+
82
+ ### 3. Extend existing commands (add --scan to progress, --budget to exec-phase)
83
+ **Pro:** No new commands to learn.
84
+ **Con:** Overloads existing commands with unrelated functionality. progress becomes a 200-line workflow. exec-phase becomes even more complex.
85
+
86
+ ### 4. Ship 5 Focus commands (chosen)
87
+ **Pro:** Clean separation. Integrated with core. Testable. Cross-platform. Composable pipeline.
88
+ **Con:** 5 new commands. New module. But grouped under single "Focus" name.
89
+
90
+ ### 5. Ship as a separate `pan-focus` tool
91
+ **Pro:** No impact on PAN's command count.
92
+ **Con:** Separate installation. Separate update cycle. Can't share modules. Users must learn two tools.
93
+
94
+ **Option 4 chosen** because it balances integration quality with minimal disruption. The Focus group name provides cognitive bundling (Miller's Law: one chunk, not five).
95
+
96
+ ## Links
97
+ - Spec: `docs/specs/pan_focus_commands_featureai.md`
98
+ - Prior analysis: `docs/specs/custom-skills-assessment.md`
99
+ - Related ADRs: ADR-0003 (smart execution), ADR-0005 (command naming)
100
+ - Custom skills: `.claude/commands/superplan.md`, `execplan.md`, `featureAI.md`
101
+ - Competitor: [Taskmaster AI](https://github.com/eyaltoledano/claude-task-master)
@@ -0,0 +1,73 @@
1
+ # ADR-0007: Ship v1.0.0 to npm
2
+
3
+ ## Status
4
+ Accepted (shipped in v1.0.0 — 2026-03-01)
5
+
6
+ ## Context
7
+ PAN Wizard has been in active development through 29 sessions, reaching 1483 tests,
8
+ 15 core modules, 42 commands, 11 agents, and 5 runtime targets. The codebase has
9
+ zero TODO/FIXME markers, zero TOCTOU races, 200+ try-catch blocks for error handling,
10
+ and passes CI across 3 OS x 4 Node versions (12 configurations).
11
+
12
+ Despite this maturity, the package has never been published to npm. The README
13
+ prominently features `npx pan-wizard@latest` as the install method, but this
14
+ command currently returns a 404 error. The `pan-wizard` name is available on npm.
15
+
16
+ Quality audit findings:
17
+ - 1483 tests, 0 failures, 0 skipped
18
+ - Zero TODO/FIXME/HACK markers in production code
19
+ - Zero console.log leaks in library code
20
+ - Zero .only()/.skip() in tests
21
+ - Zero hardcoded paths
22
+ - Zero runtime dependencies
23
+ - All file I/O wrapped in try-catch (200+ blocks)
24
+ - All TOCTOU races eliminated
25
+ - Cross-platform CI: Ubuntu + Windows + macOS x Node 16/18/20/22
26
+
27
+ Competitive analysis shows all comparable tools ship via standard package managers:
28
+ Aider (pip), Continue.dev (npm), GitHub Copilot CLI (npm). PAN Wizard's 422KB
29
+ packed size and zero runtime deps match the gold standard set by @github/copilot.
30
+
31
+ ## Decision
32
+ Bump version from 0.3.0 to 1.0.0 and publish to npm.
33
+
34
+ 1.0.0 was chosen over 0.4.0 because:
35
+ - The codebase is production-ready by every measurable metric
36
+ - 0.x signals instability; PAN Wizard is demonstrably stable
37
+ - Users need a clear signal that this is safe to adopt
38
+ - Semantic versioning says 1.0.0 = "public API is stable"
39
+ - The command naming restructure (Session 16) is a natural breaking-change boundary
40
+
41
+ ## Consequences
42
+
43
+ ### Positive
44
+ - Users can install via the documented `npx pan-wizard@latest` method
45
+ - npm download metrics provide adoption signal
46
+ - npm search discoverability for 13 keywords
47
+ - README badges (version, downloads) activate
48
+ - Community growth becomes possible
49
+ - Competitive positioning: lightest-weight AI workflow tool on npm (422KB, 0 deps, 5 runtimes)
50
+
51
+ ### Negative
52
+ - 1.0.0 commits to backward compatibility for command names and JSON output schemas
53
+ - Must follow semver strictly for any future breaking changes (major version bump)
54
+ - Bug reports from real users will begin (support burden)
55
+ - npm account security becomes critical (2FA required)
56
+
57
+ ### Neutral
58
+ - Existing local installs are unaffected
59
+ - `/pan:update` command already handles pulling latest from npm
60
+ - No new code required — this is purely operational
61
+
62
+ ## Options Considered
63
+ 1. **Publish as 0.4.0** — rejected: sends wrong stability signal for a production-ready tool
64
+ 2. **Publish as 1.0.0** — chosen: clear, honest stability declaration
65
+ 3. **Wait for automated release pipeline** — rejected: blocks shipping for no immediate user benefit; automated releases are v1.1.0 scope
66
+ 4. **Use scoped name (@oharms/pan-wizard)** — rejected: `pan-wizard` is available and simpler
67
+
68
+ ## Links
69
+ - Spec: docs/specs/production_readiness_ship_v1_featureai.md
70
+ - package.json: complete metadata, bin entry, files whitelist
71
+ - CI: .github/workflows/ci.yml (3 OS x 4 Node)
72
+ - npm name availability: confirmed (404 = available)
73
+ - Related: ADR-0005 (command naming — breaking change captured in 1.0.0)