create-quiver 0.12.0 → 0.13.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 (158) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +65 -25
  3. package/README_FOR_AI.md +36 -29
  4. package/ROADMAP.md +22 -3
  5. package/docs/AI_ONBOARDING_PROMPT.md.template +7 -1
  6. package/docs/COMMANDS.md.template +53 -20
  7. package/docs/STATUS.md.template +5 -1
  8. package/docs/WORKFLOW.md.template +13 -11
  9. package/package.json +10 -3
  10. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/EVIDENCE_REPORT.md +293 -0
  11. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/EXECUTION_PLAN.md +58 -0
  12. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/SPEC.md +242 -0
  13. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/STATUS.md +35 -0
  14. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/pr.md +77 -0
  15. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-00-spec-foundation/CLOSURE_BRIEF.md +34 -0
  16. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-00-spec-foundation/EXECUTION_BRIEF.md +52 -0
  17. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-00-spec-foundation/slice.json +52 -0
  18. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-01-cli-contract-compatibility/CLOSURE_BRIEF.md +36 -0
  19. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-01-cli-contract-compatibility/EXECUTION_BRIEF.md +52 -0
  20. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-01-cli-contract-compatibility/slice.json +56 -0
  21. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-02-run-state-phase-locks/CLOSURE_BRIEF.md +43 -0
  22. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-02-run-state-phase-locks/EXECUTION_BRIEF.md +54 -0
  23. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-02-run-state-phase-locks/slice.json +52 -0
  24. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-03-safe-ai-onboarding-docs/CLOSURE_BRIEF.md +35 -0
  25. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-03-safe-ai-onboarding-docs/EXECUTION_BRIEF.md +53 -0
  26. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-03-safe-ai-onboarding-docs/slice.json +54 -0
  27. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-04-agent-profiles-adapters/CLOSURE_BRIEF.md +34 -0
  28. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-04-agent-profiles-adapters/EXECUTION_BRIEF.md +54 -0
  29. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-04-agent-profiles-adapters/slice.json +52 -0
  30. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-05-approval-gates/CLOSURE_BRIEF.md +34 -0
  31. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-05-approval-gates/EXECUTION_BRIEF.md +54 -0
  32. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-05-approval-gates/slice.json +53 -0
  33. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-06-spec-slice-generator/CLOSURE_BRIEF.md +33 -0
  34. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-06-spec-slice-generator/EXECUTION_BRIEF.md +56 -0
  35. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-06-spec-slice-generator/slice.json +55 -0
  36. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-07-slice-execution-planner/CLOSURE_BRIEF.md +33 -0
  37. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-07-slice-execution-planner/EXECUTION_BRIEF.md +54 -0
  38. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-07-slice-execution-planner/slice.json +52 -0
  39. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-08-controlled-slice-execution/CLOSURE_BRIEF.md +39 -0
  40. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-08-controlled-slice-execution/EXECUTION_BRIEF.md +56 -0
  41. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-08-controlled-slice-execution/slice.json +53 -0
  42. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-09-git-worktree-pr-lifecycle/CLOSURE_BRIEF.md +38 -0
  43. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-09-git-worktree-pr-lifecycle/EXECUTION_BRIEF.md +57 -0
  44. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-09-git-worktree-pr-lifecycle/slice.json +52 -0
  45. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-10-validation-errors-fixtures/CLOSURE_BRIEF.md +39 -0
  46. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-10-validation-errors-fixtures/EXECUTION_BRIEF.md +55 -0
  47. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-10-validation-errors-fixtures/slice.json +56 -0
  48. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-11-export-dashboard-migration/CLOSURE_BRIEF.md +36 -0
  49. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-11-export-dashboard-migration/EXECUTION_BRIEF.md +54 -0
  50. package/specs/quiver-v25-ai-first-lifecycle-orchestrator/slices/slice-11-export-dashboard-migration/slice.json +53 -0
  51. package/specs/quiver-v26-0121-smoke-hardening/EVIDENCE_REPORT.md +208 -0
  52. package/specs/quiver-v26-0121-smoke-hardening/EXECUTION_PLAN.md +57 -0
  53. package/specs/quiver-v26-0121-smoke-hardening/SPEC.md +137 -0
  54. package/specs/quiver-v26-0121-smoke-hardening/STATUS.md +32 -0
  55. package/specs/quiver-v26-0121-smoke-hardening/pr.md +96 -0
  56. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-00-docs-foundation/CLOSURE_BRIEF.md +35 -0
  57. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-00-docs-foundation/EXECUTION_BRIEF.md +55 -0
  58. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-00-docs-foundation/slice.json +73 -0
  59. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-01-cli-help-version-contract/CLOSURE_BRIEF.md +38 -0
  60. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-01-cli-help-version-contract/EXECUTION_BRIEF.md +51 -0
  61. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-01-cli-help-version-contract/slice.json +76 -0
  62. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-02-init-doc-links-and-flow-guidance/CLOSURE_BRIEF.md +37 -0
  63. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-02-init-doc-links-and-flow-guidance/EXECUTION_BRIEF.md +52 -0
  64. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-02-init-doc-links-and-flow-guidance/slice.json +75 -0
  65. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-03-ai-approval-review-consistency/CLOSURE_BRIEF.md +37 -0
  66. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-03-ai-approval-review-consistency/EXECUTION_BRIEF.md +53 -0
  67. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-03-ai-approval-review-consistency/slice.json +77 -0
  68. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-04-local-validation-brief-contracts/CLOSURE_BRIEF.md +35 -0
  69. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-04-local-validation-brief-contracts/EXECUTION_BRIEF.md +52 -0
  70. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-04-local-validation-brief-contracts/slice.json +77 -0
  71. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-05-demo-scaffold-readiness/CLOSURE_BRIEF.md +34 -0
  72. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-05-demo-scaffold-readiness/EXECUTION_BRIEF.md +54 -0
  73. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-05-demo-scaffold-readiness/slice.json +84 -0
  74. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-06-plan-graph-scope-performance/CLOSURE_BRIEF.md +35 -0
  75. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-06-plan-graph-scope-performance/EXECUTION_BRIEF.md +53 -0
  76. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-06-plan-graph-scope-performance/slice.json +82 -0
  77. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-07-smoke-release-readiness/CLOSURE_BRIEF.md +35 -0
  78. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-07-smoke-release-readiness/EXECUTION_BRIEF.md +55 -0
  79. package/specs/quiver-v26-0121-smoke-hardening/slices/slice-07-smoke-release-readiness/slice.json +92 -0
  80. package/specs/quiver-v27-reliability-ai-workflow-hardening/AUDIT_V24_V25_V26.md +67 -0
  81. package/specs/quiver-v27-reliability-ai-workflow-hardening/COMMAND_CONTRACTS.md +125 -0
  82. package/specs/quiver-v27-reliability-ai-workflow-hardening/COVERAGE_MATRIX.md +74 -0
  83. package/specs/quiver-v27-reliability-ai-workflow-hardening/EVIDENCE_REPORT.md +179 -0
  84. package/specs/quiver-v27-reliability-ai-workflow-hardening/EXECUTION_PLAN.md +71 -0
  85. package/specs/quiver-v27-reliability-ai-workflow-hardening/SPEC.md +176 -0
  86. package/specs/quiver-v27-reliability-ai-workflow-hardening/STATUS.md +37 -0
  87. package/specs/quiver-v27-reliability-ai-workflow-hardening/pr.md +132 -0
  88. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-00-docs-audit-coverage-and-contracts/CLOSURE_BRIEF.md +36 -0
  89. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-00-docs-audit-coverage-and-contracts/EXECUTION_BRIEF.md +56 -0
  90. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-00-docs-audit-coverage-and-contracts/slice.json +75 -0
  91. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-01-core-state-resolver-and-canonical-statuses/CLOSURE_BRIEF.md +37 -0
  92. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-01-core-state-resolver-and-canonical-statuses/EXECUTION_BRIEF.md +54 -0
  93. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-01-core-state-resolver-and-canonical-statuses/slice.json +79 -0
  94. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-02-json-export-contract-and-machine-output/CLOSURE_BRIEF.md +34 -0
  95. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-02-json-export-contract-and-machine-output/EXECUTION_BRIEF.md +54 -0
  96. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-02-json-export-contract-and-machine-output/slice.json +75 -0
  97. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-03-approved-plan-to-spec-create/CLOSURE_BRIEF.md +36 -0
  98. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-03-approved-plan-to-spec-create/EXECUTION_BRIEF.md +55 -0
  99. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-03-approved-plan-to-spec-create/slice.json +78 -0
  100. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-04-ai-artifact-storage-redaction-and-token-compaction/CLOSURE_BRIEF.md +31 -0
  101. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-04-ai-artifact-storage-redaction-and-token-compaction/EXECUTION_BRIEF.md +55 -0
  102. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-04-ai-artifact-storage-redaction-and-token-compaction/slice.json +77 -0
  103. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-05-worktree-lifecycle-locks-and-recovery/CLOSURE_BRIEF.md +31 -0
  104. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-05-worktree-lifecycle-locks-and-recovery/EXECUTION_BRIEF.md +55 -0
  105. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-05-worktree-lifecycle-locks-and-recovery/slice.json +84 -0
  106. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-06-validation-gates-and-scope-safety/CLOSURE_BRIEF.md +32 -0
  107. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-06-validation-gates-and-scope-safety/EXECUTION_BRIEF.md +57 -0
  108. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-06-validation-gates-and-scope-safety/slice.json +99 -0
  109. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-07-context-analysis-and-doctor-flow/CLOSURE_BRIEF.md +31 -0
  110. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-07-context-analysis-and-doctor-flow/EXECUTION_BRIEF.md +57 -0
  111. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-07-context-analysis-and-doctor-flow/slice.json +88 -0
  112. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-08-cross-platform-help-auth-and-dx/CLOSURE_BRIEF.md +31 -0
  113. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-08-cross-platform-help-auth-and-dx/EXECUTION_BRIEF.md +56 -0
  114. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-08-cross-platform-help-auth-and-dx/slice.json +85 -0
  115. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-09-fixtures-smoke-docs-and-release-readiness/CLOSURE_BRIEF.md +32 -0
  116. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-09-fixtures-smoke-docs-and-release-readiness/EXECUTION_BRIEF.md +56 -0
  117. package/specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-09-fixtures-smoke-docs-and-release-readiness/slice.json +91 -0
  118. package/src/create-quiver/commands/ai.js +652 -27
  119. package/src/create-quiver/commands/flow.js +58 -9
  120. package/src/create-quiver/commands/graph.js +11 -9
  121. package/src/create-quiver/commands/plan.js +7 -16
  122. package/src/create-quiver/commands/spec.js +282 -0
  123. package/src/create-quiver/index.js +409 -31
  124. package/src/create-quiver/lib/actionable-error.js +27 -0
  125. package/src/create-quiver/lib/agent-profiles.js +16 -4
  126. package/src/create-quiver/lib/ai/artifacts.js +318 -0
  127. package/src/create-quiver/lib/ai/context-packs.js +4 -0
  128. package/src/create-quiver/lib/ai/execution-plan.js +16 -1
  129. package/src/create-quiver/lib/ai/executor.js +272 -21
  130. package/src/create-quiver/lib/ai/export-state.js +679 -0
  131. package/src/create-quiver/lib/ai/github.js +162 -2
  132. package/src/create-quiver/lib/ai/onboarding-template.js +215 -2
  133. package/src/create-quiver/lib/ai/plan-review.js +7 -2
  134. package/src/create-quiver/lib/ai/providers.js +4 -3
  135. package/src/create-quiver/lib/ai/run-state.js +414 -0
  136. package/src/create-quiver/lib/ai/spec-generator.js +84 -13
  137. package/src/create-quiver/lib/ai/spec-templates.js +150 -21
  138. package/src/create-quiver/lib/analyze.js +2 -2
  139. package/src/create-quiver/lib/approvals.js +36 -5
  140. package/src/create-quiver/lib/demo.js +189 -14
  141. package/src/create-quiver/lib/doctor.js +154 -0
  142. package/src/create-quiver/lib/git.js +40 -1
  143. package/src/create-quiver/lib/handoff.js +123 -12
  144. package/src/create-quiver/lib/init-docs.js +35 -13
  145. package/src/create-quiver/lib/init-layout.js +9 -0
  146. package/src/create-quiver/lib/json.js +53 -3
  147. package/src/create-quiver/lib/lifecycle.js +52 -3
  148. package/src/create-quiver/lib/locks.js +134 -0
  149. package/src/create-quiver/lib/package-safety.js +7 -0
  150. package/src/create-quiver/lib/paths.js +74 -0
  151. package/src/create-quiver/lib/project-scan.js +74 -0
  152. package/src/create-quiver/lib/project-state-resolver.js +236 -0
  153. package/src/create-quiver/lib/readiness.js +66 -10
  154. package/src/create-quiver/lib/scope.js +52 -8
  155. package/src/create-quiver/lib/slice-graph.js +138 -38
  156. package/src/create-quiver/lib/slice.js +14 -5
  157. package/src/create-quiver/lib/spec-worktrees.js +129 -32
  158. package/src/create-quiver/lib/statuses.js +115 -0
@@ -0,0 +1,55 @@
1
+ {
2
+ "slice_id": "slice-06-spec-slice-generator",
3
+ "ticket": "QUIVER-25-06",
4
+ "type": "feature",
5
+ "title": "Spec, slice, handoff, and PR body generation",
6
+ "objective": "Generate versionable implementation artifacts only after the technical plan is approved.",
7
+ "description": "Create SPEC, STATUS, evidence, execution plan, PR body, mandatory slice-00, slice JSON, execution briefs, closure briefs, and file scope declarations from approved planner output.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "spec-slice-generator",
12
+ "branch_name": "feature/QUIVER-25-06-spec-slice-generator"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/**",
16
+ "docs/**",
17
+ "specs/**",
18
+ "tests/**"
19
+ ],
20
+ "depends_on": [
21
+ "slice-05-approval-gates"
22
+ ],
23
+ "parallel_safe": "no",
24
+ "parallel_safe_reason": "Creates the artifact contract consumed by planning and execution slices.",
25
+ "must": [
26
+ "Generate top-level spec artifacts from approved plan only.",
27
+ "Always create mandatory slice-00.",
28
+ "Create slice.json, EXECUTION_BRIEF.md, and CLOSURE_BRIEF.md for each slice.",
29
+ "Create pr.md body.",
30
+ "Include depends_on, parallel safety, expected read paths, allowed write paths, and validation hints.",
31
+ "Support dry-run previews before writing."
32
+ ],
33
+ "not_included": [
34
+ "Executing slices.",
35
+ "Opening PRs.",
36
+ "Dashboard export."
37
+ ],
38
+ "acceptance": [
39
+ "Spec generation is blocked before plan approval.",
40
+ "Dry-run reports all files that would be written.",
41
+ "Written artifacts match Quiver spec layout.",
42
+ "slice-00 is present and must run first.",
43
+ "Every slice has handoffs and parseable JSON.",
44
+ "PR body is generated."
45
+ ],
46
+ "tests": [
47
+ "node --test tests/**/*.test.js",
48
+ "find <fixture-output> -name \"slice.json\" -print -exec node -e \"JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))\" {} \\;",
49
+ "git diff --check"
50
+ ],
51
+ "estimated_hours": 8,
52
+ "status": "completed",
53
+ "blocked_reason": null,
54
+ "completed_at": "2026-05-22T16:49:40-0300"
55
+ }
@@ -0,0 +1,33 @@
1
+ # CLOSURE BRIEF - slice-07: Slice execution planning and parallel safety
2
+
3
+ ## Summary of Work
4
+
5
+ Connected execution planning to the generated write-scope contract. Slice graph reads now use `allowed_write_paths` as the authoritative write scope when present, execution plans expose read/write/validation metadata for downstream agents, and human output labels dependency levels as waves with parallel-safety rationale.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - [x] Wave 0 verified.
10
+ - [x] Parallel grouping verified.
11
+ - [x] Conflict blocking verified.
12
+ - [x] JSON output verified.
13
+ - [x] Tests run.
14
+
15
+ ## Relevant Changes
16
+
17
+ - `readAllSlices` now resolves write scope from `allowed_write_paths` before falling back to `files`.
18
+ - Execution plan JSON includes `expected_read_paths`, `allowed_write_paths`, and `validation_hints` for each slice.
19
+ - Human execution plan output now uses `Wave <n>` and prints each slice's parallel-safety declaration.
20
+ - Added conflict tests for slices that only declare `allowed_write_paths`.
21
+ - Added CLI JSON coverage for `ai execute-plan --json`.
22
+
23
+ ## Pending
24
+
25
+ None for this slice.
26
+
27
+ ## Remaining Risks
28
+
29
+ - Parallel safety still assumes declared write paths are accurate; later validation should flag incomplete scopes earlier.
30
+
31
+ ## Future Recommendations
32
+
33
+ - Use this planner before any delegated multi-agent execution.
@@ -0,0 +1,54 @@
1
+ # EXECUTION BRIEF - slice-07: Slice execution planning and parallel safety
2
+
3
+ ## Context
4
+
5
+ After specs and slices exist, Quiver must tell the human and agents what can run now, what must wait, and what can safely run in parallel.
6
+
7
+ ## Objective
8
+
9
+ Generate execution plans with waves, dependencies, file conflicts, and JSON output.
10
+
11
+ ## Scope
12
+
13
+ - Execution waves.
14
+ - Dependency validation.
15
+ - Parallel-safety rules.
16
+ - File scope conflict checks.
17
+ - Human and machine-readable output.
18
+
19
+ ## Acceptance Criteria
20
+
21
+ - `slice-00` is always Wave 0.
22
+ - Parallel waves exclude conflicting slices.
23
+ - Blocked slices explain why.
24
+ - JSON output is available.
25
+ - Existing planning commands remain compatible.
26
+
27
+ ## Technical Plan Summary
28
+
29
+ Extend current slice graph/planning machinery with file-scope-aware waves and clearer output.
30
+
31
+ ## Suggested Execution Steps
32
+
33
+ 1. Inspect current slice graph utilities.
34
+ 2. Add file conflict handling based on declared paths.
35
+ 3. Add wave output.
36
+ 4. Add JSON output tests.
37
+ 5. Validate with fixtures.
38
+
39
+ ## Restrictions
40
+
41
+ - Do not execute slices.
42
+ - Do not create commits.
43
+
44
+ ## Risks
45
+
46
+ - False parallel safety can cause agents to edit the same files. Prefer conservative blocking.
47
+
48
+ ## Completion Checklist
49
+
50
+ - [ ] Wave planning tested.
51
+ - [ ] Conflict detection tested.
52
+ - [ ] JSON output tested.
53
+ - [ ] Docs updated.
54
+ - [ ] Evidence appended.
@@ -0,0 +1,52 @@
1
+ {
2
+ "slice_id": "slice-07-slice-execution-planner",
3
+ "ticket": "QUIVER-25-07",
4
+ "type": "feature",
5
+ "title": "Slice execution planning and parallel safety",
6
+ "objective": "Generate a reliable execution plan that shows required order, parallel waves, dependencies, risks, and file conflicts.",
7
+ "description": "Turn generated slices into execution waves while enforcing slice-00 first, dependency validation, parallel safety, and conflict detection.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "slice-execution-planner",
12
+ "branch_name": "feature/QUIVER-25-07-slice-execution-planner"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/**",
16
+ "docs/**",
17
+ "tests/**"
18
+ ],
19
+ "depends_on": [
20
+ "slice-06-spec-slice-generator"
21
+ ],
22
+ "parallel_safe": "no",
23
+ "parallel_safe_reason": "Uses generated artifact contracts and feeds executor behavior.",
24
+ "must": [
25
+ "Generate sequential and parallel execution waves.",
26
+ "Force slice-00 to execute first.",
27
+ "Detect dependency cycles and missing dependencies.",
28
+ "Detect overlapping allowed write paths between parallel slices.",
29
+ "Explain why a slice is blocked or parallel-safe.",
30
+ "Emit human and JSON output."
31
+ ],
32
+ "not_included": [
33
+ "Executing agents.",
34
+ "Creating commits.",
35
+ "Opening PRs."
36
+ ],
37
+ "acceptance": [
38
+ "Execution plan shows Wave 0 for slice-00.",
39
+ "Parallel-ready slices are grouped only when dependencies and file scopes allow it.",
40
+ "Unsafe parallel execution is explained.",
41
+ "JSON output is suitable for downstream agents or dashboards.",
42
+ "Existing `plan`, `graph`, and `next` behavior remains compatible."
43
+ ],
44
+ "tests": [
45
+ "node --test tests/**/*.test.js",
46
+ "git diff --check"
47
+ ],
48
+ "estimated_hours": 6,
49
+ "status": "completed",
50
+ "blocked_reason": null,
51
+ "completed_at": "2026-05-22T16:52:33-0300"
52
+ }
@@ -0,0 +1,39 @@
1
+ # CLOSURE BRIEF - slice-08: Controlled slice execution and evidence
2
+
3
+ ## Summary of Work
4
+
5
+ Implemented controlled slice execution and evidence closure. Direct `ai execute-slice` now uses the generated write-scope contract, blocks dirty or wrong worktrees, validates changed files against declared scope, writes closure/evidence/status artifacts after successful execution, redacts likely secrets from logs, and refuses to close no-op provider runs.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - [x] Prompt-only mode verified.
10
+ - [x] Minimal context verified.
11
+ - [x] Worktree preflight verified.
12
+ - [x] Scope validation verified.
13
+ - [x] Closure/evidence update verified.
14
+ - [x] Secret redaction verified.
15
+ - [x] No-op provider protection verified.
16
+
17
+ ## Relevant Changes
18
+
19
+ - `resolveSliceContext` now prefers `allowed_write_paths` over legacy `files` and exposes generated read/validation metadata.
20
+ - `validateScopeSnapshot` supports simple glob scopes and reports violations against the declared slice scope.
21
+ - `ai execute-slice` validates the declared slice branch, clean tree, provider changes, scope, validations, and lifecycle artifacts.
22
+ - Successful execution updates `CLOSURE_BRIEF.md`, `EVIDENCE_REPORT.md`, `COMMAND_LOG.md`, `STATUS.md`, and `slice.json`.
23
+ - Provider and validation output are redacted before printing, returning, or writing evidence.
24
+ - `ai execute-plan` passes an internal branch-check bypass because delegated worktrees are managed by the orchestrator.
25
+ - README and generated command/workflow docs describe the controlled execution contract.
26
+
27
+ ## Pending
28
+
29
+ None for this slice.
30
+
31
+ ## Remaining Risks
32
+
33
+ - Scope glob support is intentionally lightweight and should stay covered by regression tests if Quiver adds richer path patterns.
34
+ - Direct single-slice execution is stricter than orchestrated delegated execution by design; docs should keep that distinction visible.
35
+
36
+ ## Future Recommendations
37
+
38
+ - Use the captured evidence as input for PR creation and review.
39
+ - In `slice-10`, keep adding fixtures around path scopes, redaction, and worktree failures.
@@ -0,0 +1,56 @@
1
+ # EXECUTION BRIEF - slice-08: Controlled slice execution and evidence
2
+
3
+ ## Context
4
+
5
+ Executors should be cheap and focused. They need only the slice context, clear restrictions, and a closure contract.
6
+
7
+ ## Objective
8
+
9
+ Enable controlled slice execution with minimal context, file scope validation, closure updates, evidence, and logs.
10
+
11
+ ## Scope
12
+
13
+ - Executor prompt/context generation.
14
+ - Prompt-only and execution modes.
15
+ - Worktree and clean-tree checks.
16
+ - File scope validation.
17
+ - Closure/evidence/command-log updates.
18
+ - Secret redaction.
19
+
20
+ ## Acceptance Criteria
21
+
22
+ - Context excludes unrelated files by default.
23
+ - Prompt-only mode works.
24
+ - Dirty or wrong worktree blocks execution.
25
+ - Out-of-scope writes are detected.
26
+ - Closure and evidence are updated.
27
+
28
+ ## Technical Plan Summary
29
+
30
+ Use execution-plan output and agent adapters to prepare focused executor handoffs and validate results before a slice can close.
31
+
32
+ ## Suggested Execution Steps
33
+
34
+ 1. Define executor context pack contract.
35
+ 2. Add prompt-only slice command.
36
+ 3. Add preflight checks.
37
+ 4. Add file scope diff validation.
38
+ 5. Add closure/evidence updates.
39
+ 6. Test manual and delegated paths with fixtures.
40
+
41
+ ## Restrictions
42
+
43
+ - Do not auto-commit in this slice unless already required by existing command behavior.
44
+ - Do not open PRs.
45
+
46
+ ## Risks
47
+
48
+ - File scope validation can miss generated files if path rules are too strict. Report clearly and allow explicit review.
49
+
50
+ ## Completion Checklist
51
+
52
+ - [ ] Context pack tested.
53
+ - [ ] Preflight tested.
54
+ - [ ] Scope validation tested.
55
+ - [ ] Closure/evidence updated.
56
+ - [ ] Evidence appended.
@@ -0,0 +1,53 @@
1
+ {
2
+ "slice_id": "slice-08-controlled-slice-execution",
3
+ "ticket": "QUIVER-25-08",
4
+ "type": "feature",
5
+ "title": "Controlled slice execution and evidence",
6
+ "objective": "Execute or print executor prompts for slices with minimal context, scope enforcement, closure updates, evidence, and command logging.",
7
+ "description": "Prepare executor context packs, support prompt-only/manual/delegated modes, validate touched files, update closure briefs, capture evidence, and support one-slice closure.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "controlled-slice-execution",
12
+ "branch_name": "feature/QUIVER-25-08-controlled-slice-execution"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/**",
16
+ "docs/**",
17
+ "tests/**"
18
+ ],
19
+ "depends_on": [
20
+ "slice-07-slice-execution-planner"
21
+ ],
22
+ "parallel_safe": "no",
23
+ "parallel_safe_reason": "Central executor behavior must be stable before Git/PR automation depends on it.",
24
+ "must": [
25
+ "Prepare minimal executor context from slice metadata and relevant spec excerpts.",
26
+ "Support prompt-only execution.",
27
+ "Validate correct worktree and clean working tree before execution.",
28
+ "Validate modified files against declared slice scope.",
29
+ "Update CLOSURE_BRIEF.md, evidence report, command log, and status.",
30
+ "Redact likely secrets from captured logs."
31
+ ],
32
+ "not_included": [
33
+ "Creating PRs.",
34
+ "Closing worktrees after merge.",
35
+ "Dashboard export."
36
+ ],
37
+ "acceptance": [
38
+ "Executor context excludes unrelated docs/specs by default.",
39
+ "Prompt-only mode produces directly usable prompts.",
40
+ "Dirty or wrong worktree blocks execution.",
41
+ "Out-of-scope file changes are reported or blocked.",
42
+ "Closure and evidence are updated after successful execution.",
43
+ "Logs redact likely secrets."
44
+ ],
45
+ "tests": [
46
+ "node --test tests/**/*.test.js",
47
+ "git diff --check"
48
+ ],
49
+ "estimated_hours": 8,
50
+ "status": "completed",
51
+ "blocked_reason": null,
52
+ "completed_at": "2026-05-22T17:02:29-03:00"
53
+ }
@@ -0,0 +1,38 @@
1
+ # CLOSURE BRIEF - slice-09: Git worktree, commit, PR, and close lifecycle
2
+
3
+ ## Summary of Work
4
+
5
+ Implemented Git/worktree/PR lifecycle hardening around the AI-first flow. Quiver can now dry-run spec worktree creation, refuses dirty-tree slice commits, requires explicit SSH host alias input for PR preflight, blocks PR creation while spec slices remain open, and keeps post-merge worktree cleanup/pull guidance visible.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - [x] Worktree lifecycle verified.
10
+ - [x] Commit-by-slice verified.
11
+ - [x] PR preflight verified.
12
+ - [x] PR body usage verified.
13
+ - [x] Post-merge close verified.
14
+ - [x] Open-slice PR blocking verified.
15
+ - [x] Cross-platform SSH alias guidance verified.
16
+
17
+ ## Relevant Changes
18
+
19
+ - `spec start --dry-run` now previews branch/base/worktree without creating a worktree.
20
+ - CLI wiring passes `--dry-run` into `startSpecWorktree`.
21
+ - `ai execute-slice --commit` blocks when the worktree is dirty before execution, even if `--allow-dirty` is set.
22
+ - GitHub PR preflight requires `--ssh-host-alias` and reports macOS/Linux/Windows setup guidance when missing.
23
+ - PR creation from a generated spec `pr.md` refuses to continue while any slice in that spec is not completed.
24
+ - README, README_FOR_AI, generated command docs, workflow docs, and CLI help describe the hardened lifecycle.
25
+
26
+ ## Pending
27
+
28
+ None for this slice.
29
+
30
+ ## Remaining Risks
31
+
32
+ - SSH alias presence is validated, but key authentication still depends on the user's local SSH configuration.
33
+ - Open-slice blocking is intentionally scoped to standard `specs/<slug>/pr.md` PR bodies.
34
+
35
+ ## Future Recommendations
36
+
37
+ - Keep `gh` and SSH alias guidance platform-specific and actionable.
38
+ - Consider adding a future `ai doctor --ssh-host-alias <alias>` live SSH probe when network access is intentionally available.
@@ -0,0 +1,57 @@
1
+ # EXECUTION BRIEF - slice-09: Git worktree, commit, PR, and close lifecycle
2
+
3
+ ## Context
4
+
5
+ Quiver's intended workflow uses one worktree per spec, one commit per slice, and one PR per spec.
6
+
7
+ ## Objective
8
+
9
+ Implement safe Git/GitHub lifecycle commands around worktrees, slice commits, PR creation, and post-merge cleanup.
10
+
11
+ ## Scope
12
+
13
+ - Worktree create/status/repair/close.
14
+ - Clean-tree checks.
15
+ - Commit-by-slice.
16
+ - GitHub CLI preflight.
17
+ - SSH alias guidance across macOS, Linux, and Windows.
18
+ - PR creation from `pr.md`.
19
+ - Post-merge cleanup guidance.
20
+
21
+ ## Acceptance Criteria
22
+
23
+ - Existing worktrees/branches/PRs are handled safely.
24
+ - Commits refuse unrelated mixed changes.
25
+ - PR preflight catches missing prerequisites.
26
+ - PR uses generated body.
27
+ - Close guides worktree removal and pull.
28
+
29
+ ## Technical Plan Summary
30
+
31
+ Build on controlled slice execution so only closed, validated slice work can be committed and included in PR creation.
32
+
33
+ ## Suggested Execution Steps
34
+
35
+ 1. Audit current worktree and PR commands.
36
+ 2. Add status/repair paths.
37
+ 3. Harden clean-tree and commit checks.
38
+ 4. Add/extend PR preflight.
39
+ 5. Add post-merge close guidance.
40
+ 6. Test with mocked Git/GitHub states.
41
+
42
+ ## Restrictions
43
+
44
+ - Do not auto-merge PRs.
45
+ - Do not create SSH keys without explicit user approval.
46
+
47
+ ## Risks
48
+
49
+ - Git state can vary widely. Prefer diagnostic output over destructive repair.
50
+
51
+ ## Completion Checklist
52
+
53
+ - [ ] Worktree flows tested.
54
+ - [ ] Commit-by-slice tested.
55
+ - [ ] PR preflight tested.
56
+ - [ ] Close flow tested.
57
+ - [ ] Evidence appended.
@@ -0,0 +1,52 @@
1
+ {
2
+ "slice_id": "slice-09-git-worktree-pr-lifecycle",
3
+ "ticket": "QUIVER-25-09",
4
+ "type": "feature",
5
+ "title": "Git worktree, commit, PR, and close lifecycle",
6
+ "objective": "Manage the spec-level Git workflow: worktree per spec, one commit per slice, PR creation, and post-merge cleanup.",
7
+ "description": "Harden worktree creation/status/repair/close, commit-by-slice behavior, GitHub CLI preflight, SSH alias guidance, PR creation, and post-merge pull.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "git-worktree-pr-lifecycle",
12
+ "branch_name": "feature/QUIVER-25-09-git-worktree-pr-lifecycle"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/**",
16
+ "docs/**",
17
+ "tests/**"
18
+ ],
19
+ "depends_on": [
20
+ "slice-08-controlled-slice-execution"
21
+ ],
22
+ "parallel_safe": "no",
23
+ "parallel_safe_reason": "Depends on reliable slice closure and touches shared Git workflow commands.",
24
+ "must": [
25
+ "Create or validate one worktree per spec.",
26
+ "Report existing worktree, branch, remote branch, or PR state.",
27
+ "Require clean working tree before slice execution and commit.",
28
+ "Create one commit per closed slice.",
29
+ "Validate `gh`, authentication, remote, branch, SSH alias guidance, and PR body before PR creation.",
30
+ "Guide post-merge worktree removal and pull."
31
+ ],
32
+ "not_included": [
33
+ "Automatic PR merge.",
34
+ "Credential creation without user action.",
35
+ "Provider execution."
36
+ ],
37
+ "acceptance": [
38
+ "Worktree create/status/repair/close behavior is safe and dry-run-capable where mutating.",
39
+ "Commit by slice refuses mixed unrelated changes.",
40
+ "PR preflight catches missing `gh`, auth, remote, branch, alias, body, or open slices.",
41
+ "PR creation uses the generated `pr.md`.",
42
+ "Post-merge close guides worktree cleanup and local pull."
43
+ ],
44
+ "tests": [
45
+ "node --test tests/**/*.test.js",
46
+ "git diff --check"
47
+ ],
48
+ "estimated_hours": 8,
49
+ "status": "completed",
50
+ "blocked_reason": null,
51
+ "completed_at": "2026-05-22T17:07:41-03:00"
52
+ }
@@ -0,0 +1,39 @@
1
+ # CLOSURE BRIEF - slice-10: Validation, actionable errors, redaction, and fixtures
2
+
3
+ ## Summary of Work
4
+
5
+ Implemented validation hardening with actionable error formatting, doctor environment warnings, an official fixture matrix, and smoke coverage. The slice also improves missing agent-profile guidance and keeps PR preflight failures clearer for humans and agents.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - [x] Error format verified.
10
+ - [x] Dry-run consistency verified.
11
+ - [x] Redaction verified.
12
+ - [x] Fixture matrix verified.
13
+ - [x] Smokes run.
14
+ - [x] Doctor environment warnings verified.
15
+ - [x] Missing agent profile guidance verified.
16
+
17
+ ## Relevant Changes
18
+
19
+ - Added `src/create-quiver/lib/actionable-error.js`.
20
+ - Added actionable error output for missing agent profile, missing SSH alias, and open-slice PR blocking.
21
+ - Added doctor environment warning collection for Node, npm, git, gh, gh auth, shell, write permission, and spaced paths.
22
+ - Added `tests/fixtures/validation-errors/matrix.json` and `scripts/ci/smoke-doctor-fixtures.js`.
23
+ - Added `smoke:doctor-fixtures` to `package.json`.
24
+ - Added tests for environment warnings, actionable error output, missing profile guidance, and fixture matrix.
25
+ - Updated README, README_FOR_AI, and command docs.
26
+
27
+ ## Pending
28
+
29
+ None for this slice.
30
+
31
+ ## Remaining Risks
32
+
33
+ - Doctor environment checks intentionally warn instead of fail.
34
+ - The fixture matrix manifest should keep expanding with future dogfooding bugs.
35
+
36
+ ## Future Recommendations
37
+
38
+ - Treat every bug found in dogfooding as a new fixture candidate.
39
+ - Add deeper per-state fixture directories if a future bug requires filesystem-level reproduction.
@@ -0,0 +1,55 @@
1
+ # EXECUTION BRIEF - slice-10: Validation, actionable errors, redaction, and fixtures
2
+
3
+ ## Context
4
+
5
+ The lifecycle is only production-ready if failures are understandable and edge cases are covered by fixtures.
6
+
7
+ ## Objective
8
+
9
+ Harden validation, errors, redaction, dry-runs, doctor checks, and fixture coverage.
10
+
11
+ ## Scope
12
+
13
+ - Actionable error format.
14
+ - Dry-run consistency checks.
15
+ - Secret redaction.
16
+ - Cross-platform doctor checks.
17
+ - Fixture matrix and tests.
18
+
19
+ ## Acceptance Criteria
20
+
21
+ - Errors include failure, impact, fix, and next command.
22
+ - Mutating commands support dry-run or justify why not.
23
+ - Logs redact likely secrets.
24
+ - Fixture matrix covers required project states.
25
+ - Smoke/tests cover the matrix.
26
+
27
+ ## Technical Plan Summary
28
+
29
+ Create shared error/redaction/dry-run test helpers and use fixture projects to prevent partial fixes.
30
+
31
+ ## Suggested Execution Steps
32
+
33
+ 1. Define error output contract.
34
+ 2. Add redaction tests.
35
+ 3. Build fixture matrix.
36
+ 4. Add doctor validations.
37
+ 5. Add smoke coverage.
38
+ 6. Run full targeted test set.
39
+
40
+ ## Restrictions
41
+
42
+ - Do not publish a package.
43
+ - Do not expose real env values in test output.
44
+
45
+ ## Risks
46
+
47
+ - Fixture setup can become heavy. Keep fixtures focused and reusable.
48
+
49
+ ## Completion Checklist
50
+
51
+ - [ ] Error contract implemented.
52
+ - [ ] Redaction tested.
53
+ - [ ] Fixture matrix added.
54
+ - [ ] Smokes updated.
55
+ - [ ] Evidence appended.
@@ -0,0 +1,56 @@
1
+ {
2
+ "slice_id": "slice-10-validation-errors-fixtures",
3
+ "ticket": "QUIVER-25-10",
4
+ "type": "quality",
5
+ "title": "Validation, actionable errors, redaction, and fixtures",
6
+ "objective": "Harden lifecycle behavior with actionable errors, dry-run consistency, redaction, cross-platform checks, and fixture coverage.",
7
+ "description": "Add production-grade validation and tests for the AI-first lifecycle across new, existing, older, monorepo, dirty git, no git, no gh, path-with-spaces, docs-conflict, and missing-agent scenarios.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "validation-errors-fixtures",
12
+ "branch_name": "feature/QUIVER-25-10-validation-errors-fixtures"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/**",
16
+ "docs/**",
17
+ "tests/**",
18
+ "scripts/**"
19
+ ],
20
+ "depends_on": [
21
+ "slice-01-cli-contract-compatibility",
22
+ "slice-02-run-state-phase-locks",
23
+ "slice-08-controlled-slice-execution"
24
+ ],
25
+ "parallel_safe": "yes",
26
+ "parallel_safe_reason": "Can run beside export/migration if fixture and validation files do not overlap.",
27
+ "must": [
28
+ "Standardize actionable error shape.",
29
+ "Ensure write-capable commands have dry-run behavior or explicit justification.",
30
+ "Redact likely secrets from logs/evidence.",
31
+ "Add cross-platform doctor checks for Node, npm, git, gh, shell, permissions, paths with spaces, and auth hints.",
32
+ "Add official fixtures for the major project states."
33
+ ],
34
+ "not_included": [
35
+ "Dashboard export implementation.",
36
+ "Provider-specific feature expansion.",
37
+ "Package publishing."
38
+ ],
39
+ "acceptance": [
40
+ "Errors explain what failed, why it matters, how to fix it, and next command.",
41
+ "Dry-run behavior is consistent for mutating commands.",
42
+ "Secret-like output is redacted before writing logs.",
43
+ "Fixtures cover new, existing, old Quiver, monorepo, no git, dirty git, no gh, paths with spaces, docs contradiction, and missing agent profile.",
44
+ "Tests and smoke commands validate the fixture matrix."
45
+ ],
46
+ "tests": [
47
+ "node --test tests/**/*.test.js",
48
+ "npm run smoke:create-quiver",
49
+ "npm run smoke:guided-workflow",
50
+ "git diff --check"
51
+ ],
52
+ "estimated_hours": 8,
53
+ "status": "completed",
54
+ "blocked_reason": null,
55
+ "completed_at": "2026-05-22T17:13:38-03:00"
56
+ }