create-quiver 0.9.1 → 0.12.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 (245) hide show
  1. package/BACKLOG.md +16 -17
  2. package/CHANGELOG.md +34 -0
  3. package/README.md +419 -330
  4. package/README_FOR_AI.md +93 -56
  5. package/ROADMAP.md +22 -11
  6. package/docs/AI_CONTEXT.md.template +2 -0
  7. package/docs/AI_ONBOARDING_PROMPT.md.template +36 -19
  8. package/docs/COMMANDS.md.template +73 -1
  9. package/docs/CONTEXTO.md.template +2 -0
  10. package/docs/DECISIONS.md.template +1 -0
  11. package/docs/GITFLOW_PR_GUIDE.md.template +11 -0
  12. package/docs/INDEX.md.template +20 -18
  13. package/docs/STANDARD.md.template +1 -1
  14. package/docs/STATUS.md.template +1 -0
  15. package/docs/SUPPORT_MATRIX.md.template +6 -2
  16. package/docs/TROUBLESHOOTING.md.template +79 -1
  17. package/docs/WORKFLOW.md.template +26 -18
  18. package/package.json +24 -2
  19. package/package.template.json +24 -7
  20. package/scripts/check-pr-readiness.sh +1 -1
  21. package/scripts/check-scope.sh +0 -1
  22. package/scripts/check-slice-readiness.sh +3 -4
  23. package/scripts/init-docs.sh +53 -6
  24. package/scripts/package-quiver.sh +18 -2
  25. package/specs/quiver-v20-ai-cli-orchestration/EVIDENCE_REPORT.md +23 -0
  26. package/specs/quiver-v20-ai-cli-orchestration/EXECUTION_PLAN.md +57 -0
  27. package/specs/quiver-v20-ai-cli-orchestration/SPEC.md +202 -0
  28. package/specs/quiver-v20-ai-cli-orchestration/STATUS.md +35 -0
  29. package/specs/quiver-v20-ai-cli-orchestration/pr.md +100 -0
  30. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
  31. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
  32. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-00-spec-foundation/slice.json +54 -0
  33. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/CLOSURE_BRIEF.md +39 -0
  34. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/EXECUTION_BRIEF.md +63 -0
  35. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-01-ai-provider-runner/slice.json +55 -0
  36. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/CLOSURE_BRIEF.md +40 -0
  37. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/EXECUTION_BRIEF.md +60 -0
  38. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-02-context-packs-token-budget/slice.json +54 -0
  39. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/CLOSURE_BRIEF.md +43 -0
  40. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/EXECUTION_BRIEF.md +62 -0
  41. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-03-ai-phase-gated-planner/slice.json +62 -0
  42. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/CLOSURE_BRIEF.md +36 -0
  43. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/EXECUTION_BRIEF.md +63 -0
  44. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-04-spec-slice-handoff-pr-generation/slice.json +59 -0
  45. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/CLOSURE_BRIEF.md +32 -0
  46. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/EXECUTION_BRIEF.md +61 -0
  47. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-05-execution-plan-parallel-worktrees/slice.json +59 -0
  48. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/CLOSURE_BRIEF.md +36 -0
  49. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/EXECUTION_BRIEF.md +64 -0
  50. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-06-ai-execute-slice-scope-enforcement/slice.json +65 -0
  51. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/CLOSURE_BRIEF.md +36 -0
  52. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/EXECUTION_BRIEF.md +66 -0
  53. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-07-github-pr-preflight/slice.json +63 -0
  54. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/CLOSURE_BRIEF.md +35 -0
  55. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/EXECUTION_BRIEF.md +64 -0
  56. package/specs/quiver-v20-ai-cli-orchestration/slices/slice-08-docs-smokes-release-readiness/slice.json +77 -0
  57. package/specs/quiver-v21-ai-first-layout/EVIDENCE_REPORT.md +31 -0
  58. package/specs/quiver-v21-ai-first-layout/EXECUTION_PLAN.md +185 -0
  59. package/specs/quiver-v21-ai-first-layout/SPEC.md +212 -0
  60. package/specs/quiver-v21-ai-first-layout/STATUS.md +37 -0
  61. package/specs/quiver-v21-ai-first-layout/pr.md +110 -0
  62. package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
  63. package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +63 -0
  64. package/specs/quiver-v21-ai-first-layout/slices/slice-00-spec-foundation/slice.json +45 -0
  65. package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/CLOSURE_BRIEF.md +31 -0
  66. package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/EXECUTION_BRIEF.md +59 -0
  67. package/specs/quiver-v21-ai-first-layout/slices/slice-01-init-profiles-dry-run/slice.json +57 -0
  68. package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/CLOSURE_BRIEF.md +32 -0
  69. package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/EXECUTION_BRIEF.md +60 -0
  70. package/specs/quiver-v21-ai-first-layout/slices/slice-02-internal-layout-template-resolver/slice.json +58 -0
  71. package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/CLOSURE_BRIEF.md +34 -0
  72. package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/EXECUTION_BRIEF.md +61 -0
  73. package/specs/quiver-v21-ai-first-layout/slices/slice-03-generation-profiles-visible-contract/slice.json +64 -0
  74. package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/CLOSURE_BRIEF.md +32 -0
  75. package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/EXECUTION_BRIEF.md +58 -0
  76. package/specs/quiver-v21-ai-first-layout/slices/slice-04-analyze-scan-relocation/slice.json +64 -0
  77. package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/CLOSURE_BRIEF.md +32 -0
  78. package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/EXECUTION_BRIEF.md +60 -0
  79. package/specs/quiver-v21-ai-first-layout/slices/slice-05-empty-specs-layout-doctor/slice.json +65 -0
  80. package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/CLOSURE_BRIEF.md +31 -0
  81. package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/EXECUTION_BRIEF.md +62 -0
  82. package/specs/quiver-v21-ai-first-layout/slices/slice-06-legacy-migration-optional-assets/slice.json +66 -0
  83. package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/CLOSURE_BRIEF.md +33 -0
  84. package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/EXECUTION_BRIEF.md +61 -0
  85. package/specs/quiver-v21-ai-first-layout/slices/slice-07-docs-guidance-alignment/slice.json +67 -0
  86. package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/CLOSURE_BRIEF.md +35 -0
  87. package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/EXECUTION_BRIEF.md +66 -0
  88. package/specs/quiver-v21-ai-first-layout/slices/slice-08-smokes-release-readiness/slice.json +62 -0
  89. package/specs/quiver-v22-guided-ai-workflow/EVIDENCE_REPORT.md +58 -0
  90. package/specs/quiver-v22-guided-ai-workflow/EXECUTION_PLAN.md +88 -0
  91. package/specs/quiver-v22-guided-ai-workflow/SPEC.md +228 -0
  92. package/specs/quiver-v22-guided-ai-workflow/STATUS.md +42 -0
  93. package/specs/quiver-v22-guided-ai-workflow/pr.md +104 -0
  94. package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +35 -0
  95. package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
  96. package/specs/quiver-v22-guided-ai-workflow/slices/slice-00-spec-foundation/slice.json +51 -0
  97. package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/CLOSURE_BRIEF.md +31 -0
  98. package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/EXECUTION_BRIEF.md +58 -0
  99. package/specs/quiver-v22-guided-ai-workflow/slices/slice-01-docs-source-of-truth-sync/slice.json +55 -0
  100. package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/CLOSURE_BRIEF.md +30 -0
  101. package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/EXECUTION_BRIEF.md +57 -0
  102. package/specs/quiver-v22-guided-ai-workflow/slices/slice-02-prepare-command-diagnostics/slice.json +57 -0
  103. package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/CLOSURE_BRIEF.md +32 -0
  104. package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/EXECUTION_BRIEF.md +56 -0
  105. package/specs/quiver-v22-guided-ai-workflow/slices/slice-03-context-doc-refresh/slice.json +56 -0
  106. package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/CLOSURE_BRIEF.md +33 -0
  107. package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/EXECUTION_BRIEF.md +56 -0
  108. package/specs/quiver-v22-guided-ai-workflow/slices/slice-04-planner-approval-state/slice.json +58 -0
  109. package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/CLOSURE_BRIEF.md +32 -0
  110. package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/EXECUTION_BRIEF.md +56 -0
  111. package/specs/quiver-v22-guided-ai-workflow/slices/slice-05-spec-worktree-lifecycle/slice.json +54 -0
  112. package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/CLOSURE_BRIEF.md +32 -0
  113. package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/EXECUTION_BRIEF.md +58 -0
  114. package/specs/quiver-v22-guided-ai-workflow/slices/slice-06-executor-commit-recovery/slice.json +57 -0
  115. package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/CLOSURE_BRIEF.md +32 -0
  116. package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/EXECUTION_BRIEF.md +58 -0
  117. package/specs/quiver-v22-guided-ai-workflow/slices/slice-07-execution-waves-delegation/slice.json +55 -0
  118. package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/CLOSURE_BRIEF.md +32 -0
  119. package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/EXECUTION_BRIEF.md +58 -0
  120. package/specs/quiver-v22-guided-ai-workflow/slices/slice-08-pr-create-gh-ssh/slice.json +53 -0
  121. package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/CLOSURE_BRIEF.md +33 -0
  122. package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/EXECUTION_BRIEF.md +59 -0
  123. package/specs/quiver-v22-guided-ai-workflow/slices/slice-09-post-merge-cleanup-release-safety/slice.json +59 -0
  124. package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +34 -0
  125. package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +58 -0
  126. package/specs/quiver-v22-guided-ai-workflow/slices/slice-10-docs-smokes-release-readiness/slice.json +60 -0
  127. package/specs/quiver-v23-guided-flow-productization/EVIDENCE_REPORT.md +80 -0
  128. package/specs/quiver-v23-guided-flow-productization/EXECUTION_PLAN.md +80 -0
  129. package/specs/quiver-v23-guided-flow-productization/SPEC.md +203 -0
  130. package/specs/quiver-v23-guided-flow-productization/STATUS.md +39 -0
  131. package/specs/quiver-v23-guided-flow-productization/pr.md +119 -0
  132. package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +30 -0
  133. package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +61 -0
  134. package/specs/quiver-v23-guided-flow-productization/slices/slice-00-spec-foundation/slice.json +51 -0
  135. package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/CLOSURE_BRIEF.md +33 -0
  136. package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/EXECUTION_BRIEF.md +35 -0
  137. package/specs/quiver-v23-guided-flow-productization/slices/slice-01-short-command-and-flow-entrypoint/slice.json +56 -0
  138. package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/CLOSURE_BRIEF.md +31 -0
  139. package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/EXECUTION_BRIEF.md +29 -0
  140. package/specs/quiver-v23-guided-flow-productization/slices/slice-02-flow-status-wizard/slice.json +55 -0
  141. package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/CLOSURE_BRIEF.md +33 -0
  142. package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/EXECUTION_BRIEF.md +29 -0
  143. package/specs/quiver-v23-guided-flow-productization/slices/slice-03-agent-profiles/slice.json +54 -0
  144. package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/CLOSURE_BRIEF.md +32 -0
  145. package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/EXECUTION_BRIEF.md +30 -0
  146. package/specs/quiver-v23-guided-flow-productization/slices/slice-04-context-preparation-onboarding/slice.json +59 -0
  147. package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/CLOSURE_BRIEF.md +31 -0
  148. package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/EXECUTION_BRIEF.md +29 -0
  149. package/specs/quiver-v23-guided-flow-productization/slices/slice-05-planner-iteration-history/slice.json +53 -0
  150. package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/CLOSURE_BRIEF.md +33 -0
  151. package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/EXECUTION_BRIEF.md +30 -0
  152. package/specs/quiver-v23-guided-flow-productization/slices/slice-06-production-plan-review/slice.json +54 -0
  153. package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/CLOSURE_BRIEF.md +33 -0
  154. package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/EXECUTION_BRIEF.md +30 -0
  155. package/specs/quiver-v23-guided-flow-productization/slices/slice-07-spec-create-experience/slice.json +55 -0
  156. package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/CLOSURE_BRIEF.md +32 -0
  157. package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/EXECUTION_BRIEF.md +30 -0
  158. package/specs/quiver-v23-guided-flow-productization/slices/slice-08-executor-prompt-generation/slice.json +55 -0
  159. package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/CLOSURE_BRIEF.md +33 -0
  160. package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/EXECUTION_BRIEF.md +34 -0
  161. package/specs/quiver-v23-guided-flow-productization/slices/slice-09-delegated-slice-execution/slice.json +57 -0
  162. package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +33 -0
  163. package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +32 -0
  164. package/specs/quiver-v23-guided-flow-productization/slices/slice-10-docs-smokes-release-readiness/slice.json +63 -0
  165. package/specs/quiver-v24-dx-onboarding-hardening/EVIDENCE_REPORT.md +55 -0
  166. package/specs/quiver-v24-dx-onboarding-hardening/EXECUTION_PLAN.md +43 -0
  167. package/specs/quiver-v24-dx-onboarding-hardening/SPEC.md +149 -0
  168. package/specs/quiver-v24-dx-onboarding-hardening/STATUS.md +31 -0
  169. package/specs/quiver-v24-dx-onboarding-hardening/pr.md +76 -0
  170. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +31 -0
  171. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +52 -0
  172. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-00-spec-foundation/slice.json +51 -0
  173. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/CLOSURE_BRIEF.md +38 -0
  174. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/EXECUTION_BRIEF.md +53 -0
  175. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-01-init-template-hygiene/slice.json +55 -0
  176. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/CLOSURE_BRIEF.md +33 -0
  177. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/EXECUTION_BRIEF.md +50 -0
  178. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-02-cli-command-routing-version-errors/slice.json +52 -0
  179. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/CLOSURE_BRIEF.md +33 -0
  180. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/EXECUTION_BRIEF.md +50 -0
  181. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-03-doctor-fix-doc-link-checks/slice.json +53 -0
  182. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/CLOSURE_BRIEF.md +33 -0
  183. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/EXECUTION_BRIEF.md +50 -0
  184. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-04-prepare-output-ai-context-drafts/slice.json +70 -0
  185. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/CLOSURE_BRIEF.md +36 -0
  186. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/EXECUTION_BRIEF.md +49 -0
  187. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-05-local-slice-validation-base-guidance/slice.json +52 -0
  188. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/CLOSURE_BRIEF.md +43 -0
  189. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/EXECUTION_BRIEF.md +53 -0
  190. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-06-plan-graph-next-history-views/slice.json +60 -0
  191. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/CLOSURE_BRIEF.md +32 -0
  192. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/EXECUTION_BRIEF.md +50 -0
  193. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-07-analyzer-command-map-hardening/slice.json +51 -0
  194. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/CLOSURE_BRIEF.md +34 -0
  195. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/EXECUTION_BRIEF.md +52 -0
  196. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-08-evidence-run-command/slice.json +54 -0
  197. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/CLOSURE_BRIEF.md +34 -0
  198. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/EXECUTION_BRIEF.md +51 -0
  199. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-09-spec-viewer-demo-scaffolding/slice.json +59 -0
  200. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/CLOSURE_BRIEF.md +33 -0
  201. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/EXECUTION_BRIEF.md +54 -0
  202. package/specs/quiver-v24-dx-onboarding-hardening/slices/slice-10-docs-smokes-release-readiness/slice.json +76 -0
  203. package/src/create-quiver/commands/ai.js +915 -0
  204. package/src/create-quiver/commands/demo.js +22 -0
  205. package/src/create-quiver/commands/evidence.js +37 -0
  206. package/src/create-quiver/commands/flow.js +561 -0
  207. package/src/create-quiver/commands/graph.js +14 -1
  208. package/src/create-quiver/commands/next.js +28 -0
  209. package/src/create-quiver/commands/plan.js +6 -3
  210. package/src/create-quiver/commands/prepare.js +236 -0
  211. package/src/create-quiver/commands/spec.js +133 -0
  212. package/src/create-quiver/index.js +1096 -96
  213. package/src/create-quiver/lib/agent-profiles.js +148 -0
  214. package/src/create-quiver/lib/ai/context-packs.js +170 -0
  215. package/src/create-quiver/lib/ai/execution-plan.js +614 -0
  216. package/src/create-quiver/lib/ai/executor.js +682 -0
  217. package/src/create-quiver/lib/ai/github.js +525 -0
  218. package/src/create-quiver/lib/ai/onboarding-template.js +365 -0
  219. package/src/create-quiver/lib/ai/phase-gates.js +72 -0
  220. package/src/create-quiver/lib/ai/plan-review.js +283 -0
  221. package/src/create-quiver/lib/ai/preflight.js +58 -0
  222. package/src/create-quiver/lib/ai/prompt-transport.js +81 -0
  223. package/src/create-quiver/lib/ai/prompts.js +39 -0
  224. package/src/create-quiver/lib/ai/providers.js +315 -0
  225. package/src/create-quiver/lib/ai/safety.js +156 -0
  226. package/src/create-quiver/lib/ai/spec-generator.js +314 -0
  227. package/src/create-quiver/lib/ai/spec-templates.js +715 -0
  228. package/src/create-quiver/lib/approvals.js +350 -0
  229. package/src/create-quiver/lib/demo.js +657 -0
  230. package/src/create-quiver/lib/doctor.js +348 -0
  231. package/src/create-quiver/lib/evidence.js +115 -0
  232. package/src/create-quiver/lib/git.js +21 -0
  233. package/src/create-quiver/lib/init-docs.js +545 -23
  234. package/src/create-quiver/lib/init-layout.js +451 -0
  235. package/src/create-quiver/lib/lifecycle.js +8 -2
  236. package/src/create-quiver/lib/package-safety.js +117 -0
  237. package/src/create-quiver/lib/paths.js +63 -2
  238. package/src/create-quiver/lib/project-scan.js +66 -0
  239. package/src/create-quiver/lib/readiness.js +87 -18
  240. package/src/create-quiver/lib/scope.js +125 -0
  241. package/src/create-quiver/lib/slice-graph.js +7 -0
  242. package/src/create-quiver/lib/slice.js +59 -16
  243. package/src/create-quiver/lib/spec-worktrees.js +349 -0
  244. package/src/create-quiver/lib/state.js +18 -1
  245. package/src/create-quiver/lib/template-resolver.js +74 -0
@@ -0,0 +1,185 @@
1
+ # Execution Plan - Quiver v21 AI-First Layout
2
+
3
+ ## Execution Waves
4
+
5
+ `slice-00` must run first. It publishes the spec, slices, handoffs, and PR body.
6
+
7
+ ### Ola 0 - Base documental obligatoria
8
+
9
+ Ejecutar primero y de forma secuencial:
10
+
11
+ 1. `slice-00-spec-foundation`
12
+
13
+ Salida esperada:
14
+
15
+ - Spec, slices, briefs, execution plan y PR body versionados.
16
+ - El resto de agentes puede leer solo su slice y handoff.
17
+
18
+ Gate para avanzar:
19
+
20
+ - `slice-00` mergeado o, como minimo, disponible en la rama base compartida por los worktrees.
21
+ - Todos los `slice.json` parsean.
22
+ - No hay cambios de codigo de producto.
23
+
24
+ ### Ola 1 - Contrato de entrada del init
25
+
26
+ Ejecutar de forma secuencial:
27
+
28
+ 1. `slice-01-init-profiles-dry-run`
29
+
30
+ Motivo:
31
+
32
+ - Define el parser, flags, alias compatible y layout planner.
33
+ - Los demas slices dependen de estos contratos para no duplicar decisiones.
34
+
35
+ Gate para avanzar:
36
+
37
+ - `init --dry-run` no escribe archivos.
38
+ - `npx create-quiver --name` sigue funcionando como alias.
39
+ - El layout planner esta testeado como funcion pura.
40
+
41
+ ### Ola 2 - Infraestructura interna
42
+
43
+ Ejecutar de forma secuencial:
44
+
45
+ 1. `slice-02-internal-layout-template-resolver`
46
+
47
+ Motivo:
48
+
49
+ - Define `.quiver/`, paths internos y resolucion de templates.
50
+ - Es prerequisito para cambiar generacion y analyze sin hardcodear rutas en varios lugares.
51
+
52
+ Gate para avanzar:
53
+
54
+ - `.quiver/state.json`, `.quiver/config.json` y `.quiver/.gitignore` definidos.
55
+ - Templates resueltos desde el paquete sin requerir `docs-template/` visible.
56
+ - Fallback legacy cubierto por tests.
57
+
58
+ ### Ola 3 - Cambios funcionales paralelizables
59
+
60
+ Ejecutar en paralelo despues de la Ola 2:
61
+
62
+ 1. `slice-03-generation-profiles-visible-contract`
63
+ 2. `slice-04-analyze-scan-relocation`
64
+
65
+ Por que pueden ir en paralelo:
66
+
67
+ - `slice-03` cambia que escribe `init`.
68
+ - `slice-04` cambia donde escribe y lee `analyze`.
69
+ - Comparten helpers de `.quiver/`, pero no deberian modificar la misma responsabilidad principal.
70
+
71
+ Condiciones de paralelismo:
72
+
73
+ - Ambos worktrees deben partir de una rama que ya incluya `slice-02`.
74
+ - Si ambos tocan `scripts/ci/smoke-create-quiver.sh`, coordinar el merge final para evitar conflictos de asserts.
75
+ - Si ambos tocan helpers de paths internos, mantener la autoridad en `slice-02` y solo consumirlos.
76
+
77
+ Gate para avanzar:
78
+
79
+ - Default init no crea `docs-template/`, `tools/scripts/` ni spec placeholder.
80
+ - `--minimal` y `--full` estan cubiertos.
81
+ - `analyze` escribe `.quiver/scans/PROJECT_SCAN.json`.
82
+ - `docs/PROJECT_MAP.md` sigue visible.
83
+ - Lectura legacy de `docs/PROJECT_SCAN.json` funciona.
84
+
85
+ ### Ola 4 - Compatibilidad y comandos sobre el nuevo layout
86
+
87
+ Ejecutar en paralelo despues de la Ola 3:
88
+
89
+ 1. `slice-05-empty-specs-layout-doctor`
90
+ 2. `slice-06-legacy-migration-optional-assets`
91
+
92
+ Por que pueden ir en paralelo:
93
+
94
+ - `slice-05` adapta comandos y doctor al estado sin specs y a deteccion de layout.
95
+ - `slice-06` adapta migracion y assets opcionales.
96
+ - Ambos consumen el comportamiento ya definido por `slice-03` y `slice-04`.
97
+
98
+ Condiciones de paralelismo:
99
+
100
+ - Ambos worktrees deben partir de una rama que incluya la Ola 3 completa.
101
+ - Si ambos modifican `doctor`, coordinar ownership: `slice-05` debe ser owner de deteccion/reporting de layout; `slice-06` puede agregar mensajes de migracion usando esa API.
102
+ - Si ambos modifican smokes, evitar duplicar escenarios.
103
+
104
+ Gate para avanzar:
105
+
106
+ - `plan`, `graph`, `next` y `doctor` soportan proyectos sin specs.
107
+ - Doctor reporta layout nuevo, legacy, hibrido o incompleto.
108
+ - `migrate` es no destructivo.
109
+ - `--legacy-scripts`, `--include-templates` y `--full` generan assets consistentes.
110
+
111
+ ### Ola 5 - Documentacion alineada
112
+
113
+ Ejecutar de forma secuencial despues de la Ola 4:
114
+
115
+ 1. `slice-07-docs-guidance-alignment`
116
+
117
+ Motivo:
118
+
119
+ - La documentacion debe reflejar comportamiento final, no comportamiento intermedio.
120
+
121
+ Gate para avanzar:
122
+
123
+ - README, README_FOR_AI, generated README y templates describen el mismo modelo.
124
+ - `docs-template/`, `tools/scripts/` y scan legacy aparecen solo como compatibilidad u opciones.
125
+ - Onboarding de IA empieza por contrato visible, no por `.quiver/`.
126
+
127
+ ### Ola 6 - Cierre y evidencia
128
+
129
+ Ejecutar ultimo y de forma secuencial:
130
+
131
+ 1. `slice-08-smokes-release-readiness`
132
+
133
+ Motivo:
134
+
135
+ - Valida toda la matriz despues de comportamiento, compatibilidad y docs.
136
+
137
+ Gate final:
138
+
139
+ - Suite Node completa pasa.
140
+ - Smokes principales pasan.
141
+ - `EVIDENCE_REPORT.md` actualizado con evidencia real.
142
+ - `pr.md` actualizado y listo para abrir PR.
143
+
144
+ ## Parallelism Summary
145
+
146
+ | Ola | Slices | Modo |
147
+ | --- | --- | --- |
148
+ | 0 | `slice-00` | Secuencial obligatorio |
149
+ | 1 | `slice-01` | Secuencial |
150
+ | 2 | `slice-02` | Secuencial |
151
+ | 3 | `slice-03`, `slice-04` | Paralelo condicionado |
152
+ | 4 | `slice-05`, `slice-06` | Paralelo condicionado |
153
+ | 5 | `slice-07` | Secuencial |
154
+ | 6 | `slice-08` | Secuencial |
155
+
156
+ ## Worktree Guidance
157
+
158
+ - Use one worktree per implementation slice.
159
+ - Keep one commit per slice.
160
+ - Do not run `slice-03` before `slice-02` because generation depends on the internal layout and template resolver.
161
+ - Do not run `slice-07` until behavior is stable, otherwise docs will drift.
162
+
163
+ ## Suggested Branches
164
+
165
+ - `feature/QUIVER-21-00-spec-foundation`
166
+ - `feature/QUIVER-21-01-init-profiles`
167
+ - `feature/QUIVER-21-02-internal-layout`
168
+ - `feature/QUIVER-21-03-generation-profiles`
169
+ - `feature/QUIVER-21-04-analyze-scan`
170
+ - `feature/QUIVER-21-05-empty-specs-doctor`
171
+ - `feature/QUIVER-21-06-legacy-migration`
172
+ - `feature/QUIVER-21-07-docs-alignment`
173
+ - `feature/QUIVER-21-08-smokes`
174
+
175
+ ## Validation Gate
176
+
177
+ Before closing the spec:
178
+
179
+ ```bash
180
+ node --test tests/**/*.test.js
181
+ npm run smoke:create-quiver
182
+ bash scripts/ci/smoke-init-docs.sh
183
+ node scripts/ci/smoke-cross-platform.js
184
+ git diff --check
185
+ ```
@@ -0,0 +1,212 @@
1
+ # Quiver v21 - AI-First Layout
2
+
3
+ ## Summary
4
+
5
+ Quiver's current initialization flow creates too many visible files for a first onboarding pass. It mixes the project contract that humans and agents should read with Quiver's internal machinery: templates, legacy scripts, placeholder specs, scan artifacts, and optional community files.
6
+
7
+ This spec redesigns initialization around an AI-first layout:
8
+
9
+ - visible files are the project contract;
10
+ - `.quiver/` contains internal machinery;
11
+ - specs are created only when there is a real approved requirement;
12
+ - legacy behavior remains available through explicit flags and migration support.
13
+
14
+ ## Problem
15
+
16
+ The generated footprint can feel disorganized in a new or existing project. A user sees many files before Quiver has actually analyzed the repository or produced a real spec.
17
+
18
+ The main risks are:
19
+
20
+ - confusing generated placeholders with real project context;
21
+ - forcing agents to inspect too many files;
22
+ - creating `docs-template/`, `tools/scripts/`, and `specs/<project>/` before they are needed;
23
+ - making future commands depend on files that should be internal implementation details;
24
+ - breaking existing projects if the layout changes without compatibility.
25
+
26
+ ## Goals
27
+
28
+ - Make the default init output small, legible, and AI-first.
29
+ - Move internal Quiver machinery under `.quiver/`.
30
+ - Keep human/agent-facing contract files visible and versionable.
31
+ - Add explicit profiles for minimal, full, legacy scripts, and template export.
32
+ - Add `init --dry-run` so users can preview file impact.
33
+ - Preserve compatibility with existing Quiver projects and legacy paths.
34
+ - Keep `npx create-quiver --name "Project"` working as a compatibility alias.
35
+
36
+ ## Non-Goals
37
+
38
+ - Do not change provider execution behavior for `quiver ai`.
39
+ - Do not redesign the spec/slice artifacts generated by `ai plan --phase spec`.
40
+ - Do not publish a new npm release in this spec.
41
+ - Do not migrate user projects destructively.
42
+ - Do not hide `README.md`, `AGENTS.md`, `docs/`, or real `specs/` inside `.quiver/`.
43
+
44
+ ## Approved Acceptance Criteria
45
+
46
+ ### Initialization
47
+
48
+ 1. Given a project without Quiver, when the user runs the recommended init command, then Quiver creates a clean AI-first contract.
49
+ 2. Given default init, when generation finishes, then `docs-template/` is not created at the project root.
50
+ 3. Given default init, when generation finishes, then `tools/scripts/` is not created unless requested explicitly.
51
+ 4. Given default init without a real requirement, when generation finishes, then Quiver does not create a placeholder spec under `specs/<project-slug>/`.
52
+ 5. Given `npx create-quiver --name "Project"`, when it runs, then it remains a compatibility alias for the recommended init flow or emits a clear deprecation notice without failing.
53
+
54
+ ### `.quiver/` Internal Layout
55
+
56
+ 1. Given an initialized project, when Quiver stores internal state, then it uses `.quiver/`.
57
+ 2. Given `.quiver/cache`, `.quiver/runs`, or `.quiver/worktrees`, when `git status` runs, then those paths do not appear as versionable changes.
58
+ 3. Given `.quiver/state.json` and `.quiver/config.json`, when the repo is reviewed, then those files may be versioned as Quiver contract metadata.
59
+ 4. Given templates are needed internally, when default init runs, then Quiver uses packaged templates without requiring visible `docs-template/`.
60
+ 5. Given `--include-templates`, when init runs, then templates are copied explicitly under `.quiver/templates/`.
61
+
62
+ ### Visible Contract
63
+
64
+ 1. Given a generated project, when a human or AI agent onboards, then it can start from `README.md`, `AGENTS.md`, and `docs/`.
65
+ 2. Given a generated project, when an agent onboards, then it does not need to inspect `.quiver/` unless visible docs instruct it to.
66
+ 3. Given an initial diff, when it is reviewed, then every visible generated file has a clear purpose and is not a fake project artifact.
67
+
68
+ ### Profiles
69
+
70
+ 1. Given default init, when it runs, then it creates the AI-first clean layout.
71
+ 2. Given `--minimal`, when init runs, then Quiver creates only the minimum state, router, and context contract required for AI onboarding.
72
+ 3. Given `--full`, when init runs, then Quiver preserves the broader current generation behavior as an explicit mode.
73
+ 4. Given `--legacy-scripts`, when init runs, then legacy Bash wrappers and matching npm scripts are created in a documented location.
74
+ 5. Given an invalid profile or flag combination, when init runs, then Quiver fails with supported options and no partial writes.
75
+
76
+ ### Analyze
77
+
78
+ 1. Given the new layout, when `analyze` runs, then raw scan output is written to `.quiver/scans/PROJECT_SCAN.json`.
79
+ 2. Given `analyze` runs, when it completes, then `docs/PROJECT_MAP.md` remains visible for humans and agents.
80
+ 3. Given a legacy project with `docs/PROJECT_SCAN.json`, when `doctor` or AI onboarding reads scan data, then Quiver can read the legacy path without forcing immediate migration.
81
+
82
+ ### Specs and Slice Commands
83
+
84
+ 1. Given a project with no specs yet, when `plan`, `graph`, `next`, or `doctor` runs, then the command reports "no specs yet" or equivalent as a valid state.
85
+ 2. Given an approved technical plan, when `ai plan --phase spec` runs, then Quiver creates the real `specs/<spec-slug>/` tree.
86
+ 3. Given default init, when no spec exists, then no placeholder slice is created.
87
+
88
+ ### Dry-Run and Safety
89
+
90
+ 1. Given `init --dry-run`, when it runs, then it does not write, move, delete, install, or modify anything.
91
+ 2. Given `init --dry-run`, when it exits, then it prints files to create, preserve, ignore, and any risks.
92
+ 3. Given a git repo with pending changes, when init would write files, then Quiver warns before writing and provides a safe path forward.
93
+ 4. Given a target file already exists, when init runs, then Quiver preserves it by default and reports `skipped`.
94
+
95
+ ### Documentation and Tests
96
+
97
+ 1. Given the new layout, when `README.md`, `README_FOR_AI.md`, generated README, and docs templates are reviewed, then they all describe the same visible-vs-internal model.
98
+ 2. Given `.quiver/` is internal, when docs explain onboarding, then they start with visible contract files.
99
+ 3. Given the new layout, when smokes run, then default, minimal, full, legacy, include-templates, analyze, and no-spec states are covered.
100
+
101
+ ## Technical Plan
102
+
103
+ ### Architecture
104
+
105
+ Introduce an initialization layout layer that plans the file operations before writing them.
106
+
107
+ Core pieces:
108
+
109
+ - CLI parser support for `init` and profile flags.
110
+ - A pure layout planner that returns intended operations.
111
+ - An init writer that executes the plan or prints it for `--dry-run`.
112
+ - A template resolver that reads packaged templates by default and exported templates only when explicitly requested.
113
+ - `.quiver/` metadata helpers for state, config, ignored runtime folders, scans, and optional templates.
114
+ - Compatibility readers for legacy scan/template/script locations.
115
+
116
+ ### Commands
117
+
118
+ Supported commands and aliases:
119
+
120
+ ```bash
121
+ npx create-quiver init --name "Project"
122
+ npx create-quiver init --name "Project" --minimal
123
+ npx create-quiver init --name "Project" --full
124
+ npx create-quiver init --name "Project" --legacy-scripts
125
+ npx create-quiver init --name "Project" --include-templates
126
+ npx create-quiver init --name "Project" --dry-run
127
+ npx create-quiver --name "Project"
128
+ ```
129
+
130
+ ### Layout Contracts
131
+
132
+ Default visible contract:
133
+
134
+ ```text
135
+ README.md
136
+ AGENTS.md
137
+ docs/
138
+ AI_CONTEXT.md
139
+ AI_ONBOARDING_PROMPT.md
140
+ COMMANDS.md
141
+ WORKFLOW.md
142
+ GITFLOW_PR_GUIDE.md
143
+ PROJECT_MAP.md # after analyze
144
+ ```
145
+
146
+ Internal contract:
147
+
148
+ ```text
149
+ .quiver/
150
+ state.json
151
+ config.json
152
+ .gitignore
153
+ scans/
154
+ PROJECT_SCAN.json # after analyze
155
+ templates/ # only with --include-templates
156
+ cache/ # ignored
157
+ runs/ # ignored
158
+ worktrees/ # ignored
159
+ ```
160
+
161
+ ### Error Handling
162
+
163
+ - Invalid mode or incompatible flags fail before writes.
164
+ - Missing packaged templates fail with actionable diagnostics.
165
+ - Existing files are skipped by default.
166
+ - `--dry-run` returns planned operations only.
167
+ - Legacy paths are read as fallback and reported as legacy.
168
+ - Empty specs state is valid for orchestration commands.
169
+
170
+ ### Validation
171
+
172
+ Minimum validation:
173
+
174
+ - unit tests for layout planning;
175
+ - unit tests for template resolution;
176
+ - CLI tests for init flags and alias behavior;
177
+ - smokes for generated project profiles;
178
+ - analyze smoke for scan relocation;
179
+ - doctor/plan/graph/next smokes for no-spec repos;
180
+ - documentation smoke assertions for visible-vs-internal language.
181
+
182
+ ## Slicing Strategy
183
+
184
+ `slice-00` is mandatory and must land first because it publishes this spec and all slice handoffs to the repo. Behavior changes are split by responsibility so later execution agents can work with bounded context.
185
+
186
+ ## Slice Roadmap
187
+
188
+ | Slice | Name | Status | Depends On |
189
+ | --- | --- | --- | --- |
190
+ | slice-00 | Spec foundation | Draft | - |
191
+ | slice-01 | Init profiles and dry-run planner | Draft | slice-00 |
192
+ | slice-02 | Internal layout and template resolver | Draft | slice-01 |
193
+ | slice-03 | Generation profiles and visible contract | Draft | slice-02 |
194
+ | slice-04 | Analyze scan relocation | Draft | slice-02 |
195
+ | slice-05 | Empty specs and layout doctor | Draft | slice-03, slice-04 |
196
+ | slice-06 | Legacy migration and optional assets | Draft | slice-03, slice-04 |
197
+ | slice-07 | Documentation and guidance alignment | Draft | slice-05, slice-06 |
198
+ | slice-08 | Smokes and release readiness | Draft | slice-07 |
199
+
200
+ ## Risks
201
+
202
+ - Existing users may rely on visible `docs-template/` or `tools/scripts/`.
203
+ - Docs may drift if generated README, root README, and AI guide are not updated together.
204
+ - Commands can accidentally keep expecting placeholder specs.
205
+ - Moving scans can break AI onboarding if fallbacks are incomplete.
206
+ - Full mode can become a dumping ground if not defined tightly.
207
+
208
+ ## Open Questions
209
+
210
+ - Whether `.quiver/scans/PROJECT_SCAN.json` should be versioned by default or optionally ignored.
211
+ - Whether `--full` should include OSS community files by default or require a future `--oss` flag.
212
+ - Whether the compatibility alias should print a warning immediately or after one release cycle.
@@ -0,0 +1,37 @@
1
+ # Quiver v21 - AI-First Layout Status
2
+
3
+ ## Status
4
+
5
+ Completed.
6
+
7
+ ## Summary
8
+
9
+ This spec defines the cleanup of Quiver's generated project layout. The default init should become AI-first and small, while `.quiver/` owns internal machinery and optional legacy/full assets move behind explicit flags.
10
+
11
+ ## Slice Status
12
+
13
+ | Slice | Name | Status | Depends On |
14
+ | --- | --- | --- | --- |
15
+ | slice-00 | Spec foundation | Completed | - |
16
+ | slice-01 | Init profiles and dry-run planner | Completed | slice-00 |
17
+ | slice-02 | Internal layout and template resolver | Completed | slice-01 |
18
+ | slice-03 | Generation profiles and visible contract | Completed | slice-02 |
19
+ | slice-04 | Analyze scan relocation | Completed | slice-02 |
20
+ | slice-05 | Empty specs and layout doctor | Completed | slice-03, slice-04 |
21
+ | slice-06 | Legacy migration and optional assets | Completed | slice-03, slice-04 |
22
+ | slice-07 | Documentation and guidance alignment | Completed | slice-05, slice-06 |
23
+ | slice-08 | Smokes and release readiness | Completed | slice-07 |
24
+
25
+ ## Current Evidence
26
+
27
+ - Acceptance criteria approved by user.
28
+ - Technical plan approved by user.
29
+ - `slice-00` completed with documentation-only artifacts.
30
+ - `slice-01` completed with init dry-run planner, explicit init/profile flags, and compatibility alias tests.
31
+ - `slice-02` completed with `.quiver/` internal layout helpers and template resolver support.
32
+ - `slice-03` completed with profile-aware generation for default, minimal, full, legacy scripts, and template export.
33
+ - `slice-04` completed with analyze scan relocation to `.quiver/scans/PROJECT_SCAN.json` and legacy scan fallback.
34
+ - `slice-05` completed with no-spec doctor support and layout detection for new, legacy, hybrid, and incomplete projects.
35
+ - `slice-06` completed with non-destructive migration reporting and explicit optional assets for `--legacy-scripts`, `--include-templates`, and `--full`.
36
+ - `slice-07` completed with documentation alignment for AI-first init, internal `.quiver/` scan paths, optional legacy assets, and generated README guidance.
37
+ - `slice-08` completed with final validation, tiered smoke alignment for the explicit full compatibility profile, and PR/evidence readiness.
@@ -0,0 +1,110 @@
1
+ ## Title
2
+
3
+ Quiver v21 - AI-First Layout
4
+
5
+ ## Summary
6
+
7
+ Redesign Quiver's generated project layout so the default init is small, visible, and AI-first while internal machinery moves under `.quiver/`.
8
+
9
+ ## Scope
10
+
11
+ - Add init profiles and `init --dry-run`.
12
+ - Move internal templates, state, scans, and runtime folders under `.quiver/`.
13
+ - Stop generating `docs-template/`, `tools/scripts/`, and placeholder specs by default.
14
+ - Preserve full/legacy behavior behind explicit flags.
15
+ - Keep `docs/PROJECT_MAP.md` visible while moving raw scan output to `.quiver/scans/PROJECT_SCAN.json`.
16
+ - Update doctor, no-spec command behavior, documentation, and smokes.
17
+
18
+ ## Files
19
+
20
+ - `src/create-quiver/index.js`
21
+ - `src/create-quiver/commands/ai.js`
22
+ - `src/create-quiver/lib/init-layout.js`
23
+ - `src/create-quiver/lib/init-docs.js`
24
+ - `src/create-quiver/lib/project-scan.js`
25
+ - `src/create-quiver/lib/paths.js`
26
+ - `src/create-quiver/lib/slice.js`
27
+ - `src/create-quiver/lib/doctor.js`
28
+ - `src/create-quiver/lib/state.js`
29
+ - `src/create-quiver/lib/ai/context-packs.js`
30
+ - `scripts/*.sh`
31
+ - `scripts/ci/*`
32
+ - `tests/**/*.test.js`
33
+ - `README.md`
34
+ - `README_FOR_AI.md`
35
+ - `docs/*.template`
36
+ - `specs/quiver-v21-ai-first-layout/**`
37
+
38
+ ## How to Test (DETAILED - REQUIRED)
39
+
40
+ ### Required Environment
41
+
42
+ - Node.js 22.x recommended.
43
+ - npm.
44
+ - Git with worktree support.
45
+ - macOS/Linux shell for local smokes.
46
+ - Windows behavior is covered by `smoke-cross-platform`.
47
+
48
+ ### Worktree Access
49
+
50
+ Use the dedicated spec branch/worktree:
51
+
52
+ ```bash
53
+ git switch docs/QUIVER-21-ai-first-layout
54
+ ```
55
+
56
+ ### Run the Project
57
+
58
+ ```bash
59
+ node bin/create-quiver.js --help
60
+ ```
61
+
62
+ ### Use Cases
63
+
64
+ #### Case 1: Default AI-first init
65
+
66
+ Run `npx create-quiver init --name "Smoke Project"` and confirm it creates the visible onboarding contract without root `docs-template/`, `tools/scripts/`, or placeholder specs.
67
+
68
+ #### Case 2: Explicit compatibility profiles
69
+
70
+ Run init with `--minimal`, `--full`, `--legacy-scripts`, and `--include-templates` in isolated directories and confirm each profile creates only its intended assets.
71
+
72
+ #### Case 3: Analyze and no-spec lifecycle
73
+
74
+ Run `analyze`, `doctor`, `plan`, `graph`, and `next` on a project with no specs yet. Confirm the raw scan is under `.quiver/scans/PROJECT_SCAN.json`, the visible map stays at `docs/PROJECT_MAP.md`, and lifecycle commands return valid no-spec output.
75
+
76
+ #### Case 4: Legacy compatibility
77
+
78
+ Run migrate/doctor against a legacy layout and confirm `docs-template/`, `tools/scripts/`, and legacy `docs/PROJECT_SCAN.json` are preserved or reported as compatibility paths.
79
+
80
+ ### Technical Verification
81
+
82
+ - `node --test tests/**/*.test.js` passed: 143 tests.
83
+ - `npm run smoke:create-quiver` passed.
84
+ - `bash scripts/ci/smoke-init-docs.sh` passed.
85
+ - `node scripts/ci/smoke-cross-platform.js` passed.
86
+ - `npm run smoke:tiered-pack` passed.
87
+ - `git diff --check` passed.
88
+ - GitHub Actions CI passed on validate, macOS, Ubuntu, and Windows: run `26196340530`.
89
+
90
+ ## Evidence
91
+
92
+ - Default/minimal init coverage asserts no root `docs-template/`, no `tools/scripts/`, and no placeholder spec.
93
+ - Evidence details are recorded in `specs/quiver-v21-ai-first-layout/EVIDENCE_REPORT.md`.
94
+ - Slice status is recorded in `specs/quiver-v21-ai-first-layout/STATUS.md`.
95
+ - Windows/Git Bash path handling is covered by `tests/lib/paths.test.js`.
96
+
97
+ ## Rollback
98
+
99
+ - Revert this PR to restore the previous generated layout behavior:
100
+
101
+ ```bash
102
+ git revert <merge-commit-sha>
103
+ ```
104
+
105
+ - Existing projects can continue using legacy-compatible paths via `migrate`, `--full`, `--legacy-scripts`, or `--include-templates`.
106
+
107
+ ## Risks / Notes
108
+
109
+ - Existing projects that depend on legacy generated paths should use `migrate`, `--full`, `--legacy-scripts`, or `--include-templates` intentionally.
110
+ - npm publication should happen only after this PR is merged.
@@ -0,0 +1,30 @@
1
+ # CLOSURE BRIEF - slice-00: Spec foundation
2
+
3
+ ## Resumen de lo realizado
4
+
5
+ Se creo la base documental completa de `quiver-v21-ai-first-layout`: spec, status, evidence report, execution plan, cuerpo de PR y nueve slices con `slice.json`, `EXECUTION_BRIEF.md` y `CLOSURE_BRIEF.md`.
6
+
7
+ ## Validacion contra criterios de aceptacion
8
+
9
+ - [x] Spec incluye criterios aprobados.
10
+ - [x] Plan tecnico aprobado incluido.
11
+ - [x] Todos los slices tienen handoffs.
12
+ - [x] No se modifico codigo de producto.
13
+
14
+ ## Cambios relevantes
15
+
16
+ - `SPEC.md` documenta el layout AI-first y la separacion contrato visible vs maquinaria interna.
17
+ - `EXECUTION_PLAN.md` define olas secuenciales y paralelas.
18
+ - Cada slice tiene brief de ejecucion y cierre.
19
+
20
+ ## Pendientes
21
+
22
+ - Implementar `slice-01` a `slice-08`.
23
+
24
+ ## Riesgos remanentes
25
+
26
+ - El alcance toca init, analyze, doctor, docs y smokes; los merges de olas paralelas pueden requerir coordinacion manual.
27
+
28
+ ## Recomendaciones futuras
29
+
30
+ - Ejecutar las olas en orden y no iniciar documentacion final hasta estabilizar comportamiento.
@@ -0,0 +1,63 @@
1
+ # EXECUTION BRIEF - slice-00: Spec foundation
2
+
3
+ **Spec:** quiver-v21-ai-first-layout
4
+ **Slice:** slice-00-spec-foundation
5
+ **Tipo:** docs
6
+
7
+ ## Contexto
8
+
9
+ Quiver necesita redisenar su layout generado para que el init default sea AI-first y limpio. Este slice publica el contrato aprobado antes de tocar codigo.
10
+
11
+ ## Objetivo
12
+
13
+ Crear y validar la documentacion completa de la spec v21, incluyendo slices y handoffs.
14
+
15
+ ## Alcance
16
+
17
+ - `SPEC.md`
18
+ - `STATUS.md`
19
+ - `EVIDENCE_REPORT.md`
20
+ - `EXECUTION_PLAN.md`
21
+ - `pr.md`
22
+ - `slices/**/slice.json`
23
+ - `slices/**/EXECUTION_BRIEF.md`
24
+ - `slices/**/CLOSURE_BRIEF.md`
25
+
26
+ ## Criterios de aceptacion
27
+
28
+ - La spec incluye criterios aprobados y plan tecnico aprobado.
29
+ - Todos los slices tienen handoffs obligatorios.
30
+ - `slice-00` queda marcado como prerequisito para el resto.
31
+ - No hay cambios de codigo de producto.
32
+
33
+ ## Plan tecnico resumido
34
+
35
+ Crear solo artefactos documentales bajo `specs/quiver-v21-ai-first-layout/`.
36
+
37
+ ## Pasos sugeridos de ejecucion
38
+
39
+ 1. Revisar `README_FOR_AI.md` y specs recientes para mantener el formato local.
40
+ 2. Crear la carpeta de spec.
41
+ 3. Crear archivos raiz de la spec.
42
+ 4. Crear slices con `slice.json` y briefs.
43
+ 5. Validar JSON y whitespace.
44
+
45
+ ## Restricciones
46
+
47
+ - No implementar codigo.
48
+ - No modificar docs fuera de la spec.
49
+ - No publicar release.
50
+
51
+ ## Riesgos
52
+
53
+ - Slices demasiado grandes para ejecutores.
54
+ - Dependencias ambiguas entre slices.
55
+ - Desalineacion con el formato real de Quiver.
56
+
57
+ ## Checklist de finalizacion
58
+
59
+ - [ ] Spec raiz creada.
60
+ - [ ] Execution plan creado.
61
+ - [ ] Todos los slices creados.
62
+ - [ ] Todos los `slice.json` parsean.
63
+ - [ ] `git diff --check` pasa.
@@ -0,0 +1,45 @@
1
+ {
2
+ "slice_id": "slice-00-spec-foundation",
3
+ "ticket": "QUIVER-21-00",
4
+ "type": "docs",
5
+ "title": "Publish AI-first layout spec foundation",
6
+ "objective": "Commit the approved spec, execution plan, PR body, slice definitions, and handoff briefs for the AI-first layout initiative.",
7
+ "description": "This slice is mandatory and must land first so every later executor can work from an approved, versioned handoff.",
8
+ "git": {
9
+ "branch_type": "docs",
10
+ "base_branch": "main",
11
+ "branch_slug": "quiver-21-ai-first-layout-spec-foundation",
12
+ "branch_name": "docs/QUIVER-21-00-ai-first-layout-spec-foundation"
13
+ },
14
+ "files": [
15
+ "specs/quiver-v21-ai-first-layout/**"
16
+ ],
17
+ "depends_on": [],
18
+ "parallel_safe": "no",
19
+ "parallel_safe_reason": "Foundation documentation must be reviewed before implementation slices start.",
20
+ "must": [
21
+ "Create SPEC.md with approved acceptance criteria and technical plan.",
22
+ "Create STATUS.md, EVIDENCE_REPORT.md, EXECUTION_PLAN.md, and pr.md.",
23
+ "Create every slice directory with slice.json, EXECUTION_BRIEF.md, and CLOSURE_BRIEF.md.",
24
+ "Keep scope limited to documentation artifacts."
25
+ ],
26
+ "not_included": [
27
+ "Product code changes.",
28
+ "Generated project behavior changes.",
29
+ "Release or npm publication."
30
+ ],
31
+ "acceptance": [
32
+ "Spec documents the visible-vs-internal layout decision.",
33
+ "Every slice has an EXECUTION_BRIEF and CLOSURE_BRIEF at its slice root.",
34
+ "Execution plan names sequential and parallel levels.",
35
+ "All slice.json files parse as valid JSON."
36
+ ],
37
+ "tests": [
38
+ "find specs/quiver-v21-ai-first-layout/slices -name 'slice.json' -print -exec node -e \"JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))\" {} \\;",
39
+ "git diff --check"
40
+ ],
41
+ "estimated_hours": 2,
42
+ "actual_hours": 2,
43
+ "status": "completed",
44
+ "blocked_reason": null
45
+ }