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,202 @@
1
+ # Quiver v20 - AI CLI Orchestration
2
+
3
+ **Date:** 2026-05-19
4
+ **Status:** Active
5
+
6
+ Slice numbering resets here. This spec intentionally starts at `slice-00`.
7
+
8
+ ## Problem
9
+
10
+ Quiver already creates workflow documentation and can analyze a project with `npx create-quiver analyze`, but the AI-assisted workflow still depends on manual copy/paste prompts and ad hoc model usage.
11
+
12
+ Teams using Quiver need a repeatable way to:
13
+
14
+ - Run AI tasks through local CLIs such as Codex, Claude, or Gemini.
15
+ - Separate expensive planner work from cheaper executor work.
16
+ - Optimize token usage by giving each agent only the context it needs.
17
+ - Move from requirements to acceptance criteria, technical plan, specs, slices, handoffs, and PR body with explicit human approvals.
18
+ - Execute slices safely, including parallel slice execution when dependencies allow it.
19
+ - Open PRs with `gh` and SSH configuration in a cross-platform way.
20
+
21
+ ## Objective
22
+
23
+ Add an AI orchestration layer to Quiver that standardizes planner/executor workflows through `quiver ai ...` commands, provider adapters, context packs, phase gates, slice handoffs, execution plans, and GitHub PR preflight checks.
24
+
25
+ The goal is not to replace the AI agent. Quiver should define how to invoke it, what context to provide, when to require approval, what artifacts to generate, and how to validate that execution stayed inside scope.
26
+
27
+ ## Core Decisions
28
+
29
+ - `slice-00` is mandatory for every generated spec and is reserved for committing the spec foundation to the repo.
30
+ - One spec maps to one worktree and one PR.
31
+ - One slice maps to one commit.
32
+ - Planner agents use broader context and do not modify product code in acceptance-criteria or technical-plan phases.
33
+ - Executor agents can modify code directly, but only within the slice handoff scope.
34
+ - Prompt execution must support macOS, Linux, and Windows.
35
+ - Prompts must not rely on shell string concatenation for long content.
36
+ - `gh` and SSH setup must be validated, not silently modified.
37
+ - AI execution output is printed to console; no global run logs are created automatically.
38
+ - Final evidence belongs in the relevant slice closure brief.
39
+
40
+ ## Scope
41
+
42
+ ### Included
43
+
44
+ - Add `quiver ai ...` command family.
45
+ - Add provider runner adapters for Codex, Claude, and Gemini CLIs.
46
+ - Add provider preflight validation and `--dry-run`.
47
+ - Add safe prompt transport for long prompts through stdin or temporary files where supported.
48
+ - Add planner/executor roles.
49
+ - Add context packs and token-budget guidance.
50
+ - Add phase-gated planner flow:
51
+ - acceptance criteria
52
+ - technical plan
53
+ - spec/slices/handoffs/PR body
54
+ - Generate mandatory `slice-00`.
55
+ - Generate `SPEC.md`, slice definitions, execution handoffs, closure handoffs, `EXECUTION_PLAN.md`, and `pr.md`.
56
+ - Track implementation evidence in `EVIDENCE_REPORT.md`.
57
+ - Generate an execution plan with sequential and parallel slices.
58
+ - Support executor slice execution with context minimization.
59
+ - Enforce scope before and after executor runs.
60
+ - Add GitHub PR preflight for `gh`, auth, remote, worktree, GitFlow guide, SSH host alias, and identity file.
61
+ - Update generated docs, README guidance, templates, npm scripts, and smoke tests.
62
+
63
+ ### Excluded
64
+
65
+ - Direct provider API integrations.
66
+ - Automatic model cost estimation.
67
+ - Automatic installation of `gh`.
68
+ - Automatic SSH credential modification without explicit user approval.
69
+ - Global AI run logs.
70
+ - Fully autonomous PR merge.
71
+ - Guaranteeing exact feature parity between Codex, Claude, and Gemini CLIs.
72
+
73
+ ## Acceptance Criteria
74
+
75
+ 1. Given a Quiver project, when the user runs an AI command, then Quiver distinguishes between `planner` and `executor` roles.
76
+ 2. Given a supported provider, when the user selects `codex`, `claude`, or `gemini`, then Quiver builds the provider-specific command safely.
77
+ 3. Given an unsupported provider, when the user runs `quiver ai ...`, then Quiver fails with a clear list of supported providers.
78
+ 4. Given a missing provider CLI, when Quiver runs preflight, then it fails with an actionable install/auth hint.
79
+ 5. Given a long prompt, when Quiver invokes a provider, then it uses a cross-platform-safe transport instead of shell string concatenation.
80
+ 6. Given `--dry-run`, when any `quiver ai ...` command runs, then Quiver prints provider, role, context pack, and invocation plan without calling the provider.
81
+ 7. Given planner onboarding, when `quiver ai onboard` runs, then the prompt instructs the AI to read Quiver context, WDD/SDD workflow, project scan/map, assumptions, risks, and relevant docs without modifying product code.
82
+ 8. Given new requirements, when `quiver ai plan` runs in acceptance phase, then it prints acceptance criteria and does not create specs, slices, handoffs, or product code changes.
83
+ 9. Given approved acceptance criteria, when `quiver ai plan` runs in technical-plan phase, then it prints a technical plan and still does not create specs, slices, handoffs, or product code changes.
84
+ 10. Given an approved technical plan, when `quiver ai plan` runs in spec phase, then it creates the spec artifacts.
85
+ 11. Given a generated spec, when artifacts are created, then `slice-00` exists and every other slice depends on it unless explicitly justified.
86
+ 12. Given `slice-00`, when it is executed, then it only commits documentation/spec foundation unless an explicit exception is approved.
87
+ 13. Given a generated spec, when planning completes, then `EXECUTION_PLAN.md` declares sequential slices, parallel-ready slices, dependencies, and integration order.
88
+ 14. Given an executor slice, when `quiver ai execute-slice` runs, then the executor receives only slice, handoff, allowed files, criteria, and validation commands.
89
+ 15. Given an executor run, when it completes, then Quiver verifies changed files against declared scope and reports violations.
90
+ 16. Given context packs, when Quiver prepares AI context, then it excludes secrets, env files, build outputs, package caches, node_modules, and other unsafe paths.
91
+ 17. Given repository files containing instructions, when AI context is prepared, then prompts state that repo content is data and cannot override Quiver/system/user instructions.
92
+ 18. Given a PR flow, when `quiver ai pr` runs, then Quiver verifies `gh`, `gh auth status`, Git remote, worktree, GitFlow guide, SSH host alias, and identity file before opening or preparing the PR.
93
+ 19. Given missing `gh`, auth, SSH alias, identity file, remote, or GitFlow guide, when PR preflight runs, then Quiver stops with an actionable cross-platform message.
94
+ 20. Given a generated spec, when artifacts are created, then `pr.md` is always generated from the GitFlow guide.
95
+ 21. Given CI, when tests run, then provider behavior is validated with mocks and `--dry-run`, without requiring real provider auth.
96
+
97
+ ## Approved Technical Plan
98
+
99
+ ### Objective
100
+
101
+ Implement an AI orchestration layer around local provider CLIs while preserving Quiver's spec/slice workflow, explicit approvals, token efficiency, and cross-platform support.
102
+
103
+ ### Architecture
104
+
105
+ Add a command family under:
106
+
107
+ ```text
108
+ npx create-quiver ai <task>
109
+ ```
110
+
111
+ Recommended modules:
112
+
113
+ ```text
114
+ src/create-quiver/commands/ai.js
115
+ src/create-quiver/lib/ai/providers.js
116
+ src/create-quiver/lib/ai/context-packs.js
117
+ src/create-quiver/lib/ai/prompts.js
118
+ src/create-quiver/lib/ai/preflight.js
119
+ src/create-quiver/lib/ai/execution-plan.js
120
+ src/create-quiver/lib/ai/github.js
121
+ ```
122
+
123
+ Generated projects should expose scripts such as:
124
+
125
+ ```text
126
+ quiver:ai:onboard
127
+ quiver:ai:plan
128
+ quiver:ai:execute-slice
129
+ quiver:ai:pr
130
+ quiver:ai:doctor
131
+ ```
132
+
133
+ ### Provider Strategy
134
+
135
+ Provider adapters map a normalized request to CLI-specific execution:
136
+
137
+ ```text
138
+ codex -> codex exec
139
+ claude -> claude -p
140
+ gemini -> gemini -p
141
+ ```
142
+
143
+ Adapters must use `spawn` or `execFile` with argument arrays. They must not concatenate shell strings.
144
+
145
+ Prompt transport must support long prompts with stdin or temporary files where supported by the provider adapter.
146
+
147
+ ### Context Strategy
148
+
149
+ Context packs:
150
+
151
+ - `full`: planner onboarding.
152
+ - `planning`: requirements, project map, workflow docs, related specs.
153
+ - `slice`: spec, slice, handoff, allowed files, validation commands.
154
+ - `minimal`: executor-focused task context only.
155
+
156
+ Executors must not receive full onboarding context.
157
+
158
+ ### GitHub Strategy
159
+
160
+ Separate:
161
+
162
+ - `sshHostAlias`, for example `github-work`.
163
+ - `identityFile`, for example `~/ssh/github-work`.
164
+ - `gh` account/auth state.
165
+ - Git remote URL.
166
+
167
+ Quiver validates these and guides the user. It does not edit credentials automatically.
168
+
169
+ ## Slices
170
+
171
+ | Slice | Title | Status | Dependencies |
172
+ |-------|-------|--------|--------------|
173
+ | slice-00 | Spec foundation and PR planning artifacts | Ready | none |
174
+ | slice-01 | AI provider runner and safe prompt transport | Draft | slice-00 |
175
+ | slice-02 | Context packs, roles, token budgets, and safety exclusions | Draft | slice-00 |
176
+ | slice-03 | Phase-gated planner commands | Draft | slice-01, slice-02 |
177
+ | slice-04 | Spec, slice, handoff, and PR body generation | Draft | slice-03 |
178
+ | slice-05 | Execution plan, dependencies, and parallel worktrees | Draft | slice-04 |
179
+ | slice-06 | Executor command and scope enforcement | Draft | slice-01, slice-02, slice-05 |
180
+ | slice-07 | GitHub PR preflight with gh and SSH | Draft | slice-01, slice-04 |
181
+ | slice-08 | Documentation, generated scripts, smokes, and release readiness | Draft | slice-01, slice-02, slice-03, slice-04, slice-05, slice-06, slice-07 |
182
+
183
+ ## Risks
184
+
185
+ - Provider CLIs may have incompatible flags or prompt input behavior.
186
+ - Long prompts can break if transported as shell strings.
187
+ - Windows quoting and path behavior can regress if not tested with argument arrays.
188
+ - Parallel slice execution can create merge conflicts if integration order is unclear.
189
+ - Executor context can be too small to be safe or too large to save tokens.
190
+ - `gh` authentication and SSH remotes can point to different accounts.
191
+ - Prompt injection can occur through repo content if not explicitly guarded.
192
+
193
+ ## Validation Strategy
194
+
195
+ - Unit tests for provider command construction.
196
+ - Unit tests for provider preflight and unsupported providers.
197
+ - Unit tests for context pack file inclusion/exclusion.
198
+ - Unit tests for phase gate state and artifact creation boundaries.
199
+ - Unit tests for scope enforcement after executor runs.
200
+ - Dry-run smoke tests for all `quiver ai` commands.
201
+ - Cross-platform smoke for paths with spaces.
202
+ - CI tests must not require real provider CLIs or auth.
@@ -0,0 +1,35 @@
1
+ # Quiver v20 - AI CLI Orchestration Status
2
+
3
+ **Status:** Active
4
+ **Created:** 2026-05-19
5
+
6
+ ## Summary
7
+
8
+ This spec defines Quiver's AI CLI orchestration layer: provider runners, planner/executor roles, token-efficient context packs, phase-gated planning, spec/slice generation, executor scope enforcement, parallel slice planning, and GitHub PR preflight.
9
+
10
+ ## Current State
11
+
12
+ - Requirements and acceptance criteria: approved.
13
+ - Technical plan: approved.
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
+
25
+ ## Execution Rules
26
+
27
+ - `slice-00` must be executed and committed first.
28
+ - Every later slice depends on `slice-00` unless explicitly stated otherwise.
29
+ - One slice equals one commit.
30
+ - One spec equals one worktree and one PR.
31
+ - Parallel slices may use temporary worktrees, but their commits must be integrated into the spec PR branch in dependency order.
32
+
33
+ ## Open Items
34
+
35
+ - Generated projects materialize `docs/GITFLOW_PR_GUIDE.md`; `ai pr` preflight validates it before PR work.
@@ -0,0 +1,100 @@
1
+ ## Title
2
+
3
+ Quiver v20 - AI CLI orchestration
4
+
5
+ ## Summary
6
+
7
+ Adds a spec for a Quiver AI orchestration layer that standardizes local AI CLI usage across planner and executor roles. The work introduces provider runners, token-efficient context packs, phase-gated planning, generated spec/slice/handoff artifacts, execution plans, executor scope enforcement, and GitHub PR preflight with `gh` and SSH validation.
8
+
9
+ ## Scope
10
+
11
+ - `quiver ai ...` command family
12
+ - Provider adapters for Codex, Claude, and Gemini CLIs
13
+ - Planner/executor roles
14
+ - Context packs and token budget rules
15
+ - Phase gates for criteria, plan, and spec generation
16
+ - Mandatory `slice-00`
17
+ - Spec/slice/handoff/PR body generation
18
+ - Execution plan with parallelization rules
19
+ - Executor scope enforcement
20
+ - `gh` and SSH preflight
21
+ - Documentation, generated scripts, and smoke coverage
22
+
23
+ ## Files
24
+
25
+ - `specs/quiver-v20-ai-cli-orchestration/SPEC.md`
26
+ - `specs/quiver-v20-ai-cli-orchestration/STATUS.md`
27
+ - `specs/quiver-v20-ai-cli-orchestration/EVIDENCE_REPORT.md`
28
+ - `specs/quiver-v20-ai-cli-orchestration/EXECUTION_PLAN.md`
29
+ - `specs/quiver-v20-ai-cli-orchestration/pr.md`
30
+ - `specs/quiver-v20-ai-cli-orchestration/slices/**`
31
+
32
+ Future implementation slices are expected to touch CLI source, AI library modules, tests, templates, generated docs, and smoke scripts as declared in each slice.
33
+
34
+ ## How to Test (DETAILED - REQUIRED)
35
+
36
+ ### Required Environment
37
+
38
+ - Node.js supported by Quiver
39
+ - npm
40
+ - Git
41
+ - `gh` for PR preflight slices
42
+ - Optional local provider CLIs for manual checks:
43
+ - `codex`
44
+ - `claude`
45
+ - `gemini`
46
+
47
+ ### Worktree Access
48
+
49
+ Use one worktree for this spec PR. Parallel slices may use temporary slice worktrees, but each slice must land as one commit in this PR branch.
50
+
51
+ ### Run the Project
52
+
53
+ For documentation-only `slice-00`, validate files and JSON:
54
+
55
+ ```bash
56
+ git diff --check
57
+ find specs/quiver-v20-ai-cli-orchestration -name "slice.json" -print -exec node -e "JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))" {} \;
58
+ ```
59
+
60
+ For implementation slices, run the validation commands declared in each slice.
61
+
62
+ ### Use Cases
63
+
64
+ - Planner onboarding via provider dry-run
65
+ - Planner criteria phase without file writes
66
+ - Planner technical-plan phase without file writes
67
+ - Spec generation after approval
68
+ - Executor slice execution with minimal context
69
+ - Scope violation detection
70
+ - PR preflight with missing and valid `gh`/SSH config
71
+
72
+ ### Technical Verification
73
+
74
+ - Provider command construction uses argument arrays.
75
+ - Long prompt transport avoids shell string concatenation.
76
+ - Context packs exclude sensitive paths.
77
+ - `slice-00` is mandatory and every later slice declares dependencies.
78
+ - CI uses mocks or dry-run, not real provider auth.
79
+
80
+ ## Evidence
81
+
82
+ - `node --test tests/**/*.test.js`
83
+ - `npm run smoke:create-quiver`
84
+ - `node scripts/ci/smoke-cross-platform.js`
85
+ - `bash scripts/ci/smoke-init-docs.sh`
86
+ - `git diff --check`
87
+ - Provider behavior covered with mocks and dry-runs; no real provider auth required for CI.
88
+ - GitHub PR preflight covered with fake `gh` in smoke coverage; no real PR is opened in tests.
89
+
90
+ ## Rollback
91
+
92
+ Revert the spec PR or the affected slice commit. Since each slice maps to one commit, rollback should target the smallest failing slice commit.
93
+
94
+ ## Risks / Notes
95
+
96
+ - Provider CLI behavior must be validated carefully during implementation.
97
+ - Windows quoting and paths with spaces are a primary regression risk.
98
+ - `gh` auth and SSH identity can point to different accounts; preflight must report that clearly.
99
+ - `docs/GITFLOW_PR_GUIDE.md` is not present in this source repo; this PR followed `docs/GITFLOW_PR_GUIDE.md.template` as the available canonical guide. Generated projects do materialize `docs/GITFLOW_PR_GUIDE.md`.
100
+ - This PR targets `main` because `develop` is behind `main` and would include unrelated historical commits in the diff.
@@ -0,0 +1,30 @@
1
+ # CLOSURE BRIEF - slice-00: Spec foundation
2
+
3
+ ## Resumen de lo realizado
4
+
5
+ Pendiente de completar al cerrar la slice.
6
+
7
+ ## Validacion contra criterios de aceptacion
8
+
9
+ - [ ] Spec directory creado.
10
+ - [ ] `slice-00` creado.
11
+ - [ ] Todos los slices tienen `slice.json`, `EXECUTION_BRIEF.md` y `CLOSURE_BRIEF.md`.
12
+ - [ ] Todos los `slice.json` parsean.
13
+ - [ ] No se modifico codigo de producto.
14
+
15
+ ## Cambios relevantes
16
+
17
+ Pendiente.
18
+
19
+ ## Pendientes
20
+
21
+ Pendiente.
22
+
23
+ ## Riesgos remanentes
24
+
25
+ Pendiente.
26
+
27
+ ## Recomendaciones futuras
28
+
29
+ Ejecutar `slice-01` y `slice-02` despues de commitear esta base documental.
30
+
@@ -0,0 +1,61 @@
1
+ # EXECUTION BRIEF - slice-00: Spec foundation
2
+
3
+ **Spec:** quiver-v20-ai-cli-orchestration
4
+ **Slice:** slice-00-spec-foundation
5
+ **Tipo:** docs
6
+
7
+ ## Contexto
8
+
9
+ Esta slice sube al repo la base documental de la spec. Es obligatoria y debe ejecutarse antes de cualquier slice de implementacion. No modifica codigo de producto.
10
+
11
+ ## Objetivo
12
+
13
+ Crear y validar la estructura completa de spec, slices, handoffs, plan de ejecucion y cuerpo de PR para el trabajo de AI CLI orchestration.
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-v20-ai-cli-orchestration/` 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-v20-ai-cli-orchestration/`.
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 tocar `specs/quiver-v21-cli-output-polish/`.
49
+ - No resolver implementacion en esta slice.
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-v20-ai-cli-orchestration/`.
61
+ - [ ] El commit representa solo slice-00.
@@ -0,0 +1,54 @@
1
+ {
2
+ "slice_id": "slice-00-spec-foundation",
3
+ "ticket": "QUIVER-20-00",
4
+ "type": "docs",
5
+ "title": "Commit AI CLI orchestration spec foundation",
6
+ "objective": "Create and commit the documentation foundation for the AI CLI orchestration spec before any implementation slice starts.",
7
+ "description": "Add the spec, status, execution plan, PR body, slice definitions, execution briefs, and closure briefs for the full Quiver v20 AI CLI orchestration work.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "ai-cli-orchestration",
12
+ "branch_name": "feature/QUIVER-20-ai-cli-orchestration"
13
+ },
14
+ "files": [
15
+ "specs/quiver-v20-ai-cli-orchestration/SPEC.md",
16
+ "specs/quiver-v20-ai-cli-orchestration/STATUS.md",
17
+ "specs/quiver-v20-ai-cli-orchestration/EVIDENCE_REPORT.md",
18
+ "specs/quiver-v20-ai-cli-orchestration/EXECUTION_PLAN.md",
19
+ "specs/quiver-v20-ai-cli-orchestration/pr.md",
20
+ "specs/quiver-v20-ai-cli-orchestration/slices/**"
21
+ ],
22
+ "depends_on": [],
23
+ "parallel_safe": "never",
24
+ "parallel_safe_reason": "slice-00 is the mandatory documentation foundation and must land before every implementation slice.",
25
+ "must": [
26
+ "Create SPEC.md with approved requirements, acceptance criteria, scope, risks, and technical plan.",
27
+ "Create STATUS.md with execution rules and open items.",
28
+ "Create EVIDENCE_REPORT.md for slice-level evidence tracking.",
29
+ "Create EXECUTION_PLAN.md with sequential and parallel slice guidance.",
30
+ "Create pr.md following the repository GitFlow PR structure.",
31
+ "Create slice.json, EXECUTION_BRIEF.md, and CLOSURE_BRIEF.md for every planned slice.",
32
+ "Do not modify product code."
33
+ ],
34
+ "not_included": [
35
+ "Implementing quiver ai commands.",
36
+ "Changing CLI runtime code.",
37
+ "Changing package scripts or generated templates."
38
+ ],
39
+ "acceptance": [
40
+ "The spec directory exists under specs/quiver-v20-ai-cli-orchestration.",
41
+ "slice-00 exists and every later slice depends on it directly or indirectly.",
42
+ "Every slice has slice.json, EXECUTION_BRIEF.md, and CLOSURE_BRIEF.md.",
43
+ "pr.md exists for the spec.",
44
+ "All slice.json files parse as valid JSON.",
45
+ "No product code is modified by slice-00."
46
+ ],
47
+ "tests": [
48
+ "git diff --check",
49
+ "find specs/quiver-v20-ai-cli-orchestration -name 'slice.json' -print -exec node -e \"JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))\" {} \\;"
50
+ ],
51
+ "estimated_hours": 1.5,
52
+ "status": "ready",
53
+ "blocked_reason": null
54
+ }
@@ -0,0 +1,39 @@
1
+ # CLOSURE BRIEF - slice-01: AI provider runner
2
+
3
+ ## Resumen de lo realizado
4
+
5
+ Se agrego la base del provider runner para `codex`, `claude` y `gemini`, incluyendo transporte de prompt por stdin/temp-file, dry-run, preflight de CLI, timeout y resultados estructurados.
6
+
7
+ ## Validacion contra criterios de aceptacion
8
+
9
+ - [x] Proveedores `codex`, `claude`, `gemini` soportados.
10
+ - [x] Proveedor invalido falla con mensaje claro.
11
+ - [x] Dry-run no ejecuta procesos.
12
+ - [x] Prompt largo no viaja como shell string unico.
13
+ - [x] Tests no requieren CLIs reales.
14
+
15
+ ## Cambios relevantes
16
+
17
+ - `src/create-quiver/lib/ai/providers.js`
18
+ - `src/create-quiver/lib/ai/prompt-transport.js`
19
+ - `src/create-quiver/lib/ai/preflight.js`
20
+ - `tests/lib/ai-providers.test.js`
21
+ - `tests/lib/ai-prompt-transport.test.js`
22
+
23
+ ## Pendientes
24
+
25
+ - Confirmar manualmente opciones reales de ejecucion para cada CLI antes de documentarlas como estables.
26
+
27
+ ## Riesgos remanentes
28
+
29
+ - `gemini` requiere `--prompt` con valor para entrar en modo headless; se usa un prompt vacio y el contenido real via stdin para evitar argumentos largos.
30
+ - La autenticacion especifica de cada provider queda para una validacion posterior.
31
+
32
+ ## Recomendaciones futuras
33
+
34
+ Validar manualmente cada CLI real fuera de CI antes de publicar la version.
35
+
36
+ ## Validacion ejecutada
37
+
38
+ - `node --test tests/lib/ai-providers.test.js tests/lib/ai-prompt-transport.test.js tests/lib/ai-context-packs.test.js tests/lib/ai-safety.test.js`
39
+ - `git diff --check`
@@ -0,0 +1,63 @@
1
+ # EXECUTION BRIEF - slice-01: AI provider runner
2
+
3
+ **Spec:** quiver-v20-ai-cli-orchestration
4
+ **Slice:** slice-01-ai-provider-runner
5
+ **Tipo:** feature
6
+
7
+ ## Contexto
8
+
9
+ Quiver necesita ejecutar prompts mediante CLIs locales de IA sin depender de comandos shell fragiles. Esta slice crea la base reutilizable para Codex, Claude y Gemini.
10
+
11
+ ## Objetivo
12
+
13
+ Implementar un provider runner mockeable, cross-platform y seguro para prompts largos.
14
+
15
+ ## Alcance
16
+
17
+ - Agregar providers `codex`, `claude`, `gemini`.
18
+ - Validar CLI instalado.
19
+ - Soportar `--dry-run`.
20
+ - Transportar prompts largos por stdin o archivo temporal segun adapter.
21
+ - Devolver resultados estructurados.
22
+
23
+ ## Criterios de aceptacion
24
+
25
+ - Proveedor no soportado falla con lista de proveedores validos.
26
+ - Dry-run no ejecuta procesos.
27
+ - No se concatenan strings shell para ejecutar providers.
28
+ - Los tests no requieren CLIs reales.
29
+ - Paths con espacios estan cubiertos.
30
+
31
+ ## Plan tecnico resumido
32
+
33
+ Crear modulos `providers.js`, `prompt-transport.js` y `preflight.js` bajo `src/create-quiver/lib/ai/`. Usar `spawn`/`execFile` con arrays de argumentos. Permitir inyeccion de runner falso para tests.
34
+
35
+ ## Pasos sugeridos de ejecucion
36
+
37
+ 1. Crear `src/create-quiver/lib/ai/`.
38
+ 2. Implementar registry de providers.
39
+ 3. Implementar transporte seguro de prompt.
40
+ 4. Implementar preflight de CLI.
41
+ 5. Agregar tests unitarios.
42
+ 6. Validar sintaxis y diff.
43
+
44
+ ## Restricciones
45
+
46
+ - No agregar comandos publicos `quiver ai` todavia.
47
+ - No invocar providers reales en tests.
48
+ - No requerir auth real de Codex/Claude/Gemini.
49
+
50
+ ## Riesgos
51
+
52
+ - Diferencias entre CLIs reales.
53
+ - Quoting roto en Windows si se usa shell implicito.
54
+ - Prompts largos que exceden limites de argumentos.
55
+
56
+ ## Checklist de finalizacion
57
+
58
+ - [ ] Tests unitarios pasan.
59
+ - [ ] Dry-run cubierto.
60
+ - [ ] Unsupported provider cubierto.
61
+ - [ ] Missing CLI cubierto.
62
+ - [ ] No hay shell concatenation.
63
+
@@ -0,0 +1,55 @@
1
+ {
2
+ "slice_id": "slice-01-ai-provider-runner",
3
+ "ticket": "QUIVER-20-01",
4
+ "type": "feature",
5
+ "title": "Add AI provider runner and safe prompt transport",
6
+ "objective": "Add a provider abstraction for Codex, Claude, and Gemini CLIs with dry-run, command validation, and safe long-prompt transport.",
7
+ "description": "Implement the core provider runner used by future quiver ai commands. The runner must avoid shell string concatenation, support cross-platform argument arrays, validate missing CLIs, and allow mockable dry-run behavior.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "ai-provider-runner",
12
+ "branch_name": "feature/QUIVER-20-01-ai-provider-runner"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/lib/ai/providers.js",
16
+ "src/create-quiver/lib/ai/prompt-transport.js",
17
+ "src/create-quiver/lib/ai/preflight.js",
18
+ "tests/lib/ai-providers.test.js",
19
+ "tests/lib/ai-prompt-transport.test.js"
20
+ ],
21
+ "depends_on": [
22
+ "slice-00-spec-foundation"
23
+ ],
24
+ "parallel_safe": "after_dependencies",
25
+ "parallel_safe_reason": "Can run after slice-00. It owns provider modules and tests.",
26
+ "must": [
27
+ "Support provider ids: codex, claude, gemini.",
28
+ "Build provider invocations without shell concatenation.",
29
+ "Support dry-run output that includes provider, command, args, prompt transport, and timeout.",
30
+ "Validate missing provider CLIs with actionable errors.",
31
+ "Support prompt transport for long prompts through stdin or temporary files where supported.",
32
+ "Allow provider execution to be mocked in tests.",
33
+ "Return structured results with exit code, stdout, stderr, and error metadata."
34
+ ],
35
+ "not_included": [
36
+ "Adding public quiver ai commands.",
37
+ "Implementing context packs.",
38
+ "Calling real provider CLIs in CI."
39
+ ],
40
+ "acceptance": [
41
+ "Unsupported provider returns a clear error listing codex, claude, and gemini.",
42
+ "Dry-run does not invoke a child process.",
43
+ "Long prompts are not passed as a single shell command string.",
44
+ "Provider command construction handles paths with spaces.",
45
+ "Provider tests pass without Codex, Claude, or Gemini installed."
46
+ ],
47
+ "tests": [
48
+ "node --test tests/lib/ai-providers.test.js tests/lib/ai-prompt-transport.test.js",
49
+ "git diff --check"
50
+ ],
51
+ "estimated_hours": 4,
52
+ "actual_hours": 4,
53
+ "status": "completed",
54
+ "blocked_reason": null
55
+ }