pan-wizard 3.35.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 (339) hide show
  1. package/CHANGELOG.md +3645 -0
  2. package/README.md +46 -52
  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 +2 -3
  8. package/agents/pan-document_code.md +1 -2
  9. package/agents/pan-executor.md +25 -0
  10. package/agents/pan-hardener.md +4 -3
  11. package/agents/pan-integration-checker.md +1 -2
  12. package/agents/pan-knowledge.md +1 -2
  13. package/agents/pan-meta-reviewer.md +3 -3
  14. package/agents/pan-optimizer.md +4 -4
  15. package/agents/pan-phase-researcher.md +80 -475
  16. package/agents/pan-plan-checker.md +40 -3
  17. package/agents/pan-planner.md +21 -7
  18. package/agents/pan-previewer.md +3 -2
  19. package/agents/pan-project-researcher.md +72 -493
  20. package/agents/pan-release.md +1 -1
  21. package/agents/pan-reviewer.md +14 -3
  22. package/agents/pan-roadmapper.md +12 -7
  23. package/agents/pan-verifier.md +9 -4
  24. package/bin/install-lib.cjs +134 -14
  25. package/bin/install.js +59 -12
  26. package/commands/pan/army.md +1 -1
  27. package/commands/pan/autodev.md +76 -0
  28. package/commands/pan/cost.md +21 -1
  29. package/commands/pan/exec-phase.md +3 -4
  30. package/commands/pan/focus-auto.md +14 -7
  31. package/commands/pan/focus-design.md +4 -5
  32. package/commands/pan/focus-docs.md +24 -0
  33. package/commands/pan/learn.md +13 -6
  34. package/commands/pan/milestone-audit.md +8 -1
  35. package/commands/pan/milestone-done.md +10 -5
  36. package/commands/pan/milestone-new.md +2 -2
  37. package/commands/pan/new-project.md +15 -12
  38. package/commands/pan/plan-phase.md +15 -9
  39. package/commands/pan/preview.md +1 -1
  40. package/commands/pan/quick.md +1 -1
  41. package/commands/pan/review-deep.md +11 -5
  42. package/commands/pan/settings.md +6 -0
  43. package/commands/pan/verify-phase.md +6 -2
  44. package/docs/AGENTS.md +917 -0
  45. package/docs/ARCHITECTURE.md +1054 -0
  46. package/docs/CLI-REFERENCE.md +4582 -0
  47. package/docs/COMPARISON.md +116 -0
  48. package/docs/DEVELOPMENT.md +490 -0
  49. package/docs/ECOSYSTEM-REVIEW-2026-06.md +107 -0
  50. package/docs/ECOSYSTEM-REVIEW-2026-08.md +349 -0
  51. package/docs/EXAMPLES.md +584 -0
  52. package/docs/FAQ.md +254 -0
  53. package/docs/FIELD-HARVEST-2026-07.md +88 -0
  54. package/docs/FIELD-REPORT-army-2026-06.md +121 -0
  55. package/docs/HOOKS.md +638 -0
  56. package/docs/IMPROVEMENT-TODO.md +246 -0
  57. package/docs/INTERNALS.md +485 -0
  58. package/docs/MIGRATION-v2-to-v3.md +258 -0
  59. package/docs/SECURITY-HARDENING.md +230 -0
  60. package/docs/SKILLS-ENHANCEMENT-PLAN-V2.md +122 -0
  61. package/docs/SKILLS-FULL-TEXT.md +9685 -0
  62. package/docs/SKILLS-REFERENCE.md +1037 -0
  63. package/docs/TROUBLESHOOTING.md +1084 -0
  64. package/docs/USER-GUIDE.md +1437 -0
  65. package/docs/archive/SKILLS-ENHANCEMENT-PLAN.md +230 -0
  66. package/docs/audits/AUDIT-2026-08-e2e-ROADMAP.md +117 -0
  67. package/docs/audits/AUDIT-2026-08-e2e-VERIFICATION.md +693 -0
  68. package/docs/audits/AUDIT-2026-08-e2e.md +1546 -0
  69. package/docs/audits/OUTSTANDING-2026-08.md +275 -0
  70. package/docs/audits/STABILITY-TEST-2026-08.md +640 -0
  71. package/docs/branding/README-brand-draft.md +119 -0
  72. package/docs/branding/handoff/IMPLEMENTATION.md +205 -0
  73. package/docs/branding/handoff/README-brand-draft.md +119 -0
  74. package/docs/branding/handoff/image-prompts.md +46 -0
  75. package/docs/branding/image-prompts.md +46 -0
  76. package/docs/branding/nano-banana-prompts.txt +60 -0
  77. package/docs/context-monitor.md +13 -0
  78. package/docs/decisions/ADR-0001-strategic-feature-prioritization.md +83 -0
  79. package/docs/decisions/ADR-0002-copilot-cli-runtime.md +71 -0
  80. package/docs/decisions/ADR-0003-smart-execution.md +84 -0
  81. package/docs/decisions/ADR-0004-copilot-cli-interaction.md +89 -0
  82. package/docs/decisions/ADR-0005-command-naming.md +80 -0
  83. package/docs/decisions/ADR-0006-focus-commands.md +101 -0
  84. package/docs/decisions/ADR-0007-ship-v1.md +73 -0
  85. package/docs/decisions/ADR-0008-map-codebase-mermaid-togaf.md +80 -0
  86. package/docs/decisions/ADR-0009-production-deployment-checklist.md +68 -0
  87. package/docs/decisions/ADR-0010-standards-integration.md +79 -0
  88. package/docs/decisions/ADR-0011-help-commands-rewrite.md +64 -0
  89. package/docs/decisions/ADR-0012-contributors-attribution-index.md +42 -0
  90. package/docs/decisions/ADR-0013-strategic-feature-additions.md +53 -0
  91. package/docs/decisions/ADR-0014-internal-cleanup-code-quality.md +53 -0
  92. package/docs/decisions/ADR-0015-focus-auto-runner.md +296 -0
  93. package/docs/decisions/ADR-0016-enhanced-doc-sync.md +54 -0
  94. package/docs/decisions/ADR-0017-enhanced-focus-design.md +69 -0
  95. package/docs/decisions/ADR-0018-user-reality-testing.md +84 -0
  96. package/docs/decisions/ADR-0019-end-to-end-user-acceptance-testing.md +113 -0
  97. package/docs/decisions/ADR-0020-ai-drift-prevention.md +55 -0
  98. package/docs/decisions/ADR-0021-codebase-mapper-v2.md +76 -0
  99. package/docs/decisions/ADR-0022-lifecycle-completeness.md +63 -0
  100. package/docs/decisions/ADR-0023-opus-4-7-adoption.md +89 -0
  101. package/docs/decisions/ADR-0024-spec-b-v2-completion.md +137 -0
  102. package/docs/decisions/ADR-0025-behavioral-guardrails-layer.md +129 -0
  103. package/docs/decisions/ADR-0026-self-improvement-loop.md +171 -0
  104. package/docs/decisions/ADR-0027-doc-code-link-graph.md +164 -0
  105. package/docs/decisions/ADR-0028-unified-agents-skills-target.md +46 -0
  106. package/docs/decisions/ADR-0029-experiment-evaluator.md +76 -0
  107. package/docs/decisions/ADR-0030-planning-concurrency.md +37 -0
  108. package/docs/decisions/ADR-0031-focus-auto-backlog-source.md +47 -0
  109. package/docs/decisions/ADR-0032-squad-model.md +64 -0
  110. package/docs/decisions/ADR-0033-army-campaign.md +40 -0
  111. package/docs/decisions/ADR-0034-scheduled-campaigns.md +57 -0
  112. package/docs/decisions/ADR-0035-army-hud-dashboard.md +40 -0
  113. package/docs/decisions/ADR-0036-agentic-memory-architecture.md +106 -0
  114. package/docs/decisions/ADR-0037-pin-security-agents-to-opus.md +51 -0
  115. package/docs/decisions/ADR-0038-skill-aligned-decomposition.md +41 -0
  116. package/docs/decisions/ADR-0039-worktree-as-project-variant.md +37 -0
  117. package/docs/decisions/ADR-0040-memory-injection-defense.md +55 -0
  118. package/docs/decisions/ADR-0041-mcp-dual-era-bridge.md +47 -0
  119. package/docs/decisions/ADR-0042-design-parity-both-flows.md +45 -0
  120. package/docs/decisions/ADR-0043-addressable-planning-roots.md +56 -0
  121. package/docs/decisions/ADR-0044-bound-the-cached-context.md +104 -0
  122. package/docs/decisions/ADR-0045-agent-plugins-bundle.md +76 -0
  123. package/docs/decisions/ADR-0046-subagent-frontmatter-decisions.md +39 -0
  124. package/docs/decisions/ADR-0047-pan-harness.md +76 -0
  125. package/docs/decisions/ADR-0048-one-core-per-project.md +43 -0
  126. package/docs/decisions/ADR-0049-machine-verdicts-and-findings-ledger.md +116 -0
  127. package/docs/specs/ai_drift_prevention_featureai.md +286 -0
  128. package/docs/specs/codebase_mapper_v2_featureai.md +930 -0
  129. package/docs/specs/command_naming_optimization_featureai.md +930 -0
  130. package/docs/specs/comp_analysis_markdown_v1.md +149 -0
  131. package/docs/specs/continuous_autonomous_execution_featureai.md +304 -0
  132. package/docs/specs/contributors_attribution_index_featureai.md +476 -0
  133. package/docs/specs/copilot_cli_interaction_featureai.md +868 -0
  134. package/docs/specs/copilot_cli_runtime_featureai.md +647 -0
  135. package/docs/specs/custom-skills-assessment.md +461 -0
  136. package/docs/specs/deployment_audit_findings_featureai.md +243 -0
  137. package/docs/specs/doc_code_link_graph_featureai.md +253 -0
  138. package/docs/specs/documentation_alignment_cleanup_featureai.md +69 -0
  139. package/docs/specs/e2e_visual_testing_featureai.md +615 -0
  140. package/docs/specs/end_to_end_user_acceptance_testing_featureai.md +810 -0
  141. package/docs/specs/evidence-loop-plan.md +76 -0
  142. package/docs/specs/evidence_loop_featureai.md +497 -0
  143. package/docs/specs/focus-auto-optimize-category.md +449 -0
  144. package/docs/specs/focus-auto-optimize-superplan.md +188 -0
  145. package/docs/specs/focus_auto_runner_featureai.md +1102 -0
  146. package/docs/specs/focus_design_v2_featureai.md +197 -0
  147. package/docs/specs/focus_sync_v2_featureai.md +202 -0
  148. package/docs/specs/git_integration_overhaul_featureai.md +326 -0
  149. package/docs/specs/glm_zai_provider_featureai.md +200 -0
  150. package/docs/specs/googlecli_adoption_featureai.md +661 -0
  151. package/docs/specs/help_commands_rewrite_featureai.md +860 -0
  152. package/docs/specs/industry_analysis_strategic_additions_featureai.md +231 -0
  153. package/docs/specs/industry_comparison_and_feature_gaps_featureai.md +674 -0
  154. package/docs/specs/internal_cleanup_code_quality_featureai.md +486 -0
  155. package/docs/specs/investigations/README.md +31 -0
  156. package/docs/specs/investigations/digests/2026-09-28.md +47 -0
  157. package/docs/specs/investigations/digests/2026-10-08.md +62 -0
  158. package/docs/specs/investigations/digests/2026-10-10.md +61 -0
  159. package/docs/specs/investigations/features/debugger-red-loop-first.md +55 -0
  160. package/docs/specs/investigations/features/harness-cross-host-behaviour.md +93 -0
  161. package/docs/specs/investigations/features/optimize-apply-regression-gate.md +66 -0
  162. package/docs/specs/investigations/features/reviewer-smell-baseline.md +57 -0
  163. package/docs/specs/investigations/features/trace-failure-capture.md +69 -0
  164. package/docs/specs/lifecycle_completeness_featureai.md +754 -0
  165. package/docs/specs/local-first-ci.md +42 -0
  166. package/docs/specs/map_codebase_mermaid_togaf_featureai.md +805 -0
  167. package/docs/specs/market-delta-2026-09-superplan.md +310 -0
  168. package/docs/specs/market-ideas-2026-09.md +131 -0
  169. package/docs/specs/market-ideas-2026-10.md +428 -0
  170. package/docs/specs/market-ideas-ledger.md +177 -0
  171. package/docs/specs/memory-optimization-2026-10.md +285 -0
  172. package/docs/specs/multi-track-planning-roots.md +143 -0
  173. package/docs/specs/multi_model_routing_featureai.md +687 -0
  174. package/docs/specs/multi_model_routing_superplan.md +197 -0
  175. package/docs/specs/opus_47_existing_enhancements_featureai.md +247 -0
  176. package/docs/specs/opus_47_extended_features_featureai.md +363 -0
  177. package/docs/specs/opus_47_extended_features_v2_featureai.md +397 -0
  178. package/docs/specs/pan_focus_commands_featureai.md +2336 -0
  179. package/docs/specs/pan_zcode_mcp_bridge_featureai.md +120 -0
  180. package/docs/specs/product-excellence-superplan.md +315 -0
  181. package/docs/specs/product_excellence_program_2026_q4_featureai.md +365 -0
  182. package/docs/specs/production_deployment_readiness_featureai.md +433 -0
  183. package/docs/specs/production_readiness_ship_v1_featureai.md +698 -0
  184. package/docs/specs/real_test_enforcement_featureai.md +213 -0
  185. package/docs/specs/reality-check-2026-09-superplan.md +362 -0
  186. package/docs/specs/right-sized-ceremony.md +74 -0
  187. package/docs/specs/roadmap_and_competition_2026_q4_featureai.md +390 -0
  188. package/docs/specs/self_improvement_loop_featureai.md +875 -0
  189. package/docs/specs/skill-aligned-decomposition.md +155 -0
  190. package/docs/specs/standards_integration_featureai.md +833 -0
  191. package/docs/specs/testing-system-redesign-2026-09.md +267 -0
  192. package/docs/specs/user_reality_testing_system_featureai.md +788 -0
  193. package/docs/specs/watch-triggers.json +22 -0
  194. package/docs/specs/workflow-integration-redesign.md +742 -0
  195. package/docs/specs/workflow_state_consistency_featureai.md +183 -0
  196. package/hooks/dist/pan-context-monitor.js +9 -2
  197. package/hooks/dist/pan-cost-logger.js +5 -0
  198. package/hooks/dist/pan-guard.js +28 -5
  199. package/hooks/dist/pan-stop-guard.js +9 -9
  200. package/hooks/dist/pan-trace-logger.js +5 -0
  201. package/package.json +10 -2
  202. package/pan-wizard-core/bin/lib/agents-md.cjs +57 -8
  203. package/pan-wizard-core/bin/lib/autodev-report.cjs +180 -0
  204. package/pan-wizard-core/bin/lib/autodev.cjs +642 -0
  205. package/pan-wizard-core/bin/lib/ci.cjs +143 -0
  206. package/pan-wizard-core/bin/lib/commands.cjs +1 -1
  207. package/pan-wizard-core/bin/lib/config.cjs +41 -5
  208. package/pan-wizard-core/bin/lib/constants.cjs +27 -1
  209. package/pan-wizard-core/bin/lib/core.cjs +31 -14
  210. package/pan-wizard-core/bin/lib/cost.cjs +160 -4
  211. package/pan-wizard-core/bin/lib/cross-family.cjs +164 -0
  212. package/pan-wizard-core/bin/lib/debug-cases.cjs +104 -0
  213. package/pan-wizard-core/bin/lib/doc-lint.cjs +5 -3
  214. package/pan-wizard-core/bin/lib/failure-class.cjs +81 -0
  215. package/pan-wizard-core/bin/lib/findings.cjs +148 -9
  216. package/pan-wizard-core/bin/lib/focus.cjs +1 -1
  217. package/pan-wizard-core/bin/lib/git.cjs +1 -1
  218. package/pan-wizard-core/bin/lib/hosts.cjs +88 -0
  219. package/pan-wizard-core/bin/lib/init.cjs +7 -2
  220. package/pan-wizard-core/bin/lib/knowledge.cjs +2 -0
  221. package/pan-wizard-core/bin/lib/merge.cjs +50 -0
  222. package/pan-wizard-core/bin/lib/mutate.cjs +268 -0
  223. package/pan-wizard-core/bin/lib/next-action.cjs +112 -0
  224. package/pan-wizard-core/bin/lib/optimize.cjs +2 -2
  225. package/pan-wizard-core/bin/lib/phase-gate.cjs +15 -9
  226. package/pan-wizard-core/bin/lib/phase-remove.cjs +91 -11
  227. package/pan-wizard-core/bin/lib/phase.cjs +85 -13
  228. package/pan-wizard-core/bin/lib/plan-lint.cjs +310 -0
  229. package/pan-wizard-core/bin/lib/preview.cjs +26 -4
  230. package/pan-wizard-core/bin/lib/requirements-lint.cjs +130 -0
  231. package/pan-wizard-core/bin/lib/research-lint.cjs +268 -0
  232. package/pan-wizard-core/bin/lib/review-deep.cjs +14 -22
  233. package/pan-wizard-core/bin/lib/review-vote.cjs +105 -0
  234. package/pan-wizard-core/bin/lib/roadmap.cjs +1 -0
  235. package/pan-wizard-core/bin/lib/runner.cjs +2 -16
  236. package/pan-wizard-core/bin/lib/sizing.cjs +356 -0
  237. package/pan-wizard-core/bin/lib/squads.cjs +1 -1
  238. package/pan-wizard-core/bin/lib/state-write.cjs +247 -0
  239. package/pan-wizard-core/bin/lib/test-gate.cjs +433 -0
  240. package/pan-wizard-core/bin/lib/uat.cjs +149 -0
  241. package/pan-wizard-core/bin/lib/usage.cjs +104 -0
  242. package/pan-wizard-core/bin/lib/verdict.cjs +26 -3
  243. package/pan-wizard-core/bin/lib/verify-plan-set.cjs +30 -1
  244. package/pan-wizard-core/bin/lib/verify-preflight.cjs +2 -2
  245. package/pan-wizard-core/bin/lib/verify-red.cjs +174 -0
  246. package/pan-wizard-core/bin/lib/verify-retro.cjs +3 -2
  247. package/pan-wizard-core/bin/lib/verify-scope.cjs +143 -2
  248. package/pan-wizard-core/bin/lib/verify.cjs +86 -31
  249. package/pan-wizard-core/bin/lib/worktree.cjs +70 -0
  250. package/pan-wizard-core/bin/pan-tools.cjs +257 -28
  251. package/pan-wizard-core/learnings/universal/autonomous-loop.md +2 -2
  252. package/pan-wizard-core/mcp/orchestrator.cjs +4 -1
  253. package/pan-wizard-core/references/continuation-format.md +3 -3
  254. package/pan-wizard-core/references/design-methodology.md +1 -1
  255. package/pan-wizard-core/references/guardrails.md +1 -1
  256. package/pan-wizard-core/references/handoff-decisions.md +1 -1
  257. package/pan-wizard-core/references/model-profiles.md +2 -3
  258. package/pan-wizard-core/references/questioning.md +24 -0
  259. package/pan-wizard-core/references/ui-brand.md +4 -6
  260. package/pan-wizard-core/references/verdict-contract.md +2 -1
  261. package/pan-wizard-core/templates/config.json +10 -2
  262. package/pan-wizard-core/templates/debug.md +1 -0
  263. package/pan-wizard-core/templates/design.md +5 -4
  264. package/pan-wizard-core/templates/discovery.md +2 -2
  265. package/pan-wizard-core/templates/phase-prompt.md +7 -0
  266. package/pan-wizard-core/templates/requirements.md +9 -0
  267. package/pan-wizard-core/templates/research.md +10 -0
  268. package/pan-wizard-core/templates/summary-complex.md +5 -1
  269. package/pan-wizard-core/templates/summary-minimal.md +4 -0
  270. package/pan-wizard-core/templates/summary-standard.md +5 -1
  271. package/pan-wizard-core/templates/summary.md +8 -1
  272. package/pan-wizard-core/workflows/add-phase.md +4 -6
  273. package/pan-wizard-core/workflows/assumptions.md +19 -1
  274. package/pan-wizard-core/workflows/diagnose-issues.md +2 -0
  275. package/pan-wizard-core/workflows/discuss-phase.md +4 -2
  276. package/pan-wizard-core/workflows/exec-lean.md +69 -0
  277. package/pan-wizard-core/workflows/exec-phase.md +79 -15
  278. package/pan-wizard-core/workflows/execute-plan.md +3 -1
  279. package/{commands/pan → pan-wizard-core/workflows}/focus-doc-audit.md +13 -29
  280. package/{commands/pan → pan-wizard-core/workflows}/focus-drift-walking.md +3 -18
  281. package/{commands/pan → pan-wizard-core/workflows}/focus-exec.md +8 -23
  282. package/{commands/pan → pan-wizard-core/workflows}/focus-plan.md +6 -20
  283. package/{commands/pan → pan-wizard-core/workflows}/focus-scan.md +3 -16
  284. package/{commands/pan → pan-wizard-core/workflows}/focus-sync.md +7 -21
  285. package/pan-wizard-core/workflows/health.md +6 -0
  286. package/pan-wizard-core/workflows/help.md +114 -77
  287. package/pan-wizard-core/workflows/insert-phase.md +4 -6
  288. package/pan-wizard-core/workflows/learn.md +3 -3
  289. package/pan-wizard-core/workflows/milestone-audit.md +2 -2
  290. package/pan-wizard-core/workflows/milestone-new.md +38 -95
  291. package/pan-wizard-core/workflows/new-project.md +96 -258
  292. package/pan-wizard-core/workflows/optimize.md +107 -5
  293. package/pan-wizard-core/workflows/phase-tests.md +10 -0
  294. package/pan-wizard-core/workflows/plan-phase.md +106 -45
  295. package/pan-wizard-core/workflows/profile.md +50 -0
  296. package/pan-wizard-core/workflows/progress.md +10 -0
  297. package/pan-wizard-core/workflows/quick.md +34 -43
  298. package/pan-wizard-core/workflows/remove-phase.md +11 -1
  299. package/pan-wizard-core/workflows/research-phase.md +118 -40
  300. package/pan-wizard-core/workflows/resume-project.md +18 -2
  301. package/pan-wizard-core/workflows/settings.md +33 -19
  302. package/pan-wizard-core/workflows/todo-check.md +6 -2
  303. package/pan-wizard-core/workflows/transition.md +22 -4
  304. package/pan-wizard-core/workflows/uat-walkthrough.md +90 -0
  305. package/pan-wizard-core/workflows/update.md +1 -1
  306. package/pan-wizard-core/workflows/verify-phase.md +39 -46
  307. package/scripts/build-agent-plugin.js +35 -15
  308. package/scripts/build-help.cjs +106 -0
  309. package/scripts/build-plugin.js +10 -1
  310. package/scripts/deprecate-old-versions.js +70 -3
  311. package/scripts/generate-skills-docs.py +1 -1
  312. package/scripts/git-hooks/pre-push +27 -0
  313. package/scripts/install-git-hooks.js +7 -5
  314. package/scripts/install-pre-push.cjs +38 -0
  315. package/scripts/land.cjs +151 -0
  316. package/scripts/local-ci.cjs +501 -0
  317. package/scripts/local-schedule.cjs +277 -0
  318. package/scripts/mutation-probe.cjs +7 -80
  319. package/scripts/prompt-lint.cjs +32 -0
  320. package/scripts/prompt-rules.cjs +156 -0
  321. package/scripts/run-tests.cjs +7 -1
  322. package/scripts/test-quality-lint.cjs +3 -3
  323. package/scripts/test-surface.cjs +175 -6
  324. package/agents/pan-research-synthesizer.md +0 -246
  325. package/commands/pan/audit-deployment.md +0 -386
  326. package/commands/pan/dashboard.md +0 -22
  327. package/commands/pan/discord.md +0 -19
  328. package/commands/pan/mcp-bridge.md +0 -143
  329. package/commands/pan/milestone-cleanup.md +0 -19
  330. package/commands/pan/milestone-gaps.md +0 -35
  331. package/commands/pan/optimize.md +0 -115
  332. package/commands/pan/profile.md +0 -76
  333. package/commands/pan/research-phase.md +0 -189
  334. package/pan-wizard-core/bin/lib/bridge.cjs +0 -269
  335. package/pan-wizard-core/templates/research-project/architecture.md +0 -204
  336. package/pan-wizard-core/templates/research-project/features.md +0 -147
  337. package/pan-wizard-core/templates/research-project/pitfalls.md +0 -200
  338. package/pan-wizard-core/templates/research-project/stack.md +0 -120
  339. package/pan-wizard-core/templates/research-project/summary.md +0 -170
@@ -0,0 +1,476 @@
1
+ # Feature Spec: Contributors List & Attribution Index
2
+
3
+ > Mode: `--internal` (Phases 2, 2.5 skipped — no competitive analysis needed for attribution docs)
4
+
5
+ ---
6
+
7
+ ## Phase 0: Problem Framing & Demand Validation
8
+
9
+ ### 0.1 Problem Statement
10
+
11
+ PAN Wizard has no CONTRIBUTORS.md, no AUTHORS file, no attribution index, and no record of where design ideas originated. The project credits "PAN Wizard Contributors" in LICENSE and package.json but never names anyone. Eleven ADRs, eleven specs, and the entire focus-design pipeline reference methodologies (Blue Ocean, Wardley, STRIDE, TOGAF) and competing tools (Aider, Cursor, Cline, Windsurf, Continue.dev, Copilot Workspace) without a centralized index of influences. This matters NOW because: (a) the project is public on npm and GitHub, (b) proper attribution is an open-source norm, (c) tracing design lineage prevents reinventing wheels and helps future contributors understand WHY decisions were made.
12
+
13
+ Cost of NOT doing this: contributors go unrecognized, methodology provenance becomes tribal knowledge locked in git history, and new contributors can't see who or what shaped the project.
14
+
15
+ ### 0.2 Demand Evidence
16
+
17
+ | Evidence Type | Source | Finding |
18
+ |--------------|--------|---------|
19
+ | Personal pain (user-stated) | This conversation | User explicitly asked to "update the contributors list" and "create a proper index of where things came from" |
20
+ | Open-source norm | npm, GitHub community | Standard practice for any OSS project with multiple contributors/AI co-authors |
21
+
22
+ ### 0.3 Scope Definition
23
+
24
+ | In Scope | Out of Scope (and why) |
25
+ |----------|------------------------|
26
+ | Create CONTRIBUTORS.md with all human + AI + bot contributors | Automating contributor detection via CI (future enhancement) |
27
+ | Create ATTRIBUTION.md indexing all methodology/tool/standard influences | Legal audit of license compatibility (not a code feature) |
28
+ | Update package.json with contributors array | Changing LICENSE copyright holder (already correct) |
29
+ | Cross-reference ADRs and specs to their inspiration sources | Rewriting ADRs to add citations retroactively |
30
+
31
+ ### 0.4 Success Criteria
32
+
33
+ ```
34
+ SC-1: CONTRIBUTORS.md lists every git author, co-author, and bot contributor with roles
35
+ SC-2: ATTRIBUTION.md indexes every methodology, standard, and tool that influenced design decisions
36
+ SC-3: ATTRIBUTION.md cross-references each influence to the specific ADR/spec/file where it's used
37
+ SC-4: package.json contains a contributors array with all human contributors
38
+ SC-5: No existing file modified in a breaking way
39
+ ```
40
+
41
+ ### 0.5 User Stories
42
+
43
+ ```
44
+ As a new contributor, I want to see who built this project and what inspired it,
45
+ so that I understand the project's lineage, instead of digging through 32 git commits.
46
+
47
+ As a project maintainer, I want a single attribution index,
48
+ so that I can verify all design influences are properly credited, instead of searching across 11 ADRs and 11 specs.
49
+
50
+ As an open-source user evaluating PAN Wizard, I want to see transparent attribution,
51
+ so that I can trust the project follows community norms, instead of wondering about provenance.
52
+ ```
53
+
54
+ ### 0.6 Cannibalization Check
55
+
56
+ | Existing Command/Agent | Overlap? | Impact |
57
+ |-----------------------|----------|--------|
58
+ | README.md docs table | None | README links to docs but has no contributor/attribution section |
59
+ | CONTRIBUTING.md | None | Describes how to contribute, not who has contributed |
60
+ | CHANGELOG.md | Partial | Lists what changed but not who/what inspired it |
61
+
62
+ No full overlap. Proceed.
63
+
64
+ ### 0.7 Cognitive Load Assessment
65
+
66
+ | Metric | Before | After | Delta |
67
+ |--------|--------|-------|-------|
68
+ | Commands a new user must learn | 0 | 0 | 0 |
69
+ | New concepts introduced | 0 | 0 | 0 |
70
+ | Score | — | — | simplifies (-1) — reduces discovery friction |
71
+
72
+ ---
73
+
74
+ ## Phase 1: Internal Reconnaissance
75
+
76
+ ### 1.1 Existing Capabilities Inventory
77
+
78
+ | Capability | Status | Location | Relevance |
79
+ |------------|--------|----------|-----------|
80
+ | Git author tracking | Exists | git log | Source of contributor data |
81
+ | Co-Author-By trailers | Exists | Every commit | AI attribution pattern |
82
+ | package.json author field | Exists | package.json | Says "PAN Wizard Contributors" (collective) |
83
+ | LICENSE copyright | Exists | LICENSE | Says "PAN Wizard Contributors" |
84
+ | ADR documents | 11 exist | docs/decisions/ | Design decision provenance |
85
+ | Feature specs | 11 exist | docs/specs/ | Competitive analysis & methodology references |
86
+ | COMPARISON.md | Exists | docs/ | Tool comparison matrix |
87
+ | CHANGELOG.md | Exists | root | Change history per version |
88
+ | CONTRIBUTING.md | Exists | root | Contribution guide (no names) |
89
+ | SECURITY.md | Exists | root | Promises to credit reporters |
90
+ | CODE_OF_CONDUCT.md | Exists | root | Governance |
91
+
92
+ ### 1.2 Git History Analysis
93
+
94
+ **Contributors by commit count:**
95
+
96
+ | Contributor | Type | Commits | Role |
97
+ |-------------|------|---------|------|
98
+ | oharms | Human | 28 | Creator, sole human author |
99
+ | Claude Opus 4.6 | AI Co-Author | ~28 | AI pair programmer (Co-Authored-By trailer) |
100
+ | dependabot[bot] | Bot | 4 | Automated dependency updates |
101
+ | GitHub (noreply@github.com) | System | — | Merge commit committer |
102
+
103
+ ### 1.3 Methodology & Influence Inventory
104
+
105
+ **Strategic Methodologies (6):**
106
+ | Methodology | Where Used | Source/Origin |
107
+ |------------|-----------|---------------|
108
+ | Blue Ocean Strategy | focus-design Phase 3.1 | W. Chan Kim & Renée Mauborgne (2004) |
109
+ | Wardley Mapping | focus-design Phase 3.2 | Simon Wardley (2005) |
110
+ | STRIDE Threat Modeling | focus-design Phase 7 | Microsoft (1999), Loren Kohnfelder & Praerit Garg |
111
+ | TOGAF ADM | ADR-0008, map-codebase templates | The Open Group |
112
+ | Spec-Driven Development | focus-design pipeline | Industry practice |
113
+ | Architecture Decision Records | 11 ADRs | Michael Nygard (2011) |
114
+
115
+ **Industry Standards (12):**
116
+ | Standard | Where Used | Governing Body |
117
+ |----------|-----------|----------------|
118
+ | OWASP Top 10 (2025) | standards command catalog | OWASP Foundation |
119
+ | OWASP ASVS Level 1 | standards command catalog | OWASP Foundation |
120
+ | OWASP LLM Top 10 | standards command catalog | OWASP Foundation |
121
+ | OWASP Agentic Top 10 | standards command catalog | OWASP Foundation |
122
+ | WCAG 2.2 | standards command catalog | W3C/WAI |
123
+ | NIST SSDF | standards command catalog | NIST (US) |
124
+ | ISO 25010 | standards command catalog | ISO/IEC |
125
+ | STRIDE | standards command catalog | Microsoft |
126
+ | CWE Top 25 | standards command catalog | MITRE |
127
+ | SOC 2 Dev Controls | standards command catalog | AICPA |
128
+ | TOGAF ADM | standards command catalog, ADR-0008 | The Open Group |
129
+ | Conventional Commits | standards command catalog, commit system | conventionalcommits.org |
130
+
131
+ **Competing Tools Analyzed (8):**
132
+ | Tool | Where Referenced | What We Learned |
133
+ |------|-----------------|-----------------|
134
+ | Aider | COMPARISON.md, focus-design Phase 2 | Auto-commit per edit, repo map |
135
+ | Cursor | COMPARISON.md, specs | Embeddings indexing, .cursorrules, multi-agent |
136
+ | Continue.dev | COMPARISON.md, focus-design Phase 2 | IDE extension, context providers |
137
+ | Cline | COMPARISON.md, specs | Separate plan/act modes → inspired PAN tiers |
138
+ | Windsurf | COMPARISON.md, specs | RAG + AST indexing, Wave multi-agent |
139
+ | GitHub Copilot Workspace | COMPARISON.md, focus-design Phase 2 | Task decomposition, plan-execute-verify |
140
+ | Devin | COMPARISON.md | Cloud IDE, sandbox execution |
141
+ | Taskmaster AI | focus-commands spec | Task breakdown, prioritization → same problem space as focus-scan |
142
+
143
+ **Scanning/Quality Tools Referenced (5):**
144
+ | Tool | Where Referenced | Relationship |
145
+ |------|-----------------|-------------|
146
+ | SonarQube | standards spec | OWASP/CWE/PCI DSS rule support |
147
+ | Semgrep | standards spec | 4000+ rules by standard |
148
+ | Snyk | standards spec | Compliance dashboards |
149
+ | CodeQL | standards spec | CWE/OWASP categories |
150
+ | esbuild | build system | Only devDependency (hook bundler) |
151
+
152
+ **Development Standards (4):**
153
+ | Standard | Where Used | URL |
154
+ |----------|-----------|-----|
155
+ | Semantic Versioning 2.0.0 | CHANGELOG, versioning | https://semver.org/spec/v2.0.0.html |
156
+ | Keep a Changelog 1.0.0 | CHANGELOG format | https://keepachangelog.com/en/1.0.0/ |
157
+ | Contributor Covenant 2.0 | CODE_OF_CONDUCT.md | https://contributor-covenant.org/version/2/0/ |
158
+ | XDG Base Directory | OpenCode install paths | freedesktop.org specification |
159
+
160
+ **Cognitive Science (1):**
161
+ | Concept | Where Used | Origin |
162
+ |---------|-----------|--------|
163
+ | Miller's Law | ADR-0006 (focus-commands naming) | George A. Miller (1956) |
164
+
165
+ **AI Security Research (2):**
166
+ | Finding | Where Referenced | Sources |
167
+ |---------|-----------------|---------|
168
+ | 24.7-45% of AI code has security flaws | standards spec | Multiple 2025-2026 studies |
169
+ | "Vibe coding" security consensus | standards spec | Black Duck, Palo Alto Networks, Dark Reading |
170
+
171
+ **Community Initiatives (2):**
172
+ | Initiative | Where Referenced | What |
173
+ |-----------|-----------------|------|
174
+ | Secure Code Warrior AI Security Rules | standards spec | Cross-tool AI security rules (June 2025) |
175
+ | OpenSSF Security Guide for AI Assistants | standards spec | AI code instruction security (Sep 2025) |
176
+
177
+ ### 1.4 Dependency & Integration Map
178
+
179
+ ```
180
+ [CONTRIBUTORS.md] — new file, no code dependencies
181
+ ├── data source: git log (read-only)
182
+ ├── data source: package.json author field
183
+ └── linked from: README.md
184
+
185
+ [ATTRIBUTION.md] — new file, no code dependencies
186
+ ├── data source: docs/decisions/ADR-0001..0011
187
+ ├── data source: docs/specs/*_featureai.md
188
+ ├── data source: docs/COMPARISON.md
189
+ ├── data source: commands/pan/focus-design.md
190
+ └── linked from: README.md
191
+ ```
192
+
193
+ No circular dependencies. No code changes. Documentation only.
194
+
195
+ ---
196
+
197
+ ## Phase 3: Strategic Analysis
198
+
199
+ ### 3.1 Blue Ocean Four Actions Framework
200
+
201
+ | Action | Question | Decisions |
202
+ |--------|----------|-----------|
203
+ | **ELIMINATE** | What should we drop? | Vague "PAN Wizard Contributors" without names |
204
+ | **REDUCE** | What should be reduced? | Time to discover who built what and why |
205
+ | **RAISE** | What should be raised? | Transparency, trust, attribution quality |
206
+ | **CREATE** | What should we create? | CONTRIBUTORS.md + ATTRIBUTION.md cross-referenced index |
207
+
208
+ ### 3.2 Wardley Evolution Assessment
209
+
210
+ ```
211
+ Genesis ──── Custom-Built ──── Product ──── Commodity
212
+ ▲
213
+ │
214
+ CONTRIBUTORS.md (commodity)
215
+ ATTRIBUTION.md (custom-built → product)
216
+ ```
217
+
218
+ CONTRIBUTORS.md is commodity — every project has one. ATTRIBUTION.md as an influence index is more novel — most projects don't trace design lineage this explicitly. Position as a differentiator.
219
+
220
+ ### 3.3 Strategic Moat Analysis
221
+
222
+ | Moat Type | Contribution | Score (0-5) |
223
+ |-----------|-------------|-------------|
224
+ | Context Engineering | Helps contributors understand design context | 2 |
225
+ | Cross-Platform | N/A (docs, not code) | 0 |
226
+ | Developer Experience | Reduces onboarding friction for new contributors | 3 |
227
+ | Zero Dependencies | N/A (no code) | 0 |
228
+ | State Persistence | N/A | 0 |
229
+ | Verification Quality | N/A | 0 |
230
+
231
+ ### 3.4 Strategic Recommendation
232
+
233
+ **Build this.** It's zero-risk (documentation only), addresses a direct user request, fills a gap every open-source project should cover, and the attribution index is genuinely useful — tracing 6 methodologies, 12 standards, 8 competitor analyses, and 11 ADRs to their origins creates a knowledge map that future contributors will value. The unique angle is the ATTRIBUTION.md influence index, which goes beyond a typical "credits" section to show the intellectual lineage of every design decision.
234
+
235
+ ---
236
+
237
+ ## Phase 3.5: Architecture & Implementation Pattern Assessment
238
+
239
+ ### 3.5.1 Feature Type Classification
240
+
241
+ | Type | Description |
242
+ |------|-------------|
243
+ | **Documentation** | New markdown files + minor package.json update |
244
+
245
+ No dispatcher changes. No module changes. No agent changes. No hook changes.
246
+
247
+ ### 3.5.2 Layer Violation Check
248
+
249
+ - [x] No code layers involved — documentation only
250
+ - [x] No imports, no module dependencies
251
+ - [x] No output() calls
252
+
253
+ ### 3.5.3 Output Contract Design
254
+
255
+ N/A — no CLI output. Files are static markdown.
256
+
257
+ ### 3.5.4 State Transition Modeling
258
+
259
+ N/A — no state mutations.
260
+
261
+ ### 3.5.5 Breaking Change Assessment
262
+
263
+ | Question | Answer |
264
+ |----------|--------|
265
+ | Changes any existing command's output schema? | No |
266
+ | Changes file formats? | No |
267
+ | Changes directory structure? | No |
268
+ | Changes installer output? | No |
269
+
270
+ ### 3.5.6 Composability Analysis
271
+
272
+ N/A — documentation files.
273
+
274
+ ### 3.5.7 Performance Budget
275
+
276
+ N/A — no runtime cost.
277
+
278
+ ### 3.5.8 Cross-Platform Considerations
279
+
280
+ Markdown renders identically on all platforms. No path issues.
281
+
282
+ ---
283
+
284
+ ## Phase 4: Design Synthesis
285
+
286
+ ### 4.1 Guide-Level Explanation
287
+
288
+ PAN Wizard now ships with two new files:
289
+
290
+ **CONTRIBUTORS.md** — Lists every person, AI, and bot that contributed to the project, with their role and how they contributed. Check here to see who built what.
291
+
292
+ **ATTRIBUTION.md** — An influence index showing where every design idea came from. If you wonder "why does PAN use Blue Ocean Strategy in focus-design?" or "which competing tools were analyzed?", this file has the answer with cross-references to the specific ADR or spec.
293
+
294
+ Both files are linked from README.md.
295
+
296
+ ### 4.2 Reference-Level Explanation
297
+
298
+ #### CONTRIBUTORS.md Structure
299
+ ```markdown
300
+ # Contributors
301
+
302
+ ## Core Team
303
+ - **oharms** — Creator, architect, sole human author (28 commits)
304
+
305
+ ## AI Contributors
306
+ - **Claude Opus 4.6** (Anthropic) — AI pair programmer, co-authored all human commits
307
+
308
+ ## Automated Contributors
309
+ - **dependabot[bot]** — Dependency updates (4 commits)
310
+
311
+ ## How to Get Listed
312
+ See CONTRIBUTING.md for how to contribute.
313
+ ```
314
+
315
+ #### ATTRIBUTION.md Structure
316
+ ```markdown
317
+ # Attribution & Influence Index
318
+
319
+ ## Strategic Methodologies
320
+ | Methodology | Origin | Used In | Purpose |
321
+ |...table...|
322
+
323
+ ## Industry Standards
324
+ | Standard | Governing Body | Used In | Purpose |
325
+ |...table...|
326
+
327
+ ## Competing Tools Analyzed
328
+ | Tool | What We Learned | Referenced In |
329
+ |...table...|
330
+
331
+ ## Development Standards
332
+ | Standard | URL | Used In |
333
+ |...table...|
334
+
335
+ ## Research & Community
336
+ | Source | Finding | Referenced In |
337
+ |...table...|
338
+
339
+ ## Cognitive Science
340
+ | Concept | Origin | Used In |
341
+ |...table...|
342
+ ```
343
+
344
+ ### 4.3 Design Decisions
345
+
346
+ | Decision | Rationale |
347
+ |----------|-----------|
348
+ | Separate CONTRIBUTORS.md and ATTRIBUTION.md | Contributors = people, Attribution = ideas. Different audiences. |
349
+ | Cross-reference to ADRs/specs by file path | Enables click-through navigation on GitHub |
350
+ | Include AI as contributor | Transparent about AI-assisted development — community norm emerging |
351
+ | Include dependabot | Even automated contributions deserve attribution |
352
+
353
+ ### 4.4 Drawbacks & Alternatives
354
+
355
+ | Decision Point | Chosen | Alternative | Why Not | Drawback of Chosen |
356
+ |----------------|--------|------------|---------|-------------------|
357
+ | Separate files | CONTRIBUTORS.md + ATTRIBUTION.md | Single CREDITS.md | Conflates people and ideas | Two files to maintain |
358
+ | Static files | Hand-maintained markdown | Auto-generated from git | Over-engineering for 1 human contributor | Manual updates needed |
359
+ | package.json update | Add contributors array | Leave as-is | npm best practice to list contributors | Minor |
360
+
361
+ ### 4.5 Feature Ladder
362
+
363
+ | Version | Scope | Value Delivered | Effort |
364
+ |---------|-------|----------------|--------|
365
+ | **v0 (MVP)** | CONTRIBUTORS.md + ATTRIBUTION.md + package.json update | Full attribution | XS |
366
+ | **v1 (Complete)** | Add links from README.md | Discoverable | XS |
367
+ | **v2 (Enhanced)** | CLI command `pan-tools contributors` to output JSON | Machine-readable | S (future) |
368
+
369
+ ### 4.6 Adoption Analysis
370
+
371
+ | Question | Answer |
372
+ |----------|--------|
373
+ | How does the user discover this feature? | README docs table, GitHub repo root |
374
+ | What's the learning curve? | Zero — it's markdown files |
375
+ | Does it require changing existing workflows? | No |
376
+ | What's the "aha moment"? | Seeing the full lineage of design decisions in one place |
377
+
378
+ ---
379
+
380
+ ## Phase 5: Architecture Decision Record
381
+
382
+ See `docs/decisions/ADR-0012-contributors-attribution-index.md`
383
+
384
+ ---
385
+
386
+ ## Phase 6: Error Handling & Diagnostics Design
387
+
388
+ N/A — documentation files have no error conditions. If a file is missing, GitHub shows 404. No CLI involved.
389
+
390
+ ---
391
+
392
+ ## Phase 7: Security & Threat Model
393
+
394
+ ### 7.1 Asset & Attack Surface Inventory
395
+
396
+ | Asset | Accessed How | Trust Level |
397
+ |-------|-------------|-------------|
398
+ | CONTRIBUTORS.md | Read (GitHub, local) | System-generated (from git data) |
399
+ | ATTRIBUTION.md | Read (GitHub, local) | System-generated (from ADR/spec data) |
400
+
401
+ ### 7.2 Risks
402
+
403
+ | Risk | Mitigation |
404
+ |------|-----------|
405
+ | Email exposure in CONTRIBUTORS.md | Use noreply GitHub emails only |
406
+ | Incorrect attribution | Cross-verify against git log and ADR content |
407
+ | Stale data | Document last-updated date, note manual maintenance |
408
+
409
+ ### 7.3 Output Sanitization
410
+
411
+ - [x] No absolute filesystem paths
412
+ - [x] No environment variable values
413
+ - [x] No personal email addresses (use noreply@)
414
+ - [x] No API keys or tokens
415
+
416
+ ---
417
+
418
+ ## Phase 8: Implementation Roadmap
419
+
420
+ ### 8.1 Implementation Tasks
421
+
422
+ ```
423
+ ### Task 1: Create CONTRIBUTORS.md
424
+ Files: CONTRIBUTORS.md (new)
425
+ Estimate: XS
426
+ Priority: P0
427
+
428
+ ### Task 2: Create ATTRIBUTION.md
429
+ Files: ATTRIBUTION.md (new)
430
+ Estimate: S
431
+ Priority: P0
432
+
433
+ ### Task 3: Update package.json contributors
434
+ Files: package.json
435
+ Estimate: XS
436
+ Priority: P1
437
+
438
+ ### Task 4: Link from README.md
439
+ Files: README.md
440
+ Estimate: XS
441
+ Priority: P1
442
+ ```
443
+
444
+ ### 8.2 Dependency Graph
445
+ ```
446
+ Task 1 ─┐
447
+ ├──> Task 4 (link both from README)
448
+ Task 2 ─┘
449
+ Task 3 (independent)
450
+ ```
451
+
452
+ ### 8.3 Risk Register
453
+
454
+ | Risk | Probability | Impact | Mitigation |
455
+ |------|------------|--------|------------|
456
+ | Missing an influence source | Low | Low | Comprehensive scan already done in Phase 1 |
457
+ | Attribution error | Low | Medium | Cross-reference every entry to source file |
458
+
459
+ ---
460
+
461
+ ## Phase 9: Test Plan
462
+
463
+ No automated tests needed — documentation files. Verification is manual:
464
+
465
+ - [ ] CONTRIBUTORS.md matches git log data exactly
466
+ - [ ] ATTRIBUTION.md cross-references resolve to real files
467
+ - [ ] package.json is valid JSON after edit
468
+ - [ ] README.md links work
469
+
470
+ ---
471
+
472
+ ## Phase 10: Output Artifacts
473
+
474
+ ### 10.1 Specification: This file (`docs/specs/contributors_attribution_index_featureai.md`)
475
+ ### 10.2 ADR: `docs/decisions/ADR-0012-contributors-attribution-index.md`
476
+ ### 10.3 Deliverables: CONTRIBUTORS.md, ATTRIBUTION.md, package.json update, README.md links