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,58 @@
1
+ # Evidence Report - Quiver v22 Guided AI Workflow
2
+
3
+ ## Status
4
+
5
+ Implementation is completed. Slices `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 | Documentation source-of-truth sync completed. README no longer claims `package.json`/CHANGELOG are at 0.9.0, CHANGELOG includes 0.10.0, ROADMAP/BACKLOG distinguish shipped v20/v21 work from the then-active v22 implementation line, and targeted tests passed. |
13
+ | slice-02 | Prepare command implemented with dry-run diagnostics, GitHub CLI guidance, provider CLI guidance, SSH identity/auth recovery steps, and next safe command output. Targeted tests passed. |
14
+ | slice-03 | Analyze now refreshes `docs/AI_CONTEXT.md`, keeps `docs/PROJECT_MAP.md` visible, keeps raw scan under `.quiver/scans/PROJECT_SCAN.json`, summarizes missing/assumed context, and excludes secret/noisy paths from AI-facing context. Targeted tests passed. |
15
+ | slice-04 | Planner approval state implemented under `.quiver/approvals`, with draft persistence, explicit approvals, default use of approved acceptance/technical-plan inputs, `ai approvals` status, and blocking of unapproved/stale inputs. Targeted tests passed. |
16
+ | slice-05 | Spec-level worktree lifecycle implemented with `spec start/status`, safe main/develop base selection, dirty worktree protection, and `slice-00` completion guard for later `start-slice` executions. Targeted tests passed. |
17
+ | slice-06 | `ai execute-slice` now keeps executor context bounded, validates scope, runs declared validation commands, reports retry/abort guidance on failure, and creates exactly one commit when `--commit` is enabled after successful provider, scope, and validation stages. Targeted tests passed. |
18
+ | slice-07 | Execution waves now distinguish parallel-ready groups from sequential fallback, block parallel suggestions on unknown or overlapping file scopes, print dry-run executor commands without provider calls, and support explicit `ai execute-plan --execute --commit` with stop-on-failure behavior. Targeted tests passed. |
19
+ | slice-08 | `ai pr` now validates setup, reads generated `pr.md`, prints a dry-run `gh pr create` plan, and creates the PR only with explicit `--create`. Missing gh/auth/guide/identity/body/dirty state still blocks with guidance. Tests mock gh and real PR creation is not required. |
20
+ | slice-09 | `spec close` now blocks unmerged or dirty spec worktrees, removes merged clean worktrees, and pulls the main checkout when a remote base exists. Package safety now checks npm tarball contents for env files, npm credentials, AI local state, worktree state, and local worktree context before package smoke passes. Targeted tests and package smoke passed. |
21
+ | slice-10 | Final docs and generated templates now present the guided AI workflow as available behavior. Smokes cover prepare, approvals, execution waves, PR dry-run/create mocks, cleanup, package safety, generated project scripts, post-analyze AI context front matter, and mandatory `slice-00` fixtures. Full tests, smokes, JSON validation, diff check, and npm pack dry-run passed. |
22
+
23
+ ## Validation Log
24
+
25
+ - 2026-05-21: `find specs/quiver-v22-guided-ai-workflow -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/analyze.test.js tests/commands/ai-plan.test.js tests/commands/ai-pr.test.js`
28
+ - 2026-05-21: `node --test tests/commands/prepare.test.js tests/lib/ai-github.test.js tests/lib/ai-providers.test.js tests/lib/doctor.test.js`
29
+ - 2026-05-21: `node --test tests/commands/analyze.test.js tests/lib/ai-context-packs.test.js tests/lib/ai-safety.test.js`
30
+ - 2026-05-21: `node --test tests/commands/ai-plan.test.js tests/commands/ai-plan-spec-phase.test.js tests/lib/approvals.test.js`
31
+ - 2026-05-21: `node --test tests/lib/lifecycle.test.js tests/commands/spec-worktree.test.js`
32
+ - 2026-05-21: `node --test tests/lib/check-slice.test.js tests/commands/next.test.js`
33
+ - 2026-05-21: `git diff --check`
34
+ - 2026-05-21: `node --test tests/commands/ai-execute-slice.test.js tests/lib/ai-executor.test.js tests/lib/scope.test.js`
35
+ - 2026-05-21: `git diff --check`
36
+ - 2026-05-21: `node --test tests/lib/ai-execution-plan.test.js tests/commands/ai-execute-plan.test.js`
37
+ - 2026-05-21: `node --test tests/commands/ai-execute-slice.test.js tests/lib/ai-executor.test.js`
38
+ - 2026-05-21: `git diff --check`
39
+ - 2026-05-21: `node --test tests/commands/ai-pr.test.js tests/lib/ai-github.test.js`
40
+ - 2026-05-21: `git diff --check`
41
+ - 2026-05-21: `node --test tests/commands/spec-close.test.js tests/lib/package-safety.test.js`
42
+ - 2026-05-21: `bash scripts/package-quiver.sh`
43
+ - 2026-05-21: `node --test tests/commands/spec-worktree.test.js tests/lib/lifecycle.test.js tests/commands/spec-close.test.js tests/lib/package-safety.test.js`
44
+ - 2026-05-21: `git diff --check`
45
+ - 2026-05-21: `node --test tests/lib/init-layout.test.js tests/lib/init-docs.test.js tests/commands/init-profiles.test.js`
46
+ - 2026-05-21: `node --test tests/commands/analyze.test.js tests/lib/init-docs.test.js`
47
+ - 2026-05-21: `npm run smoke:guided-workflow`
48
+ - 2026-05-21: `node --test tests/**/*.test.js`
49
+ - 2026-05-21: `npm run smoke:create-quiver`
50
+ - 2026-05-21: `npm run smoke:tiered-pack`
51
+ - 2026-05-21: `npm --cache /private/tmp/quiver-npm-cache pack --dry-run`
52
+ - 2026-05-21: `git diff --check`
53
+ - 2026-05-21: `find specs/quiver-v22-guided-ai-workflow -name slice.json -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;`
54
+
55
+ ## Notes
56
+
57
+ - `npm pack --dry-run` failed once against the global npm cache because `~/.npm` contains root-owned files. Re-running with `npm --cache /private/tmp/quiver-npm-cache pack --dry-run` passed.
58
+ - No npm publish was performed by this slice.
@@ -0,0 +1,88 @@
1
+ # Execution Plan - Quiver v22 Guided AI Workflow
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 optimizes for low merge risk and production-readiness over speed.
10
+
11
+ | Wave | Mode | Slices | Why |
12
+ |------|------|--------|-----|
13
+ | 0 | Sequential | `slice-00-spec-foundation` | Publishes the spec foundation, handoffs, execution plan, and PR body. Nothing else should start before this commit exists. |
14
+ | 1 | Sequential | `slice-01-docs-source-of-truth-sync` | Fixes current documentation drift so later agents read reliable guidance. |
15
+ | 2 | Sequential | `slice-02-prepare-command-diagnostics` | Adds the safe project preparation entrypoint used by later workflow steps. |
16
+ | 3 | Sequential | `slice-03-context-doc-refresh` | Improves AI context generation after the preparation command exists. |
17
+ | 4 | Sequential | `slice-04-planner-approval-state` | Adds persisted approvals; spec/worktree automation should not run before approved inputs are traceable. |
18
+ | 5 | Sequential | `slice-05-spec-worktree-lifecycle` | Establishes one spec per worktree before executor, PR, and cleanup automation. |
19
+ | 6 | Sequential | `slice-06-executor-commit-recovery` | Makes single-slice execution safe and recoverable before multi-slice execution. |
20
+ | 7 | Sequential | `slice-07-execution-waves-delegation` | Builds on the executor to coordinate waves and delegation. |
21
+ | 8 | Sequential | `slice-08-pr-create-gh-ssh` | Adds PR creation after command-router changes from execution slices are stable. |
22
+ | 9 | Sequential | `slice-09-post-merge-cleanup-release-safety` | Requires execution-wave and PR behavior to be known. |
23
+ | 10 | Sequential | `slice-10-docs-smokes-release-readiness` | Final docs and smokes must run last. |
24
+
25
+ ## Parallelization Assessment
26
+
27
+ No slice should run in parallel before `slice-05`.
28
+
29
+ After `slice-05`, `slice-06-executor-commit-recovery` and `slice-08-pr-create-gh-ssh` are conceptually independent, but the declared file scopes overlap in command-router files such as `src/create-quiver/commands/ai.js`. Because of that, the default recommendation is sequential execution.
30
+
31
+ Parallel execution is allowed only if the executor changes are split so file ownership is disjoint:
32
+
33
+ | Optional Wave | Mode | Slices | Condition |
34
+ |---------------|------|--------|-----------|
35
+ | 6A | Parallel | `slice-06-executor-commit-recovery` + `slice-08-pr-create-gh-ssh` | Only if one slice owns executor internals and the other owns PR internals without both editing the same command-router files. |
36
+ | 6B | Sequential integration | Router wiring or conflict resolution | Required if 6A was used and both features need command registration. |
37
+ | 7 | Sequential | `slice-07-execution-waves-delegation` | Starts only after executor behavior from `slice-06` is integrated. |
38
+
39
+ If the file scopes are not split before execution, do not use the optional parallel wave.
40
+
41
+ ## Dependency Graph
42
+
43
+ ```mermaid
44
+ flowchart TD
45
+ S00[slice-00 spec foundation] --> S01[slice-01 docs sync]
46
+ S01 --> S02[slice-02 prepare diagnostics]
47
+ S02 --> S03[slice-03 context doc refresh]
48
+ S03 --> S04[slice-04 planner approvals]
49
+ S04 --> S05[slice-05 spec worktree lifecycle]
50
+ S05 --> S06[slice-06 executor commit recovery]
51
+ S06 --> S07[slice-07 execution waves]
52
+ S05 --> S08[slice-08 PR creation]
53
+ S07 --> S09[slice-09 cleanup and release safety]
54
+ S08 --> S09
55
+ S09 --> S10[slice-10 docs smokes release readiness]
56
+ ```
57
+
58
+ ## Suggested Commit Order
59
+
60
+ 1. `docs(spec): add guided ai workflow spec foundation`
61
+ 2. `docs(ai): sync source of truth for guided workflow`
62
+ 3. `feat(cli): add guided prepare diagnostics`
63
+ 4. `feat(analyze): refresh ai context docs safely`
64
+ 5. `feat(ai): persist planner approvals`
65
+ 6. `feat(spec): manage spec worktree lifecycle`
66
+ 7. `feat(ai): commit validated executor slices`
67
+ 8. `feat(ai): execute slices by safe waves`
68
+ 9. `feat(ai): create prs with gh and ssh guidance`
69
+ 10. `feat(spec): close merged specs and guard releases`
70
+ 11. `docs(ai): document guided workflow and add smokes`
71
+
72
+ ## Executor Assignment
73
+
74
+ Recommended executor model:
75
+
76
+ - Use the planner agent for `slice-00`, high-level review, and final integration checks.
77
+ - Use cheaper executor agents for `slice-01` through `slice-08` only after the owning slice and file scope are clear.
78
+ - Keep `slice-09` with a stronger reviewer because it includes cleanup and release-safety behavior.
79
+ - Keep `slice-10` with the planner or a docs/test-focused executor because it validates the full user-facing story.
80
+
81
+ ## Integration Notes
82
+
83
+ - Do not start implementation slices before `slice-00` is committed.
84
+ - Do not enable parallel execution before file-scope conflict checks exist.
85
+ - If two slices declare the same source file, execute them sequentially or split ownership before delegation.
86
+ - Keep provider and `gh` tests mocked.
87
+ - Treat real provider CLIs as optional manual checks.
88
+ - Keep one spec PR branch/worktree for final integration.
@@ -0,0 +1,228 @@
1
+ # Quiver v22 - Guided AI Workflow
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 an AI-first foundation: it can initialize a project, analyze it, generate context artifacts, run planner phases, generate specs/slices/handoffs, execute one slice with reduced context, and run GitHub PR preflight checks.
11
+
12
+ The current experience still requires too much manual coordination. A user must remember which command comes next, manually preserve approved criteria and plans, decide when a worktree is safe, decide when parallel execution is safe, create slice commits by hand, and open or close the PR outside the guided flow.
13
+
14
+ The desired workflow is a guided AI delivery line:
15
+
16
+ 1. Install or run Quiver.
17
+ 2. Prepare the project for AI onboarding.
18
+ 3. Choose a planner agent.
19
+ 4. Run planner onboarding with generated context.
20
+ 5. Turn requirements into acceptance criteria.
21
+ 6. Iterate criteria until approved.
22
+ 7. Turn approved criteria into a development plan.
23
+ 8. Iterate the plan until approved.
24
+ 9. Generate spec, slices, handoffs, and `pr.md`.
25
+ 10. Build an execution plan with sequential and parallel slices.
26
+ 11. Execute slices through cheaper executor agents, one slice per commit.
27
+ 12. Open the PR from the generated body.
28
+ 13. Let the human review and merge.
29
+ 14. Close the worktree and pull merged changes back into the main local checkout.
30
+
31
+ ## Objective
32
+
33
+ Make Quiver guide the full AI-assisted workflow from project preparation to post-merge cleanup while preserving human approvals, one spec per worktree, one slice per commit, token-efficient executor context, and safe defaults.
34
+
35
+ ## Core Decisions
36
+
37
+ - `README_FOR_AI.md` remains the source of truth for Quiver workflow guidance in this repo.
38
+ - This repo uses `specs/quiver-vNN-*` as the real spec location, even though some reusable skills mention `docs/specs/`.
39
+ - `slice-00` is mandatory and only establishes the spec foundation.
40
+ - One spec maps to one dedicated worktree and one PR.
41
+ - One slice maps to one commit.
42
+ - Planner agents use broad context and do not modify product code while creating criteria or plans.
43
+ - Executor agents may modify product code only inside the approved slice scope.
44
+ - AI outputs that influence implementation must be saved and explicitly approved before they become inputs for the next phase.
45
+ - Parallel slice execution is allowed only when dependencies and touched files make it safe.
46
+ - Quiver validates or guides setup for `gh`, SSH aliases, provider CLIs, and auth. It must not silently rewrite credentials.
47
+ - PR creation is allowed after checks pass, but PR merge remains a human decision.
48
+ - Worktree cleanup is allowed only after the PR merge is confirmed and no local changes would be lost.
49
+
50
+ ## Scope
51
+
52
+ ### Included
53
+
54
+ - Sync documentation that drifted after `0.10.0`.
55
+ - Define the official command experience for guided workflows, including whether a short `quiver` command exists or commands remain under `npx create-quiver`.
56
+ - Add a safe project preparation command that combines analysis, diagnostics, context refresh, and setup guidance.
57
+ - Improve project analysis so it produces useful AI onboarding context without exposing secrets or noisy generated files.
58
+ - Persist planner outputs and approvals for acceptance criteria and technical plans.
59
+ - Generate specs, slices, handoffs, execution plans, and `pr.md` only from approved inputs.
60
+ - Formalize one spec per worktree.
61
+ - Add status, retry, abort, and recovery surfaces for slices.
62
+ - Add optional commit automation after slice validation.
63
+ - Add execution waves for sequential and parallel slices.
64
+ - Add safe delegation guidance for cheap executor agents.
65
+ - Create PRs with `gh` from generated `pr.md` after preflight passes.
66
+ - Add post-merge cleanup that removes the spec worktree and pulls the main local checkout.
67
+ - Add release/package safety checks so local settings or secrets are not published.
68
+ - Cover macOS, Linux, and Windows guidance for `gh`, SSH, providers, and paths.
69
+
70
+ ### Excluded
71
+
72
+ - Fully autonomous PR merge.
73
+ - Silent installation of tools without explicit user approval.
74
+ - Silent SSH config rewriting.
75
+ - Direct provider API integrations.
76
+ - Guaranteeing identical behavior across Codex, Claude, and Gemini CLIs.
77
+ - Running real paid AI providers in CI.
78
+ - Replacing human approval for acceptance criteria, plans, or PR review.
79
+
80
+ ## Acceptance Criteria
81
+
82
+ 1. Given the root docs drift from the published package version, when the docs-sync slice runs, then README, CHANGELOG, ROADMAP, BACKLOG, and AI guidance no longer contradict the current package state.
83
+ 2. Given a user wants to start safely, when the preparation command runs in dry-run mode, then it reports planned checks and writes nothing.
84
+ 3. Given a user runs preparation for real, when the repo is valid, then Quiver refreshes project context docs and reports assumptions, risks, missing tools, and next commands.
85
+ 4. Given a project has secrets, env files, generated files, large artifacts, or dependency folders, when context is prepared, then those files are excluded from AI-facing context.
86
+ 5. Given `gh`, provider CLIs, auth, or SSH aliases are missing, when diagnostics run, then Quiver gives OS-specific guidance for macOS, Linux, and Windows.
87
+ 6. Given a planner produces acceptance criteria, when the user does not approve them, then Quiver keeps them as draft and does not create a technical plan or spec.
88
+ 7. Given acceptance criteria are approved, when the next phase starts, then Quiver uses the approved criteria as the source input.
89
+ 8. Given a planner produces a technical plan, when the user does not approve it, then Quiver keeps it as draft and does not create spec artifacts.
90
+ 9. Given a technical plan is approved, when the spec phase runs, then Quiver creates `SPEC.md`, `STATUS.md`, `EVIDENCE_REPORT.md`, `EXECUTION_PLAN.md`, `pr.md`, mandatory `slice-00`, and per-slice handoffs.
91
+ 10. Given generated slices, when the execution plan is built, then `slice-00` is first and every later slice is blocked until `slice-00` is committed.
92
+ 11. Given a spec starts, when Quiver creates or selects its worktree, then it uses one dedicated worktree/branch for that spec.
93
+ 12. Given a slice executor runs, when it receives context, then it receives only the slice, handoff, allowed files, criteria, and validation commands.
94
+ 13. Given a slice executor modifies files outside scope, when validation runs, then Quiver stops and reports the scope violation.
95
+ 14. Given a slice passes validation and commit automation is enabled, when the slice completes, then Quiver creates exactly one commit for that slice.
96
+ 15. Given a slice fails validation, when the command exits, then Quiver leaves a clear report and supports retry or abort without hiding local changes.
97
+ 16. Given multiple slices are ready, when execution waves are requested, then Quiver only runs slices in parallel if dependencies and file scopes do not conflict.
98
+ 17. Given execution waves include conflicts or unknown file scopes, when Quiver plans execution, then it falls back to sequential execution.
99
+ 18. Given all required slices are complete, when PR creation runs, then Quiver validates `gh`, auth, remote, branch, worktree, identity file, SSH alias, clean state, and generated `pr.md`.
100
+ 19. Given PR checks pass, when the user confirms PR creation, then Quiver creates the PR with `gh` using `pr.md`.
101
+ 20. Given a PR is not merged, when cleanup is requested, then Quiver refuses normal cleanup and explains the safe options.
102
+ 21. Given a PR is merged and the worktree is clean, when cleanup runs, then Quiver removes the spec worktree and pulls the merged changes into the main local checkout.
103
+ 22. Given package release validation runs, when local settings, env files, npm credentials, or AI tool local state would be included, then Quiver fails before packaging or publishing.
104
+
105
+ ## Approved Technical Plan
106
+
107
+ ### Objective
108
+
109
+ Turn Quiver's current AI commands into a guided workflow that is safer, more recoverable, and easier to use end to end.
110
+
111
+ ### Architecture
112
+
113
+ Add a lightweight workflow state layer under `.quiver/` and keep versioned project contracts under visible docs and `specs/`.
114
+
115
+ Recommended areas:
116
+
117
+ ```text
118
+ src/create-quiver/commands/prepare.js
119
+ src/create-quiver/commands/ai.js
120
+ src/create-quiver/commands/spec.js
121
+ src/create-quiver/lib/workflow-state.js
122
+ src/create-quiver/lib/context-writer.js
123
+ src/create-quiver/lib/approvals.js
124
+ src/create-quiver/lib/spec-worktrees.js
125
+ src/create-quiver/lib/slice-runner.js
126
+ src/create-quiver/lib/pr-create.js
127
+ src/create-quiver/lib/package-safety.js
128
+ ```
129
+
130
+ The exact file names can change during implementation if the existing codebase points to a better local pattern.
131
+
132
+ ### Workflow State
133
+
134
+ Persist workflow progress in `.quiver/`:
135
+
136
+ - selected provider and role;
137
+ - current spec;
138
+ - current worktree;
139
+ - draft and approved acceptance criteria;
140
+ - draft and approved technical plan;
141
+ - generated spec path;
142
+ - slice statuses;
143
+ - execution wave status;
144
+ - PR status;
145
+ - cleanup status.
146
+
147
+ Only durable team contracts belong in visible docs or `specs/`.
148
+
149
+ ### Command Experience
150
+
151
+ The command surface should be simple for humans:
152
+
153
+ ```bash
154
+ npx create-quiver prepare
155
+ npx create-quiver ai planner onboard
156
+ npx create-quiver ai planner acceptance
157
+ npx create-quiver ai approve acceptance
158
+ npx create-quiver ai planner technical-plan
159
+ npx create-quiver ai approve technical-plan
160
+ npx create-quiver ai planner spec
161
+ npx create-quiver spec start
162
+ npx create-quiver ai execute-plan
163
+ npx create-quiver ai pr create
164
+ npx create-quiver spec close
165
+ ```
166
+
167
+ If a short `quiver` binary is introduced, it must be documented as an alias or project-local script and must not contradict the canonical `npx create-quiver` entrypoint until that decision is made.
168
+
169
+ ### Safety Rules
170
+
171
+ - Dry-run support comes before write support.
172
+ - No product code changes before an approved slice.
173
+ - No commit before validation.
174
+ - No parallel execution when files or dependencies are unclear.
175
+ - No PR creation with dirty worktree or missing generated PR body.
176
+ - No cleanup before merge confirmation.
177
+ - No publishing if local settings or secrets enter the package tarball.
178
+
179
+ ### Validation Strategy
180
+
181
+ - Unit tests for state persistence and approval transitions.
182
+ - Unit tests for context exclusion and secret/path filters.
183
+ - Unit tests for missing tools and cross-platform install guidance.
184
+ - Unit tests for spec worktree lifecycle and cleanup guardrails.
185
+ - Unit tests for slice commit success/failure behavior.
186
+ - Unit tests for execution wave grouping and conflict fallback.
187
+ - Unit tests for PR creation command construction with mocked `gh`.
188
+ - Smoke tests for `prepare`, planner approval flow, executor dry-run, PR dry-run, and release/package safety.
189
+ - Existing tests for `ai plan`, `ai execute-slice`, `plan`, `graph`, and `next` must remain green.
190
+
191
+ ## Slicing Strategy
192
+
193
+ `slice-00` lands first and only publishes this spec foundation. The rest of the work is split so Quiver becomes useful earlier while high-risk automation, such as parallel execution and cleanup, is introduced after state, approvals, and single-slice execution are reliable.
194
+
195
+ ## Slice Roadmap
196
+
197
+ | Slice | Title | Status | Dependencies |
198
+ |-------|-------|--------|--------------|
199
+ | slice-00 | Spec foundation and guided workflow planning artifacts | Completed | none |
200
+ | slice-01 | Documentation source-of-truth sync | Completed | slice-00 |
201
+ | slice-02 | Prepare command and setup diagnostics | Completed | slice-01 |
202
+ | slice-03 | Context documentation refresh and safe analyzer output | Completed | slice-02 |
203
+ | slice-04 | Planner approval state for criteria and technical plans | Completed | slice-03 |
204
+ | slice-05 | Spec worktree lifecycle | Completed | slice-04 |
205
+ | slice-06 | Executor validation, recovery, and commit per slice | Completed | slice-05 |
206
+ | slice-07 | Execution waves and safe delegation | Completed | slice-06 |
207
+ | slice-08 | PR creation with gh and SSH guidance | Completed | slice-05 |
208
+ | slice-09 | Post-merge cleanup and release safety | Completed | slice-07, slice-08 |
209
+ | slice-10 | Final docs, smokes, and release readiness | Completed | slice-09 |
210
+
211
+ ## Risks
212
+
213
+ - A short `quiver` command can confuse users if it is introduced before the canonical command decision is documented.
214
+ - Persisted approval state can drift from visible spec artifacts if not validated.
215
+ - More automation increases the cost of recovering from failed provider runs.
216
+ - Parallel executor runs can create conflicts or overlapping edits.
217
+ - Cross-platform setup guidance can become stale if it is duplicated in several files.
218
+ - PR creation can target the wrong account if `gh` auth and SSH alias point to different identities.
219
+ - Cleanup can delete useful local work if merge and cleanliness checks are incomplete.
220
+ - Packaging can leak local tool state unless tarball checks are enforced.
221
+
222
+ ## Open Questions
223
+
224
+ - Should the short command be `quiver`, a project-local npm script, or only documented as future sugar over `npx create-quiver`?
225
+ - Should approval artifacts be versioned in `specs/` or stored internally in `.quiver/` until the spec is generated?
226
+ - Should commit automation default to confirmation prompts or require an explicit `--commit` flag?
227
+ - Should execution waves initially print commands for manual execution before running multiple providers automatically?
228
+ - Should `gh` installation remain guidance-only or include optional installer helpers behind explicit approval?
@@ -0,0 +1,42 @@
1
+ # Quiver v22 - Guided AI Workflow Status
2
+
3
+ **Status:** Completed
4
+ **Created:** 2026-05-21
5
+
6
+ ## Summary
7
+
8
+ This spec implemented the guided AI workflow needed to move from project preparation to planner approvals, spec generation, slice execution, PR creation, and post-merge cleanup.
9
+
10
+ ## Current State
11
+
12
+ - Requirements and acceptance criteria: approved in conversation.
13
+ - Technical plan: approved in conversation after production-readiness review.
14
+ - Spec and slice handoffs: created in this documentation pass.
15
+ - `slice-00`: completed.
16
+ - `slice-01`: completed.
17
+ - `slice-02`: completed.
18
+ - `slice-03`: completed.
19
+ - `slice-04`: completed.
20
+ - `slice-05`: completed.
21
+ - `slice-06`: completed.
22
+ - `slice-07`: completed.
23
+ - `slice-08`: completed.
24
+ - `slice-09`: completed.
25
+ - `slice-10`: completed.
26
+
27
+ ## Execution Rules
28
+
29
+ - `slice-00` must be executed and committed first.
30
+ - Every later slice depends on `slice-00`.
31
+ - One slice equals one commit.
32
+ - One spec equals one worktree and one PR.
33
+ - Planner phases cannot modify product code.
34
+ - Executor phases can modify product code only inside approved slice scope.
35
+ - Parallel slices may run only when dependencies and file scopes are safe.
36
+
37
+ ## Open Items
38
+
39
+ - The canonical executable remains `npx create-quiver`; a short `quiver` binary was not introduced in this spec.
40
+ - Approved planner artifacts are persisted under `.quiver/approvals` until generated specs and slices become versioned repo artifacts.
41
+ - Commit automation is opt-in through `--commit`; real execution waves also require `--execute`.
42
+ - Package publication is intentionally outside this slice and should be handled by the release workflow after review.
@@ -0,0 +1,104 @@
1
+ ## Title
2
+
3
+ Quiver v22 - Guided AI workflow
4
+
5
+ ## Summary
6
+
7
+ Adds the plan for a guided AI workflow that takes Quiver from project preparation through planner approvals, spec generation, slice execution, PR creation, and post-merge cleanup.
8
+
9
+ The goal is to make Quiver feel like an AI-first delivery assistant: the planner handles context and decisions, cheaper executors handle bounded slices, each slice becomes one commit, and the human remains responsible for approvals and PR merge.
10
+
11
+ ## Scope
12
+
13
+ - Documentation source-of-truth sync
14
+ - Guided project preparation command
15
+ - AI context refresh with safe exclusions
16
+ - Draft and approved planner artifact persistence
17
+ - One spec per worktree lifecycle
18
+ - Executor validation, recovery, and optional commit per slice
19
+ - Execution waves for safe sequential and parallel slice work
20
+ - PR creation with `gh` and SSH guidance
21
+ - Post-merge cleanup
22
+ - Package/release safety checks
23
+ - Final docs, scripts, and smoke coverage
24
+
25
+ ## Files
26
+
27
+ - `specs/quiver-v22-guided-ai-workflow/SPEC.md`
28
+ - `specs/quiver-v22-guided-ai-workflow/STATUS.md`
29
+ - `specs/quiver-v22-guided-ai-workflow/EVIDENCE_REPORT.md`
30
+ - `specs/quiver-v22-guided-ai-workflow/EXECUTION_PLAN.md`
31
+ - `specs/quiver-v22-guided-ai-workflow/pr.md`
32
+ - `specs/quiver-v22-guided-ai-workflow/slices/**`
33
+
34
+ Future implementation slices are expected to touch CLI source, AI orchestration modules, analyzer/context modules, worktree lifecycle code, PR helpers, tests, templates, generated docs, and smoke scripts as declared in each slice.
35
+
36
+ ## How to Test (DETAILED - REQUIRED)
37
+
38
+ ### Required Environment
39
+
40
+ - Node.js supported by Quiver
41
+ - npm
42
+ - Git
43
+ - `gh` for PR creation slices
44
+ - Optional local provider CLIs for manual checks:
45
+ - `codex`
46
+ - `claude`
47
+ - `gemini`
48
+
49
+ ### Worktree Access
50
+
51
+ Use one dedicated worktree for this spec PR. Parallel slices may use temporary slice worktrees only when the execution plan marks them safe and their changed-file scopes do not conflict.
52
+
53
+ ### Run the Project
54
+
55
+ For documentation-only `slice-00`, validate files and JSON:
56
+
57
+ ```bash
58
+ git diff --check
59
+ find specs/quiver-v22-guided-ai-workflow -name "slice.json" -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;
60
+ ```
61
+
62
+ For implementation slices, run the validation commands declared in each `slice.json` and `EXECUTION_BRIEF.md`.
63
+
64
+ ### Use Cases
65
+
66
+ - New user prepares a repo for AI-assisted work.
67
+ - Planner creates and iterates acceptance criteria.
68
+ - Planner creates and iterates the technical plan.
69
+ - Approved plan generates spec, slices, handoffs, execution plan, and PR body.
70
+ - Executor runs a bounded slice with reduced context.
71
+ - Slice validation passes and one commit is created.
72
+ - Failed slice leaves a recoverable report.
73
+ - Ready slices are grouped into safe execution waves.
74
+ - PR is created from `pr.md` after `gh` and SSH checks.
75
+ - Merged spec worktree is closed and main local checkout is updated.
76
+
77
+ ### Technical Verification
78
+
79
+ - Dry-run paths write nothing.
80
+ - Approval transitions are explicit and persisted.
81
+ - Context excludes secrets, env files, generated outputs, dependency folders, and local AI tool state.
82
+ - Worktree cleanup refuses dirty or unmerged work.
83
+ - PR creation uses `gh` without opening a PR in tests.
84
+ - Release safety fails if unsafe local files would enter the npm package.
85
+
86
+ ## Evidence
87
+
88
+ To be completed by implementation slices. Expected evidence includes:
89
+
90
+ - `node --test tests/**/*.test.js`
91
+ - `npm run smoke:create-quiver`
92
+ - targeted smoke tests for guided prepare, approval flow, executor commit, execution waves, PR creation, cleanup, and release safety
93
+ - `git diff --check`
94
+
95
+ ## Rollback
96
+
97
+ Revert the smallest failing slice commit. Since the spec requires one slice per commit, rollback should target the affected slice commit rather than the full PR when possible.
98
+
99
+ ## Risks / Notes
100
+
101
+ - This spec intentionally does not automate PR merge.
102
+ - Short command naming must not conflict with the canonical `npx create-quiver` guidance.
103
+ - Parallel execution must remain conservative until conflict detection is reliable.
104
+ - Tool installation and SSH setup must require explicit user approval.
@@ -0,0 +1,35 @@
1
+ # CLOSURE BRIEF - slice-00: Spec foundation
2
+
3
+ ## Resumen de lo realizado
4
+
5
+ Se creo la base documental completa de `quiver-v22-guided-ai-workflow`, incluyendo spec, estado, evidencia, plan de ejecucion, cuerpo de PR y handoffs por slice.
6
+
7
+ ## Validacion contra criterios de aceptacion
8
+
9
+ - [x] Spec creada.
10
+ - [x] `slice-00` creada.
11
+ - [x] Handoffs creados para cada slice.
12
+ - [x] `EXECUTION_PLAN.md` creado.
13
+ - [x] `pr.md` creado.
14
+ - [x] JSON validado.
15
+
16
+ ## Cambios relevantes
17
+
18
+ - `specs/quiver-v22-guided-ai-workflow/SPEC.md`
19
+ - `specs/quiver-v22-guided-ai-workflow/STATUS.md`
20
+ - `specs/quiver-v22-guided-ai-workflow/EVIDENCE_REPORT.md`
21
+ - `specs/quiver-v22-guided-ai-workflow/EXECUTION_PLAN.md`
22
+ - `specs/quiver-v22-guided-ai-workflow/pr.md`
23
+ - `specs/quiver-v22-guided-ai-workflow/slices/**`
24
+
25
+ ## Pendientes
26
+
27
+ Ninguno para esta slice.
28
+
29
+ ## Riesgos remanentes
30
+
31
+ El spec es amplio y debe ejecutarse en orden conservador. El plan marca paralelismo solo como opcional y condicionado a scopes disjuntos.
32
+
33
+ ## Recomendaciones futuras
34
+
35
+ Ejecutar `slice-01-docs-source-of-truth-sync` antes de modificar comportamiento, para evitar que los proximos agentes lean documentacion desactualizada.
@@ -0,0 +1,61 @@
1
+ # EXECUTION BRIEF - slice-00: Spec foundation
2
+
3
+ **Spec:** quiver-v22-guided-ai-workflow
4
+ **Slice:** slice-00-spec-foundation
5
+ **Tipo:** docs
6
+
7
+ ## Contexto
8
+
9
+ Esta slice sube al repo la base documental del nuevo flujo guiado de IA. Es obligatoria y debe ejecutarse antes de cualquier slice de implementacion.
10
+
11
+ ## Objetivo
12
+
13
+ Crear y validar la estructura completa de spec, slices, handoffs, plan de ejecucion y cuerpo de PR para el guided AI workflow.
14
+
15
+ ## Alcance
16
+
17
+ - Crear `SPEC.md`.
18
+ - Crear `STATUS.md`.
19
+ - Crear `EVIDENCE_REPORT.md`.
20
+ - Crear `EXECUTION_PLAN.md`.
21
+ - Crear `pr.md`.
22
+ - Crear `slice.json`, `EXECUTION_BRIEF.md` y `CLOSURE_BRIEF.md` para cada slice.
23
+
24
+ ## Criterios de aceptacion
25
+
26
+ - La carpeta `specs/quiver-v22-guided-ai-workflow/` existe.
27
+ - `slice-00` existe y precede al resto.
28
+ - Cada slice tiene `slice.json`, `EXECUTION_BRIEF.md` y `CLOSURE_BRIEF.md`.
29
+ - Todos los JSON parsean correctamente.
30
+ - No se modifica codigo de producto.
31
+
32
+ ## Plan tecnico resumido
33
+
34
+ Crear artefactos documentales siguiendo el patron real del repo bajo `specs/`. Mantener `slice-00` como base documental y declarar dependencias para todas las slices posteriores.
35
+
36
+ ## Pasos sugeridos de ejecucion
37
+
38
+ 1. Revisar `README_FOR_AI.md`.
39
+ 2. Crear estructura `specs/quiver-v22-guided-ai-workflow/`.
40
+ 3. Agregar archivos top-level de spec.
41
+ 4. Agregar cada slice y handoff.
42
+ 5. Validar JSON y whitespace.
43
+ 6. Preparar commit unico de slice-00.
44
+
45
+ ## Restricciones
46
+
47
+ - No tocar codigo de producto.
48
+ - No resolver implementacion en esta slice.
49
+ - No crear PR todavia.
50
+
51
+ ## Riesgos
52
+
53
+ - Generar una spec demasiado amplia sin dependencias claras.
54
+ - Dejar handoffs incompletos para agentes executor.
55
+
56
+ ## Checklist de finalizacion
57
+
58
+ - [ ] `git diff --check` pasa.
59
+ - [ ] Todos los `slice.json` parsean.
60
+ - [ ] No hay cambios fuera de `specs/quiver-v22-guided-ai-workflow/`.
61
+ - [ ] El commit representa solo slice-00.