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,59 @@
1
+ {
2
+ "slice_id": "slice-09-post-merge-cleanup-release-safety",
3
+ "ticket": "QUIVER-22-09",
4
+ "type": "feature",
5
+ "title": "Post-merge cleanup and release safety",
6
+ "objective": "Safely close merged spec worktrees and prevent local AI/tool state from entering npm packages.",
7
+ "description": "Add post-merge lifecycle checks and release/package safety guards for secrets, env files, npm credentials, and local AI tool directories.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "post-merge-cleanup-release-safety",
12
+ "branch_name": "feature/QUIVER-22-09-post-merge-cleanup-release-safety"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/index.js",
16
+ "src/create-quiver/lib/lifecycle.js",
17
+ "src/create-quiver/lib/git.js",
18
+ "src/create-quiver/lib/spec-worktrees.js",
19
+ "src/create-quiver/lib/package-safety.js",
20
+ "scripts/release-quiver.sh",
21
+ ".npmignore",
22
+ "tests/commands/spec-close.test.js",
23
+ "tests/lib/package-safety.test.js"
24
+ ],
25
+ "depends_on": [
26
+ "slice-07-execution-waves-delegation",
27
+ "slice-08-pr-create-gh-ssh"
28
+ ],
29
+ "parallel_safe": "no",
30
+ "parallel_safe_reason": "Cleanup and release safety must integrate final workflow state and PR behavior.",
31
+ "must": [
32
+ "Refuse normal cleanup before PR merge is confirmed.",
33
+ "Refuse cleanup when the worktree is dirty unless explicit discard behavior is used.",
34
+ "Remove the spec worktree after safe confirmation.",
35
+ "Pull merged changes into the main local checkout.",
36
+ "Fail package/release safety if local settings, env files, npm credentials, or AI tool local state would enter the tarball.",
37
+ "Keep destructive operations explicit and recoverable."
38
+ ],
39
+ "not_included": [
40
+ "Merging PRs.",
41
+ "Deleting remote branches without explicit existing workflow support.",
42
+ "Publishing a new npm version."
43
+ ],
44
+ "acceptance": [
45
+ "Unmerged PR blocks normal spec cleanup.",
46
+ "Dirty worktree blocks normal spec cleanup.",
47
+ "Merged clean spec can be closed and main checkout can be pulled.",
48
+ "Release/package safety fails when unsafe local files would be packaged.",
49
+ "Release/package safety passes when unsafe paths are ignored or absent."
50
+ ],
51
+ "tests": [
52
+ "node --test tests/commands/spec-close.test.js tests/lib/package-safety.test.js",
53
+ "npm pack --dry-run",
54
+ "git diff --check"
55
+ ],
56
+ "estimated_hours": 8,
57
+ "status": "completed",
58
+ "blocked_reason": null
59
+ }
@@ -0,0 +1,34 @@
1
+ # CLOSURE BRIEF - slice-10: Final docs, smokes, and release readiness
2
+
3
+ ## Resumen de lo realizado
4
+
5
+ - Se actualizaron README, README_FOR_AI, CHANGELOG, ROADMAP, BACKLOG y templates generados para presentar el guided AI workflow como disponible.
6
+ - Se alinearon los snippets de onboarding con aprobaciones persistidas, `spec start`, ejecución por olas, PR con `pr.md` y cierre de worktree.
7
+ - Se agregó `smoke:guided-workflow` y se reforzaron los smokes existentes para el contrato real post-`analyze`, scripts nuevos y `slice-00` obligatorio.
8
+ - `docs/AI_CONTEXT.md` refrescado por `analyze` conserva front matter para mantener el contrato token-efficient.
9
+ - Se actualizaron STATUS, EVIDENCE_REPORT y el estado del slice.
10
+
11
+ ## Validacion contra criterios de aceptacion
12
+
13
+ - [x] Docs finales listas.
14
+ - [x] Smokes listas.
15
+ - [x] STATUS/EVIDENCE actualizados.
16
+ - [x] No se publico npm.
17
+
18
+ ## Cambios relevantes
19
+
20
+ - Root docs y templates muestran `prepare`, `ai approve`, `ai execute-plan`, `ai pr --input`, `spec start/status/close` y commit opt-in.
21
+ - Scripts de smoke cubren flujo guiado, creación/migración, package safety y fixtures con `slice-00`.
22
+ - El package dry-run pasó usando cache temporal por permisos rotos en la cache global de npm.
23
+
24
+ ## Pendientes
25
+
26
+ - Publicar una nueva version npm queda fuera de este slice y debe hacerse con el flujo de release.
27
+
28
+ ## Riesgos remanentes
29
+
30
+ - La cache global `~/.npm` tiene archivos root-owned; `npm pack --dry-run` requiere cache temporal o corregir permisos localmente.
31
+
32
+ ## Recomendaciones futuras
33
+
34
+ - Ejecutar `npm run release:quiver` o `bash scripts/release-quiver.sh ...` solo despues de revisar este PR y decidir el bump.
@@ -0,0 +1,58 @@
1
+ # EXECUTION BRIEF - slice-10: Final docs, smokes, and release readiness
2
+
3
+ **Spec:** quiver-v22-guided-ai-workflow
4
+ **Slice:** slice-10-docs-smokes-release-readiness
5
+ **Tipo:** docs-test
6
+
7
+ ## Contexto
8
+
9
+ Cuando todas las piezas existen, hay que actualizar la documentacion publica, templates generados, smokes y evidencia.
10
+
11
+ ## Objetivo
12
+
13
+ Cerrar la feature con docs completas, pruebas y readiness de release sin publicar.
14
+
15
+ ## Alcance
16
+
17
+ - README y guia IA.
18
+ - Templates/docs generados.
19
+ - Smoke tests.
20
+ - STATUS/EVIDENCE_REPORT.
21
+ - Checklist de release.
22
+
23
+ ## Criterios de aceptacion
24
+
25
+ - Docs muestran el flujo como disponible.
26
+ - Smokes cubren happy path y fallas principales.
27
+ - Evidencia actualizada.
28
+ - No se publica npm.
29
+
30
+ ## Plan tecnico resumido
31
+
32
+ Actualizar docs y templates despues de terminar comportamiento, luego ejecutar suite amplia y registrar evidencia.
33
+
34
+ ## Pasos sugeridos de ejecucion
35
+
36
+ 1. Revisar todos los comandos implementados.
37
+ 2. Actualizar README y README_FOR_AI.
38
+ 3. Actualizar generated docs/templates.
39
+ 4. Agregar smokes.
40
+ 5. Ejecutar tests.
41
+ 6. Actualizar STATUS/EVIDENCE_REPORT.
42
+
43
+ ## Restricciones
44
+
45
+ - No publicar npm.
46
+ - No abrir PR si no se pidio.
47
+
48
+ ## Riesgos
49
+
50
+ - Documentar comandos con nombres distintos a los implementados.
51
+ - Smokes demasiado dependientes de herramientas reales.
52
+
53
+ ## Checklist de finalizacion
54
+
55
+ - [ ] Docs finales actualizadas.
56
+ - [ ] Templates actualizados.
57
+ - [ ] Smokes agregados.
58
+ - [ ] Evidencia final registrada.
@@ -0,0 +1,60 @@
1
+ {
2
+ "slice_id": "slice-10-docs-smokes-release-readiness",
3
+ "ticket": "QUIVER-22-10",
4
+ "type": "docs-test",
5
+ "title": "Final docs, smokes, and release readiness",
6
+ "objective": "Finish the guided workflow with updated user docs, generated templates, smoke coverage, and release readiness evidence.",
7
+ "description": "Update public docs and generated project templates, add end-to-end smoke coverage, and confirm the feature is ready for release without publishing.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "guided-workflow-release-readiness",
12
+ "branch_name": "feature/QUIVER-22-10-guided-workflow-release-readiness"
13
+ },
14
+ "files": [
15
+ "README.md",
16
+ "README_FOR_AI.md",
17
+ "CHANGELOG.md",
18
+ "src/create-quiver/lib/init-docs.js",
19
+ "src/create-quiver/lib/init-layout.js",
20
+ "tests/commands/*.test.js",
21
+ "scripts/ci/*.sh",
22
+ "specs/quiver-v22-guided-ai-workflow/STATUS.md",
23
+ "specs/quiver-v22-guided-ai-workflow/EVIDENCE_REPORT.md"
24
+ ],
25
+ "depends_on": [
26
+ "slice-09-post-merge-cleanup-release-safety"
27
+ ],
28
+ "parallel_safe": "no",
29
+ "parallel_safe_reason": "Final docs and smokes must run after all behavior slices are complete.",
30
+ "must": [
31
+ "Document the finished guided workflow in root docs.",
32
+ "Update generated project docs/templates where users see commands.",
33
+ "Add smoke coverage for the happy path and major failure paths.",
34
+ "Update STATUS and EVIDENCE_REPORT.",
35
+ "Run full relevant test suite.",
36
+ "Do not publish npm in this slice."
37
+ ],
38
+ "not_included": [
39
+ "Changing feature behavior after acceptance unless a blocking bug is found.",
40
+ "Publishing a release.",
41
+ "Merging PR."
42
+ ],
43
+ "acceptance": [
44
+ "README shows the guided AI workflow as available behavior.",
45
+ "Generated docs mention prepare, approvals, executor commits, PR creation, and cleanup.",
46
+ "Smoke tests cover dry-run preparation, approvals, execution waves, PR dry-run, cleanup dry-run, and package safety.",
47
+ "STATUS and EVIDENCE_REPORT reflect completed slices.",
48
+ "Release checklist is ready but no npm publish is performed."
49
+ ],
50
+ "tests": [
51
+ "node --test tests/**/*.test.js",
52
+ "npm run smoke:create-quiver",
53
+ "npm run smoke:tiered-pack",
54
+ "npm pack --dry-run",
55
+ "git diff --check"
56
+ ],
57
+ "estimated_hours": 6,
58
+ "status": "completed",
59
+ "blocked_reason": null
60
+ }
@@ -0,0 +1,80 @@
1
+ # Evidence Report - Quiver v23 Guided Flow Productization
2
+
3
+ ## Status
4
+
5
+ Spec foundation is created. `slice-00` through `slice-10` are completed.
6
+
7
+ ## Slice Evidence
8
+
9
+ | Slice | Evidence |
10
+ |-------|----------|
11
+ | slice-00 | Spec foundation files created. All `slice.json` files parse successfully and `git diff --check` passed. |
12
+ | slice-01 | Added `quiver` as a package binary alias, added read-only `flow` command, generated `quiver:flow` script, docs, and command tests. |
13
+ | slice-02 | Expanded `flow` into a status wizard that reports uninitialized, context-needed, criteria approval, technical-plan approval, spec generation, slice execution, blocked slice graph, and PR-ready states. |
14
+ | slice-03 | Added `.quiver/agents/profiles.json`, `ai agent set/list/show`, provider validation, free-form model labels, profile-backed provider defaults, docs, and tests. |
15
+ | slice-04 | Added a packaged planner onboarding template, shared context plan, prepare report selected docs/debt/omissions, index-first generated prompt, and tests. |
16
+ | slice-05 | Added versioned drafts under `.quiver/approvals/<phase>/drafts/`, `ai approve --version`, status history output, and approval blocking against stale versions. |
17
+ | slice-06 | Added `ai review-plan`, review prompt metadata, persisted `.quiver/approvals/plan-review/` artifacts, flow guidance before technical-plan approval, and a spec-generation gate that requires the reviewed technical-plan version to be approved. |
18
+ | slice-07 | Added `npx create-quiver spec create`, generated `quiver:spec:create` scripts, dry-run preview, collision checks, next safe commands, and docs/tests for creating specs from reviewed approved technical plans. |
19
+ | slice-08 | Added `npx create-quiver ai prompt-slice`, generated `quiver:ai:prompt-slice` scripts, minimal SPEC excerpts, required closure brief handling, final report format, docs/templates, and tests for manual executor prompts. |
20
+ | slice-09 | Added `--mode manual` and `--mode delegated` for `ai execute-plan`, dry-run prompt/execute commands, delegated temporary worktrees for parallel-ready waves, sequential fallback for unsafe scopes, one-commit integration, recovery guidance, docs, and tests. |
21
+ | slice-10 | Updated README, README_FOR_AI, CHANGELOG, ROADMAP, BACKLOG, generated docs/templates, smoke coverage, release readiness checklist, final status/evidence, and confirmed no npm publish was performed. |
22
+
23
+ ## Validation Log
24
+
25
+ - 2026-05-21: `find specs/quiver-v23-guided-flow-productization -name "slice.json" -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;`
26
+ - 2026-05-21: `git diff --check`
27
+ - 2026-05-21: `node --test tests/commands/flow.test.js tests/commands/init-profiles.test.js tests/commands/prepare.test.js`
28
+ - 2026-05-21: `node bin/create-quiver.js flow --json`
29
+ - 2026-05-21: `node --test tests/commands/flow.test.js tests/lib/doctor.test.js`
30
+ - 2026-05-21: `git diff --check`
31
+ - 2026-05-21: `node --test tests/lib/agent-profiles.test.js tests/commands/ai-agent.test.js tests/commands/flow.test.js tests/commands/ai-onboard.test.js tests/commands/ai-plan.test.js tests/commands/ai-execute-slice.test.js tests/commands/ai-execute-plan.test.js`
32
+ - 2026-05-21: `git diff --check`
33
+ - 2026-05-21: `node --test tests/commands/prepare.test.js tests/commands/ai-onboard.test.js tests/lib/ai-safety.test.js`
34
+ - 2026-05-21: `git diff --check`
35
+ - 2026-05-21: `node --test tests/lib/approvals.test.js tests/commands/ai-plan.test.js tests/commands/ai-plan-spec-phase.test.js`
36
+ - 2026-05-21: `git diff --check`
37
+ - 2026-05-21: `node --test tests/commands/ai-review-plan.test.js`
38
+ - 2026-05-21: `node --test tests/commands/doctor.test.js tests/lib/init-docs.test.js tests/lib/init-layout.test.js tests/lib/package-safety.test.js tests/commands/flow.test.js tests/commands/ai-review-plan.test.js tests/commands/ai-plan-spec-phase.test.js tests/commands/ai-plan.test.js`
39
+ - 2026-05-21: `node --test tests/**/*.test.js`
40
+ - 2026-05-21: `git diff --check`
41
+ - 2026-05-21: `find specs/quiver-v23-guided-flow-productization -name slice.json -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;`
42
+ - 2026-05-21: `npm run smoke:create-quiver`
43
+ - 2026-05-21: `npm run smoke:tiered-pack`
44
+ - 2026-05-21: `npm run smoke:guided-workflow`
45
+ - 2026-05-21: `npm run smoke:create-quiver`
46
+ - 2026-05-21: `npm pack --dry-run` failed because the user npm cache under `~/.npm` contains root-owned files.
47
+ - 2026-05-21: `npm --cache /private/tmp/quiver-npm-cache pack --dry-run`
48
+ - 2026-05-21: `npm run smoke:tiered-pack`
49
+
50
+ ## Release Readiness Checklist
51
+
52
+ - [x] Root README documents the guided flow as available behavior.
53
+ - [x] Generated docs mention flow status, profiles, onboarding, review-plan, spec create, executor prompts, delegated execution, PR creation, and cleanup.
54
+ - [x] Guided workflow smoke covers flow status, profiles, onboarding, planner iterations, review-plan, spec create, executor prompt dry-run, delegated execution dry-run, PR dry-run, cleanup dry-run, and package safety.
55
+ - [x] Package dry-run succeeded with an isolated npm cache.
56
+ - [x] No npm publish was performed in this slice.
57
+ - 2026-05-21: `node --test tests/lib/ai-execution-plan.test.js tests/commands/ai-execute-plan.test.js tests/commands/ai-execute-slice.test.js`
58
+ - 2026-05-21: `node --test tests/lib/ai-execution-plan.test.js tests/commands/ai-execute-plan.test.js tests/commands/ai-execute-slice.test.js tests/lib/init-docs.test.js tests/lib/init-layout.test.js`
59
+ - 2026-05-21: `node --test tests/**/*.test.js`
60
+ - 2026-05-21: `git diff --check`
61
+ - 2026-05-21: `find specs/quiver-v23-guided-flow-productization -name slice.json -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;`
62
+ - 2026-05-21: `npm run smoke:create-quiver`
63
+ - 2026-05-21: `npm run smoke:tiered-pack`
64
+ - 2026-05-21: `node --test tests/commands/ai-execute-slice.test.js tests/lib/ai-executor.test.js tests/lib/init-docs.test.js tests/lib/init-layout.test.js`
65
+ - 2026-05-21: `node --test tests/**/*.test.js`
66
+ - 2026-05-21: `git diff --check`
67
+ - 2026-05-21: `find specs/quiver-v23-guided-flow-productization -name slice.json -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;`
68
+ - 2026-05-21: `npm run smoke:create-quiver`
69
+ - 2026-05-21: `npm run smoke:tiered-pack`
70
+ - 2026-05-21: `node --test tests/commands/spec-create.test.js tests/commands/flow.test.js tests/commands/ai-plan-spec-phase.test.js tests/lib/ai-spec-generator.test.js tests/lib/init-layout.test.js`
71
+ - 2026-05-21: `node --test tests/commands/spec-create.test.js tests/commands/flow.test.js tests/lib/ai-spec-generator.test.js tests/commands/ai-plan-spec-phase.test.js tests/lib/init-docs.test.js tests/lib/init-layout.test.js`
72
+ - 2026-05-21: `node --test tests/**/*.test.js`
73
+ - 2026-05-21: `git diff --check`
74
+ - 2026-05-21: `find specs/quiver-v23-guided-flow-productization -name slice.json -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;`
75
+ - 2026-05-21: `npm run smoke:create-quiver`
76
+ - 2026-05-21: `npm run smoke:tiered-pack`
77
+
78
+ ## Notes
79
+
80
+ This report must be updated by each slice executor with commands run, results, risks, and follow-up work.
@@ -0,0 +1,80 @@
1
+ # Execution Plan - Quiver v23 Guided Flow Productization
2
+
3
+ ## Rule
4
+
5
+ `slice-00` is mandatory and must be committed first. It establishes the spec foundation in the repo.
6
+
7
+ ## Recommended Wave Plan
8
+
9
+ This is the safe default plan. It favors reliable integration over speed because several slices will touch command routing, docs, and shared AI workflow state.
10
+
11
+ | Wave | Mode | Slices | Why |
12
+ |------|------|--------|-----|
13
+ | 0 | Sequential | `slice-00-spec-foundation` | Publishes the spec foundation, handoffs, execution plan, and PR body. |
14
+ | 1 | Sequential | `slice-01-short-command-and-flow-entrypoint` | Establishes the command surface before adding higher-level flow behavior. |
15
+ | 2 | Sequential | `slice-02-flow-status-wizard` | Adds the next-step guide that later slices can extend. |
16
+ | 3 | Sequential | `slice-03-agent-profiles` | Adds planner/executor/reviewer profile state before using those profiles in prompts. |
17
+ | 4 | Sequential | `slice-04-context-preparation-onboarding` | Productizes onboarding prompts after profiles and flow status exist. |
18
+ | 5 | Sequential | `slice-05-planner-iteration-history` | Adds versioned drafts and approvals before plan review and spec creation. |
19
+ | 6 | Sequential | `slice-06-production-plan-review` | Adds the production-readiness review gate before spec generation. |
20
+ | 7 | Sequential | `slice-07-spec-create-experience` | Builds on approved and reviewed plans to create specs predictably. |
21
+ | 8 | Sequential | `slice-08-executor-prompt-generation` | Generates minimal manual executor prompts after spec/slice shape is stable. |
22
+ | 9 | Sequential | `slice-09-delegated-slice-execution` | Adds the highest-risk delegated execution behavior after all prerequisites exist. |
23
+ | 10 | Sequential | `slice-10-docs-smokes-release-readiness` | Final docs and smokes must run last. |
24
+
25
+ ## Parallelization Assessment
26
+
27
+ Default recommendation: execute sequentially.
28
+
29
+ Optional parallel work is possible only after `slice-03` if file ownership is split:
30
+
31
+ | Optional Wave | Mode | Slices | Condition |
32
+ |---------------|------|--------|-----------|
33
+ | 4A | Parallel | `slice-04-context-preparation-onboarding` + `slice-05-planner-iteration-history` | Only if command routing changes are isolated and shared state files are not edited by both slices. |
34
+ | 8A | Parallel | `slice-08-executor-prompt-generation` + docs draft work for `slice-10` | Only if docs work does not depend on final delegated behavior. |
35
+
36
+ If file scopes overlap or are unknown, fall back to sequential execution.
37
+
38
+ ## Dependency Graph
39
+
40
+ ```mermaid
41
+ flowchart TD
42
+ S00[slice-00 spec foundation] --> S01[slice-01 short command and flow entrypoint]
43
+ S01 --> S02[slice-02 flow status wizard]
44
+ S02 --> S03[slice-03 agent profiles]
45
+ S03 --> S04[slice-04 context preparation onboarding]
46
+ S04 --> S05[slice-05 planner iteration history]
47
+ S05 --> S06[slice-06 production plan review]
48
+ S06 --> S07[slice-07 spec create experience]
49
+ S07 --> S08[slice-08 executor prompt generation]
50
+ S08 --> S09[slice-09 delegated slice execution]
51
+ S09 --> S10[slice-10 docs smokes release readiness]
52
+ ```
53
+
54
+ ## Suggested Commit Order
55
+
56
+ 1. `docs(spec): add guided flow productization spec`
57
+ 2. `feat(cli): add quiver flow entrypoint`
58
+ 3. `feat(flow): show next safe workflow step`
59
+ 4. `feat(ai): persist agent profiles`
60
+ 5. `feat(ai): productize context onboarding`
61
+ 6. `feat(ai): version planner drafts and approvals`
62
+ 7. `feat(ai): review technical plans for production readiness`
63
+ 8. `feat(spec): create specs from reviewed approved plans`
64
+ 9. `feat(ai): generate minimal executor prompts`
65
+ 10. `feat(ai): delegate slice execution safely`
66
+ 11. `docs(ai): document guided flow and add smokes`
67
+
68
+ ## Executor Assignment
69
+
70
+ - Keep `slice-00`, `slice-01`, `slice-02`, `slice-06`, `slice-09`, and `slice-10` with a stronger planner/reviewer because they affect user flow, safety, or integration.
71
+ - `slice-03`, `slice-04`, `slice-05`, `slice-07`, and `slice-08` can be executed by cheaper code-focused agents if their file scopes are clear.
72
+ - Do not delegate parallel slices unless write sets are disjoint.
73
+
74
+ ## Integration Notes
75
+
76
+ - Do not start implementation slices before `slice-00` is committed.
77
+ - Keep provider calls mocked in automated tests.
78
+ - Keep real provider CLI checks manual or dry-run only.
79
+ - Preserve existing `npx create-quiver` commands.
80
+ - Treat `quiver` as an alias unless a deliberate package decision changes that.
@@ -0,0 +1,203 @@
1
+ # Quiver v23 - Guided Flow Productization
2
+
3
+ **Date:** 2026-05-21
4
+ **Status:** Completed
5
+
6
+ Slice numbering resets here. This spec intentionally starts at `slice-00`.
7
+
8
+ ## Problem
9
+
10
+ Quiver already has the core AI workflow pieces: project preparation, analysis, planner phases, approvals, spec generation, slice execution, execution waves, PR creation, and worktree cleanup.
11
+
12
+ The remaining friction is product experience. Users still need to remember the sequence, paste long prompts, choose planner/executor agents manually, know when to approve or iterate, and decide how to delegate slices safely.
13
+
14
+ The desired product experience is a guided flow:
15
+
16
+ 1. Run one Quiver command.
17
+ 2. Prepare project context for AI onboarding.
18
+ 3. Configure planner and executor agents.
19
+ 4. Let the planner onboard from generated docs.
20
+ 5. Generate, revise, and approve acceptance criteria.
21
+ 6. Generate, revise, production-review, and approve the technical plan.
22
+ 7. Generate spec, slices, handoffs, execution plan, and `pr.md`.
23
+ 8. Execute `slice-00` first.
24
+ 9. Execute later slices sequentially or in parallel when safe.
25
+ 10. Create one commit per slice.
26
+ 11. Open one PR per spec.
27
+ 12. Close the spec worktree after merge and pull the main checkout.
28
+
29
+ ## Objective
30
+
31
+ Turn Quiver from a set of capable commands into a guided AI-first product flow that reduces prompt pasting, saves tokens, preserves human approvals, and makes the next safe step obvious.
32
+
33
+ ## Core Decisions
34
+
35
+ - `README_FOR_AI.md` remains the source of truth for Quiver workflow guidance in this repo.
36
+ - The canonical package remains `create-quiver`; this spec may introduce a `quiver` binary alias only if it forwards to the same CLI behavior.
37
+ - `.quiver/` stores local workflow state, drafts, approvals, agent profiles, and runs.
38
+ - `docs/` stores visible project context.
39
+ - `specs/` stores durable spec, slice, handoff, execution plan, and PR artifacts.
40
+ - Planner agents use broad context and do not modify product code.
41
+ - Executor agents use slice-bounded context and may modify product code only inside the approved slice scope.
42
+ - Human approval remains mandatory for acceptance criteria, technical plans, and PR merge.
43
+ - `slice-00` is mandatory for every spec and must land before implementation slices.
44
+ - One spec maps to one worktree and one PR.
45
+ - One slice maps to one commit.
46
+
47
+ ## Scope
48
+
49
+ ### Included
50
+
51
+ - Add a short `quiver` command experience or a documented alias that does not contradict `npx create-quiver`.
52
+ - Add a guided flow/status command that tells the user the current stage and next safe command.
53
+ - Add planner, executor, reviewer, and optional researcher agent profiles.
54
+ - Add setup and validation for provider CLI choices without silently installing tools.
55
+ - Add a context-preparation command focused on token-efficient AI onboarding.
56
+ - Convert the user's long onboarding, planning, review, executor, delegation, and PR prompts into maintained Quiver prompt templates.
57
+ - Persist planner drafts, revised versions, approved artifacts, and review results.
58
+ - Add a production-readiness plan review phase before spec generation.
59
+ - Improve spec creation UX so approved inputs generate spec artifacts predictably.
60
+ - Generate minimal executor prompts for manual slice assignment.
61
+ - Add a delegated slice execution mode that uses safe waves, cheap executor profiles, isolated worktrees where needed, and one commit per slice.
62
+ - Add final PR and cleanup guidance around the generated `pr.md`, `gh`, SSH aliases, and spec worktrees.
63
+ - Add docs and smokes that demonstrate the full guided flow.
64
+
65
+ ### Excluded
66
+
67
+ - Fully autonomous PR merge.
68
+ - Silent installation of `gh`, provider CLIs, or SSH keys.
69
+ - Direct provider API integrations.
70
+ - Guaranteeing provider-specific sub-agent spawning when the local CLI does not support it.
71
+ - Running real paid provider calls in CI.
72
+ - Replacing human approval for criteria, plans, or PR review.
73
+
74
+ ## Acceptance Criteria
75
+
76
+ 1. Given a user installs or runs Quiver, when they request the guided flow, then Quiver exposes a clear short command path or documented alias without contradicting `npx create-quiver`.
77
+ 2. Given a project has Quiver state, when the flow status command runs, then it reports the current stage, blockers, and next safe command.
78
+ 3. Given a project is not initialized, when the flow status command runs, then it recommends initialization instead of failing with low-level errors.
79
+ 4. Given the user wants token-efficient onboarding, when context preparation runs, then Quiver refreshes project docs, reports assumptions and risks, and excludes secrets, generated files, dependency folders, and local AI state.
80
+ 5. Given the user has preferred planner and executor models, when agent profiles are configured, then Quiver persists planner, executor, reviewer, and optional researcher choices under `.quiver/`.
81
+ 6. Given a configured provider CLI is missing or unauthenticated, when diagnostics run, then Quiver prints OS-aware guidance and does not modify credentials silently.
82
+ 7. Given a planner onboarding command runs in dry-run mode, then Quiver prints provider, role, context pack, prompt source, and token-relevant metadata without calling the provider.
83
+ 8. Given requirements input exists, when acceptance criteria generation runs, then Quiver stores the output as a draft and does not advance until approved.
84
+ 9. Given the user revises criteria multiple times, when drafts are listed, then Quiver shows the available versions and which one is approved.
85
+ 10. Given acceptance criteria are approved, when technical planning starts, then Quiver uses the approved criteria by default.
86
+ 11. Given a technical plan is generated, when production review runs, then Quiver reports fragile assumptions, ambiguous criteria, missing cases, and recommended fixes without changing product code.
87
+ 12. Given a reviewed technical plan is not approved, when spec generation is requested, then Quiver blocks and explains the missing approval.
88
+ 13. Given a reviewed plan is approved, when spec creation runs, then Quiver creates `SPEC.md`, `STATUS.md`, `EVIDENCE_REPORT.md`, `EXECUTION_PLAN.md`, `pr.md`, mandatory `slice-00`, and per-slice handoffs.
89
+ 14. Given a spec has generated slices, when execution planning runs, then `slice-00` is first and later slices are blocked until `slice-00` is committed.
90
+ 15. Given a slice is assigned manually, when executor prompt generation runs, then Quiver outputs only the slice objective, minimal context, allowed files, constraints, acceptance criteria, validation commands, and final report format.
91
+ 16. Given a delegated execution plan is requested, when slices have overlapping or unknown file scopes, then Quiver falls back to sequential execution.
92
+ 17. Given delegated execution runs later slices in parallel, when it writes code, then each executor works in an isolated safe workspace or otherwise cannot overlap writes.
93
+ 18. Given a slice passes provider, scope, and validation checks with commit enabled, then Quiver creates exactly one commit for that slice.
94
+ 19. Given all required slices are complete, when PR creation runs, then Quiver validates `gh`, auth, branch, remote, clean state, SSH alias, identity file, and generated `pr.md`.
95
+ 20. Given the PR is merged and the spec worktree is clean, when cleanup runs, then Quiver removes the spec worktree and pulls the main checkout.
96
+ 21. Given docs and generated templates are updated, when smokes run, then the full guided flow is covered without real paid provider calls.
97
+
98
+ ## Approved Technical Plan
99
+
100
+ ### Objective
101
+
102
+ Add a productized flow layer on top of the v22 command foundation.
103
+
104
+ ### Approach
105
+
106
+ Prefer thin orchestration wrappers over replacing proven commands. The new flow layer should call or reuse the existing command libraries for analysis, provider execution, approvals, spec generation, execution plans, PR creation, and cleanup.
107
+
108
+ Recommended areas:
109
+
110
+ ```text
111
+ bin/quiver.js
112
+ src/create-quiver/commands/flow.js
113
+ src/create-quiver/commands/agent.js
114
+ src/create-quiver/lib/flow-state.js
115
+ src/create-quiver/lib/agent-profiles.js
116
+ src/create-quiver/lib/prompt-templates.js
117
+ src/create-quiver/lib/planner-history.js
118
+ src/create-quiver/lib/plan-review.js
119
+ src/create-quiver/lib/executor-prompts.js
120
+ src/create-quiver/lib/delegation.js
121
+ ```
122
+
123
+ Exact file names may change if existing modules provide a better fit.
124
+
125
+ ### Product Flow
126
+
127
+ The desired command experience should be understandable without reading long prompts:
128
+
129
+ ```bash
130
+ quiver init --name "Project Name"
131
+ quiver flow
132
+ quiver prepare
133
+ quiver ai agent set planner --provider claude --model opus
134
+ quiver ai agent set executor --provider codex --model gpt-5.4-mini
135
+ quiver ai onboard
136
+ quiver ai criteria --input requirements.md
137
+ quiver ai approve criteria
138
+ quiver ai plan
139
+ quiver ai review-plan
140
+ quiver ai approve plan
141
+ quiver spec create
142
+ quiver spec start
143
+ quiver slices plan
144
+ quiver slices run --mode manual
145
+ quiver slices run --mode delegated
146
+ quiver pr create
147
+ quiver spec close
148
+ ```
149
+
150
+ The existing `npx create-quiver ...` commands must continue working.
151
+
152
+ ### Prompt Strategy
153
+
154
+ - Keep README snippets short.
155
+ - Store detailed prompt contracts as templates in the package.
156
+ - Generate task-specific prompts from state and slice artifacts.
157
+ - Do not send full specs to executor agents unless the slice explicitly needs it.
158
+ - Record assumptions, risks, and files read in outputs where relevant.
159
+
160
+ ### Safety Rules
161
+
162
+ - Dry-run first for provider and PR operations.
163
+ - No product code changes before approved slice execution.
164
+ - No spec generation before approved and reviewed plan.
165
+ - No parallel execution when scopes conflict or are unknown.
166
+ - No commit before validation.
167
+ - No cleanup before merge confirmation.
168
+ - No silent credential, SSH, or tool installation.
169
+
170
+ ## Slicing Strategy
171
+
172
+ `slice-00` lands first and only publishes this spec foundation. Later slices are ordered from user-facing command clarity to higher-risk delegated execution. Delegated parallel execution is intentionally late because it depends on command routing, agent profiles, prompt generation, slice status, and scope safety.
173
+
174
+ ## Slice Roadmap
175
+
176
+ | Slice | Title | Status | Dependencies |
177
+ |-------|-------|--------|--------------|
178
+ | slice-00 | Spec foundation and guided flow planning artifacts | Completed | none |
179
+ | slice-01 | Short command and guided flow entrypoint | Completed | slice-00 |
180
+ | slice-02 | Flow status and next-step wizard | Completed | slice-01 |
181
+ | slice-03 | Agent profiles for planner, executor, reviewer, and researcher | Completed | slice-02 |
182
+ | slice-04 | Context preparation and onboarding prompt productization | Completed | slice-03 |
183
+ | slice-05 | Planner iteration history for criteria and plans | Completed | slice-04 |
184
+ | slice-06 | Production-readiness plan review phase | Completed | slice-05 |
185
+ | slice-07 | Spec creation experience from approved plans | Completed | slice-06 |
186
+ | slice-08 | Executor prompt generation for manual slice assignment | Completed | slice-07 |
187
+ | slice-09 | Delegated slice execution with safe workspaces | Completed | slice-08 |
188
+ | slice-10 | Final docs, smokes, and release readiness | Completed | slice-09 |
189
+
190
+ ## Risks
191
+
192
+ - A short `quiver` command can create package naming confusion if not documented carefully.
193
+ - Agent model names are provider-specific and may change over time.
194
+ - Delegated parallel execution can corrupt work if isolation and conflict checks are weak.
195
+ - Storing too much prompt history can add noise and token cost.
196
+ - Provider CLIs may not support true sub-agent delegation; manual prompt generation must remain a first-class fallback.
197
+ - Over-automation can hide important human approval points.
198
+
199
+ ## Open Questions
200
+
201
+ - Should reviewed technical plans require a separate approval artifact, or can the approved plan include the review result?
202
+ - Should delegated execution create temporary worktrees per slice by default, even for sequential slices?
203
+ - Should final PR creation be owned by the planner profile, the default CLI, or a dedicated reviewer profile?
@@ -0,0 +1,39 @@
1
+ # Quiver v23 - Guided Flow Productization Status
2
+
3
+ **Status:** Completed
4
+ **Created:** 2026-05-21
5
+
6
+ ## Summary
7
+
8
+ This spec productizes the user's current prompt-driven workflow into first-class Quiver commands and templates. The goal is to reduce prompt pasting, preserve WDD/SDD approvals, guide the user through the next safe step, and support planner/executor agent roles with lower token cost.
9
+
10
+ ## Current State
11
+
12
+ - Requirements and product direction: approved in conversation.
13
+ - Spec and slice handoffs: created in this documentation pass.
14
+ - `slice-00`: completed.
15
+ - `slice-01`: completed. Added the `quiver` binary alias, read-only `flow` command, docs, generated script, and tests.
16
+ - `slice-02`: completed. Expanded `flow` into a read-only wizard that reads context docs, approvals, specs, slices, and blockers.
17
+ - `slice-03`: completed. Added reusable planner, executor, reviewer, and researcher agent profiles under `.quiver/agents/profiles.json`.
18
+ - `slice-04`: completed. Added packaged index-first onboarding prompt generation and context preparation reporting.
19
+ - `slice-05`: completed. Added versioned planner draft history and explicit approval by draft version.
20
+ - `slice-06`: completed. Added `ai review-plan`, persisted plan review state, flow guidance, and spec-generation gating for reviewed and approved technical plans.
21
+ - `slice-07`: completed. Added explicit `spec create` command, generated `quiver:spec:create` script, next-command output, docs, and tests.
22
+ - `slice-08`: completed. Added `ai prompt-slice` / `executor-prompt` to print minimal manual executor prompts from slice artifacts without calling providers.
23
+ - `slice-09`: completed. Added manual/delegated execution modes, prompt commands in dry-runs, delegated temporary worktrees for parallel-ready waves, and commit integration back into the active checkout.
24
+ - `slice-10`: completed. Updated root docs, generated docs/templates, roadmap/backlog/changelog, smoke coverage, release readiness evidence, and no-publish release checklist.
25
+
26
+ ## Execution Rules
27
+
28
+ - `slice-00` must be executed and committed first.
29
+ - Every later slice depends on `slice-00`.
30
+ - One slice equals one commit.
31
+ - One spec equals one worktree and one PR.
32
+ - Planner phases cannot modify product code.
33
+ - Executor phases can modify product code only inside approved slice scope.
34
+ - Parallel slices may run only when dependencies and file scopes are safe.
35
+
36
+ ## Open Items
37
+
38
+ - Decide whether future UX should add a dedicated `ai approve --phase plan-review` command, or keep the current model where the reviewed technical-plan draft is approved by version.
39
+ - Validate provider-specific model argument handling for Codex, Claude, and Gemini before model labels are used as invocation arguments.