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,71 @@
1
+ # Execution Plan - Quiver v27
2
+
3
+ ## Wave 0 - Required Foundation
4
+
5
+ 1. `slice-00-docs-audit-coverage-and-contracts` - completed
6
+ - Must run first.
7
+ - Audits docs/code/tests against Pixel Quiver evidence.
8
+ - Defines the contracts that prevent partial fixes.
9
+
10
+ ## Wave 1 - Shared Model
11
+
12
+ Run sequentially:
13
+
14
+ 1. `slice-01-core-state-resolver-and-canonical-statuses` - completed
15
+
16
+ This slice owns the state model used by later command fixes.
17
+
18
+ ## Wave 2 - Export and Spec Generation
19
+
20
+ Run after Wave 1. Prefer sequential order:
21
+
22
+ 1. `slice-02-json-export-contract-and-machine-output` - completed
23
+ 2. `slice-03-approved-plan-to-spec-create` - completed
24
+
25
+ These touch shared AI/spec data contracts and should not run in parallel unless file scopes are proven independent.
26
+
27
+ ## Wave 3 - AI Artifacts and Worktrees
28
+
29
+ Can run in parallel after Wave 1 if write scopes do not overlap:
30
+
31
+ 1. `slice-04-ai-artifact-storage-redaction-and-token-compaction` - completed
32
+ 2. `slice-05-worktree-lifecycle-locks-and-recovery` - completed
33
+
34
+ Status: Wave 3 is complete.
35
+
36
+ ## Wave 4 - Validation Gates
37
+
38
+ Run after Wave 3:
39
+
40
+ 1. `slice-06-validation-gates-and-scope-safety` - completed
41
+
42
+ Status: Wave 4 is complete.
43
+
44
+ ## Wave 5 - Context and DX
45
+
46
+ Run after Wave 4:
47
+
48
+ 1. `slice-07-context-analysis-and-doctor-flow` - completed
49
+ 2. `slice-08-cross-platform-help-auth-and-dx` - completed
50
+
51
+ `slice-08` depends on `slice-07` because help/auth guidance should reference the hardened diagnostics contract.
52
+
53
+ Status: Wave 5 is complete.
54
+
55
+ ## Wave 6 - Final Readiness
56
+
57
+ Run last:
58
+
59
+ 1. `slice-09-fixtures-smoke-docs-and-release-readiness`
60
+
61
+ This slice validates the whole package from source and tarball.
62
+
63
+ Status: Wave 6 is complete.
64
+
65
+ ## Parallel Safety Notes
66
+
67
+ - Keep one commit per slice.
68
+ - Do not run slices in parallel when `allowed_write_paths` overlap.
69
+ - `slice-00`, `slice-01`, `slice-02`, `slice-03`, `slice-06`, and `slice-09` are sequential checkpoints.
70
+ - `slice-04` and `slice-05` are the main candidates for parallel execution after `slice-01`.
71
+ - Do not publish npm from this spec.
@@ -0,0 +1,176 @@
1
+ # Quiver v27 - Reliability and AI Workflow Hardening
2
+
3
+ **Date:** 2026-05-24
4
+ **Status:** Active
5
+ **Source:** Pixel Quiver dogfooding evidence, final worktree traceability
6
+
7
+ Slice numbering resets here. This spec intentionally starts at `slice-00`.
8
+
9
+ ## Problem
10
+
11
+ Real use of Quiver in Pixel Quiver exposed that several AI-first workflow areas are still fragile even though related capabilities were introduced across v24, v25, and v26.
12
+
13
+ The current risk is not a missing single feature. The risk is systemic: commands can disagree about specs/slices, machine-readable output is not stable enough for dashboards, `spec create` can generate incomplete scaffolds from an approved plan, dry-run behavior is not consistently read-only, and validation/worktree guidance can leave users or agents in ambiguous states.
14
+
15
+ ## Objective
16
+
17
+ Make Quiver reliable for production-grade AI-first WDD + SDD workflows by hardening the core state model, command contracts, spec/slice generation, exports, AI artifacts, worktrees, validations, context preparation, cross-platform DX, and release evidence.
18
+
19
+ ## Evidence Sources
20
+
21
+ Primary requirement inputs are the final Pixel Quiver dogfooding files:
22
+
23
+ - `/Users/fabrijk/Documents/Work/Proyectos Personales/nika/.worktrees/Pixel Quiver/feature-REAL-QUIVER-AI-LIFECYCLE-01-quiver-ai-config-and-context/QUIVER_PROBLEMS.md`
24
+ - `/Users/fabrijk/Documents/Work/Proyectos Personales/nika/.worktrees/Pixel Quiver/feature-REAL-QUIVER-AI-LIFECYCLE-01-quiver-ai-config-and-context/QUIVER_IMPROVEMENT_SUGGESTIONS.md`
25
+ - `/Users/fabrijk/Documents/Work/Proyectos Personales/nika/.worktrees/Pixel Quiver/feature-REAL-QUIVER-AI-LIFECYCLE-01-quiver-ai-config-and-context/COMMAND_LOG.md`
26
+
27
+ The final traceability set contains:
28
+
29
+ - `QP-001` to `QP-019`
30
+ - `QIS-001` to `QIS-022`
31
+
32
+ ## Core Decisions
33
+
34
+ - Audit existing v24/v25/v26 behavior before changing code.
35
+ - Treat `README_FOR_AI.md` as the repository source of truth.
36
+ - Keep `npx create-quiver` as the canonical bootstrap command.
37
+ - Preserve existing command names and compatibility unless a breaking change is explicitly justified.
38
+ - Define shared contracts before fixing individual commands.
39
+ - Make `slice.json` and `.quiver/` operational state the source of truth; visible docs are derived and validated.
40
+ - Keep `--dry-run` strictly read-only.
41
+ - Keep machine-readable output parseable without cleanup.
42
+ - Keep one persistent worktree per spec and one commit per slice; delegated temporary worktrees remain an internal execution mode.
43
+ - Do not publish npm or open PRs from this spec unless explicitly requested after implementation and validation.
44
+
45
+ ## Scope
46
+
47
+ ### Included
48
+
49
+ - Audit and coverage matrix for all `QP-*` and `QIS-*`.
50
+ - Command contracts: exit codes, stdout/stderr, dry-run, write classes, idempotency, atomic writes, path safety, root detection, package manager detection, and deterministic ordering.
51
+ - Unified state resolver for specs, slices, runs, approvals, agents, evidence, worktrees, status, and source metadata.
52
+ - Canonical status catalogs for specs, slices, runs, approvals, agents, and datasets.
53
+ - JSON export contract for dashboards and agents.
54
+ - Alignment between `ai export` and the stable export contract.
55
+ - `spec create` generation from a reviewed and approved technical plan.
56
+ - Structured approved-plan slice block validation.
57
+ - Clean AI drafts, separated raw logs, redaction, and token compaction.
58
+ - Worktree lifecycle hardening, locks, recovery, and no nested worktree guidance.
59
+ - Validation gates for `check-slice`, `check-scope`, `check-handoff`, and `spec validate`.
60
+ - Context and diagnostics hardening for `analyze`, `prepare-context`, `flow`, and `doctor`.
61
+ - Cross-platform DX for macOS, Linux, Windows PowerShell, Git Bash, and WSL.
62
+ - GitHub auth diagnostics and help/error messages.
63
+ - Real/sanitized fixtures and smoke tests, including tarball/package validation.
64
+
65
+ ### Excluded
66
+
67
+ - Building a web dashboard inside Quiver core.
68
+ - Publishing npm.
69
+ - Opening a PR.
70
+ - Replacing the WDD + SDD methodology.
71
+ - Removing existing legacy compatibility without an explicit migration path.
72
+ - Storing provider credentials or API keys.
73
+
74
+ ## Acceptance Criteria
75
+
76
+ 1. Given the v27 spec is created, when `slice-00` completes, then every `QP-*` and `QIS-*` is mapped to a slice, command area, risk, and validation strategy.
77
+ 2. Given a command supports `--dry-run`, when it completes, then no repository file changes, including `.quiver/`, `docs/`, and `specs/`.
78
+ 3. Given a command emits `--format json`, when it succeeds, then `stdout` is valid JSON parseable without removing logs or human text.
79
+ 4. Given a command fails, when it exits, then it writes the error to `stderr`, exits non-zero, and leaves previous valid state intact or reports exact partial state.
80
+ 5. Given Quiver resolves project state, when commands inspect specs/slices, then classic and AI commands use the same resolver and agree on status, dependencies, completed slices, runs, approvals, agents, and evidence.
81
+ 6. Given a project has completed slices, when export runs with `--include-completed`, then completed specs/slices appear in deterministic order.
82
+ 7. Given Quiver exports JSON, when a dashboard consumes it, then the payload includes schema version, dataset source, generated timestamp, source metadata, warnings, specs, slices, agents, runs, approvals, blockers, evidence, next steps, lifecycle, and aggregates.
83
+ 8. Given an approved technical plan includes a structured slice block, when `spec create` runs, then it creates the approved spec, slices, handoffs, execution plan, and PR body without generic fallback.
84
+ 9. Given an approved technical plan lacks a parseable structured slice block, when `spec create` runs, then it fails before writing files and prints the expected format.
85
+ 10. Given an AI provider returns prompt echo, logs, or mixed output, when Quiver persists drafts, then the useful draft is clean and raw logs are stored separately with redaction.
86
+ 11. Given feedback is near provider context limits, when `ai revise` runs, then Quiver compacts safely or requests smaller input before exceeding limits.
87
+ 12. Given a spec worktree exists, when `spec start`, `spec status`, or slice execution commands run, then Quiver reuses the persistent spec worktree and avoids nested or conflicting worktrees.
88
+ 13. Given a worktree or lock is stale, missing, dirty, or manually removed, when Quiver detects it, then it reports recovery steps without corrupting state.
89
+ 14. Given a slice is checked locally, when `check-slice --local` runs, then it validates all local preconditions required by later execution or explicitly lists skipped checks.
90
+ 15. Given `check-scope` receives `--base` or a slice declares `git.base_branch`, when it runs, then it uses that base before falling back.
91
+ 16. Given a handoff/brief is incomplete, when `check-handoff` runs, then it prints the missing heading, a minimal template, and supported aliases where applicable.
92
+ 17. Given a path is outside the project root or attempts traversal, when a write path is resolved, then Quiver rejects it.
93
+ 18. Given Quiver runs in a simple repo, subdirectory, worktree, or basic monorepo, when it resolves the root, then it uses or reports the project root clearly.
94
+ 19. Given a project uses npm, pnpm, yarn, or bun, when Quiver suggests package commands, then it respects the detected package manager.
95
+ 20. Given a project path contains spaces, when Quiver prints commands, then examples are copy-safe for macOS, Linux, Windows PowerShell, Git Bash, and WSL.
96
+ 21. Given GitHub auth is missing or ambiguous, when `ai doctor` or PR preflight runs, then Quiver reports account/scopes/alias expectations and the next safe command.
97
+ 22. Given old `.quiver/` state exists, when `migrate --dry-run` runs, then it reports exactly what would be updated and preserves existing data.
98
+ 23. Given fixtures are added from real projects, when committed, then they are sanitized and do not expose unnecessary personal paths or credentials.
99
+ 24. Given release readiness is validated, when final smoke runs, then it uses the packaged tarball or installed package path, not only local source files.
100
+
101
+ ## Coverage Matrix
102
+
103
+ The full coverage matrix lives in `COVERAGE_MATRIX.md`. Summary:
104
+
105
+ | Evidence | Covered by |
106
+ |---|---|
107
+ | QP-001, QIS-001 | slice-07 |
108
+ | QP-002, QIS-002 | slice-08 |
109
+ | QP-003, QIS-006 | slice-01, slice-02 |
110
+ | QP-004, QIS-009 | slice-08 |
111
+ | QP-005, QIS-007 | slice-07 |
112
+ | QP-006, QIS-008 | slice-07 |
113
+ | QP-007, QIS-010 | slice-07, slice-08 |
114
+ | QP-008, QIS-008 | slice-00, slice-07 |
115
+ | QP-009, QIS-012 | slice-04 |
116
+ | QP-010, QIS-013 | slice-04 |
117
+ | QP-011, QIS-014, QIS-015 | slice-03 |
118
+ | QP-012 | slice-03 |
119
+ | QP-013, QIS-016 | slice-06 |
120
+ | QP-014, QIS-017 | slice-07 |
121
+ | QP-015, QIS-018 | slice-07 |
122
+ | QP-016, QIS-019 | slice-06 |
123
+ | QP-017, QIS-020 | slice-06 |
124
+ | QP-018, QIS-021 | slice-05 |
125
+ | QP-019, QIS-004, QIS-022 | slice-02 |
126
+ | QIS-003 | slice-06 |
127
+ | QIS-005 | slice-06 |
128
+ | QIS-011 | slice-08 |
129
+
130
+ ## Technical Plan
131
+
132
+ 1. Publish a documentation-only foundation that audits current docs, code, tests, and dogfooding evidence.
133
+ 2. Define command contracts and the shared internal state model before command-specific fixes.
134
+ 3. Build or refactor a core resolver that every relevant command can consume.
135
+ 4. Define and test a stable JSON export contract with pure machine output.
136
+ 5. Make `spec create` require a reviewed, approved, structured plan and fail safely otherwise.
137
+ 6. Clean AI artifact persistence, raw logs, redaction, and token compaction.
138
+ 7. Harden worktree, lock, branch, and recovery behavior for the spec/slice lifecycle.
139
+ 8. Harden validation gates and scope/path safety.
140
+ 9. Harden context commands, diagnostics, first-use guidance, and cross-platform help.
141
+ 10. Validate with fixtures, command tests, smokes, tarball/package smoke, docs sync, and release readiness.
142
+
143
+ ## Slice Roadmap
144
+
145
+ | Slice | Title | Status | Dependencies |
146
+ |---|---|---|---|
147
+ | slice-00 | Docs audit, coverage, and contracts | completed | none |
148
+ | slice-01 | Core state resolver and canonical statuses | completed | slice-00 |
149
+ | slice-02 | JSON export contract and machine output | completed | slice-01 |
150
+ | slice-03 | Approved plan to spec create | completed | slice-01, slice-02 |
151
+ | slice-04 | AI artifact storage, redaction, and token compaction | completed | slice-01 |
152
+ | slice-05 | Worktree lifecycle, locks, and recovery | completed | slice-01 |
153
+ | slice-06 | Validation gates and scope safety | completed | slice-01, slice-05 |
154
+ | slice-07 | Context analysis and doctor flow | completed | slice-01, slice-06 |
155
+ | slice-08 | Cross-platform help, auth, and DX | completed | slice-07 |
156
+ | slice-09 | Fixtures, smoke, docs, and release readiness | completed | slice-02, slice-03, slice-04, slice-05, slice-06, slice-07, slice-08 |
157
+
158
+ ## Validation Strategy
159
+
160
+ - `node --test tests/**/*.test.js`
161
+ - `npm run smoke:doctor-fixtures`
162
+ - `npm run smoke:guided-workflow`
163
+ - `npm run smoke:create-quiver`
164
+ - `npm run package:quiver`
165
+ - Tarball smoke from `/private/tmp`
166
+ - `git diff --check`
167
+ - JSON parse validation for every `slice.json`
168
+ - `check-handoff` for every `EXECUTION_BRIEF.md` and `CLOSURE_BRIEF.md`
169
+
170
+ ## Risks
171
+
172
+ - Some v24/v25/v26 docs may claim behavior that is only partially implemented.
173
+ - A shared resolver can create broad regressions if introduced without command-by-command compatibility tests.
174
+ - Export schema stabilization can break ad-hoc consumers unless old behavior is kept or documented.
175
+ - Worktree lifecycle changes can affect existing users with in-flight branches.
176
+ - Real fixtures can expose local paths unless sanitized.
@@ -0,0 +1,37 @@
1
+ # Status - Quiver v27 Reliability and AI Workflow Hardening
2
+
3
+ ## Overall Status
4
+
5
+ - Phase: implemented, pending package release
6
+ - Progress: 100%
7
+ - Current recommended slice: none
8
+ - Source evidence: Pixel Quiver final dogfooding traceability (`QP-001` to `QP-019`, `QIS-001` to `QIS-022`)
9
+
10
+ ## Slices
11
+
12
+ | Slice | Title | Status | Progress | Dependencies |
13
+ |---|---|---|---:|---|
14
+ | slice-00 | Docs audit, coverage, and contracts | completed | 100% | none |
15
+ | slice-01 | Core state resolver and canonical statuses | completed | 100% | slice-00 |
16
+ | slice-02 | JSON export contract and machine output | completed | 100% | slice-01 |
17
+ | slice-03 | Approved plan to spec create | completed | 100% | slice-01, slice-02 |
18
+ | slice-04 | AI artifact storage, redaction, and token compaction | completed | 100% | slice-01 |
19
+ | slice-05 | Worktree lifecycle, locks, and recovery | completed | 100% | slice-01 |
20
+ | slice-06 | Validation gates and scope safety | completed | 100% | slice-01, slice-05 |
21
+ | slice-07 | Context analysis and doctor flow | completed | 100% | slice-01, slice-06 |
22
+ | slice-08 | Cross-platform help, auth, and DX | completed | 100% | slice-07 |
23
+ | slice-09 | Fixtures, smoke, docs, and release readiness | completed | 100% | slice-02, slice-03, slice-04, slice-05, slice-06, slice-07, slice-08 |
24
+
25
+ ## Blockers
26
+
27
+ - No implementation blockers after `slice-09`.
28
+
29
+ ## Known Production Concerns
30
+
31
+ - v27 is implemented and validated from source and packaged tarball, but npm publication is not part of this spec.
32
+ - The final Pixel Quiver source files live outside this repo and must remain evidence only; committed fixtures stay sanitized and synthetic.
33
+ - `README_FOR_AI.md`, `ROADMAP.md`, `CHANGELOG.md`, and `README.md` were synchronized with the implemented-but-unpublished state.
34
+
35
+ ## Next Step
36
+
37
+ Open the PR or release branch for v27. Publish only after human review and the normal release process.
@@ -0,0 +1,132 @@
1
+ # Quiver v27 - Reliability and AI Workflow Hardening
2
+
3
+ ## Title
4
+
5
+ Quiver v27 - Reliability and AI Workflow Hardening
6
+
7
+ ## Summary
8
+
9
+ This PR hardens Quiver after Pixel Quiver dogfooding surfaced workflow reliability issues across specs, slices, AI lifecycle commands, validation, worktrees, context diagnostics, and release readiness.
10
+
11
+ Main changes:
12
+
13
+ - Aligns classic and AI command state discovery through a shared resolver and canonical statuses.
14
+ - Stabilizes lifecycle JSON exports for dashboards and agents.
15
+ - Makes `spec create`, AI artifacts, worktrees, validation gates, context commands, and cross-platform DX safer.
16
+ - Adds final fixture, smoke, full-suite, and packaged CLI validation evidence.
17
+
18
+ ## Scope
19
+
20
+ - `QP-001` to `QP-019`
21
+ - `QIS-001` to `QIS-022`
22
+ - Specs/slices, AI lifecycle, exports, validators, worktrees, docs, tests, fixtures, and release readiness.
23
+ - npm publication is intentionally out of scope.
24
+
25
+ ## Files
26
+
27
+ - `src/create-quiver/**`
28
+ - `bin/create-quiver.js`
29
+ - `docs/**`
30
+ - `docs-template/**`
31
+ - `tests/**`
32
+ - `scripts/**`
33
+ - `package.json`
34
+ - `README.md`
35
+ - `README_FOR_AI.md`
36
+ - `ROADMAP.md`
37
+ - `CHANGELOG.md`
38
+ - `specs/quiver-v27-reliability-ai-workflow-hardening/**`
39
+
40
+ ## How to Test (DETAILED - REQUIRED)
41
+
42
+ ### Required Environment
43
+
44
+ - Node.js compatible with the current repository test setup.
45
+ - npm available.
46
+ - Git available.
47
+ - No npm publishing credentials are required for this PR.
48
+
49
+ ### Worktree Access
50
+
51
+ From the repository root:
52
+
53
+ ```bash
54
+ git status --short --branch
55
+ ```
56
+
57
+ Expected:
58
+
59
+ - Branch contains the v27 commits.
60
+ - No unrelated tracked changes are required.
61
+ - Untracked local files should not be included unless intentionally staged.
62
+
63
+ ### Run the Project
64
+
65
+ This is a CLI framework repository. Validate the CLI directly from source:
66
+
67
+ ```bash
68
+ node bin/create-quiver.js --help
69
+ node bin/create-quiver.js flow
70
+ ```
71
+
72
+ ### Use Cases
73
+
74
+ Validate the completed v27 spec:
75
+
76
+ ```bash
77
+ node bin/create-quiver.js spec validate specs/quiver-v27-reliability-ai-workflow-hardening
78
+ node bin/create-quiver.js plan --spec quiver-v27-reliability-ai-workflow-hardening --include-completed
79
+ node bin/create-quiver.js graph --spec quiver-v27-reliability-ai-workflow-hardening --include-completed
80
+ node bin/create-quiver.js next --spec quiver-v27-reliability-ai-workflow-hardening
81
+ ```
82
+
83
+ Expected:
84
+
85
+ - Spec validation passes.
86
+ - Plan and graph show all 10 v27 slices as completed.
87
+ - `next` reports no ready slices.
88
+
89
+ ### Technical Verification
90
+
91
+ Run:
92
+
93
+ ```bash
94
+ node --test tests/**/*.test.js
95
+ npm run smoke:doctor-fixtures
96
+ npm run smoke:create-quiver
97
+ npm run smoke:guided-workflow
98
+ npm run package:quiver
99
+ git diff --check
100
+ ```
101
+
102
+ Expected:
103
+
104
+ - Full test suite passes.
105
+ - All smoke suites pass.
106
+ - Package smoke validates the generated tarball.
107
+ - No whitespace errors are reported.
108
+
109
+ ## Evidence
110
+
111
+ - `node --test tests/**/*.test.js` passed with 356 tests.
112
+ - `npm run smoke:doctor-fixtures` passed.
113
+ - `npm run smoke:create-quiver` passed.
114
+ - `npm run smoke:guided-workflow` passed.
115
+ - `npm run package:quiver` passed and validated `create-quiver-0.12.1.tgz`.
116
+ - Tarball/package smoke validated installed CLI behavior for help, `flow`, and `ai agent set --dry-run`.
117
+ - `node bin/create-quiver.js spec validate specs/quiver-v27-reliability-ai-workflow-hardening` passed.
118
+ - `node bin/create-quiver.js next --spec quiver-v27-reliability-ai-workflow-hardening` reported no ready slices.
119
+ - `git diff --check` passed.
120
+
121
+ ## Rollback
122
+
123
+ Revert the v27 commits from this PR. Since the changes are organized as one spec with one commit per slice, rollback can be done by reverting the affected slice commits in reverse order.
124
+
125
+ If a release has already been published, publish a follow-up patch release after reverting or fixing the affected behavior.
126
+
127
+ ## Risks / Notes
128
+
129
+ - Shared resolver changes can affect many commands.
130
+ - Export schema changes require backward-compatible handling or migration notes.
131
+ - Worktree lifecycle changes must preserve existing user workflows.
132
+ - v27 is implemented and release-ready from source/package validation, but npm publication is intentionally outside this spec.
@@ -0,0 +1,36 @@
1
+ # CLOSURE BRIEF - slice-00: Docs audit, coverage, and contracts
2
+
3
+ ## Summary
4
+
5
+ Completed the documentation foundation for v27 before any product-code implementation.
6
+
7
+ This slice added the full QP/QIS coverage matrix, shared command contracts, and a v24/v25/v26 audit so later slices have a concrete production contract instead of fixing command behavior in isolation.
8
+
9
+ ## Validation Against Acceptance Criteria
10
+
11
+ - The v27 spec package exists with `SPEC.md`, `STATUS.md`, `EXECUTION_PLAN.md`, `EVIDENCE_REPORT.md`, `pr.md`, and all slice folders.
12
+ - `COVERAGE_MATRIX.md` maps every `QP-001..QP-019` and `QIS-001..QIS-022` to at least one slice with risk and validation strategy.
13
+ - `COMMAND_CONTRACTS.md` documents exit codes, stdout/stderr behavior, dry-run, write class, idempotency, atomic writes, path safety, root detection, package managers, deterministic ordering, and legacy/strict behavior.
14
+ - `AUDIT_V24_V25_V26.md` documents existing implementation surfaces and remaining dogfooding gaps.
15
+ - `README_FOR_AI.md`, `ROADMAP.md`, and `CHANGELOG.md` were kept aligned with the current state: v26 shipped, v27 active but not published.
16
+ - No product code was modified.
17
+
18
+ ## Changes
19
+
20
+ - Added `specs/quiver-v27-reliability-ai-workflow-hardening/COVERAGE_MATRIX.md`.
21
+ - Added `specs/quiver-v27-reliability-ai-workflow-hardening/COMMAND_CONTRACTS.md`.
22
+ - Added `specs/quiver-v27-reliability-ai-workflow-hardening/AUDIT_V24_V25_V26.md`.
23
+ - Updated v27 `SPEC.md`, `STATUS.md`, and `EVIDENCE_REPORT.md` to mark `slice-00` complete and set `slice-01` as the next recommended slice.
24
+ - Updated this closure brief and `slice.json` with completion state.
25
+
26
+ ## Remaining Risks
27
+
28
+ - The audit is documentary evidence only. Implementation slices must still add regression tests for each dogfooding failure.
29
+ - Some existing v24/v25/v26 tests may pass while behavior remains insufficient for the exact Pixel Quiver scenarios.
30
+ - Pixel Quiver source files contain local paths and must be sanitized before becoming fixtures.
31
+
32
+ ## Follow-up Recommendations
33
+
34
+ - Start `slice-01-core-state-resolver-and-canonical-statuses` next because every later command depends on a shared state resolver.
35
+ - Treat `COMMAND_CONTRACTS.md` as the implementation contract for all later slices.
36
+ - Add fixtures from Pixel Quiver only after replacing personal paths and project-specific values.
@@ -0,0 +1,56 @@
1
+ # EXECUTION BRIEF - slice-00: Docs audit, coverage, and contracts
2
+
3
+ ## Context
4
+
5
+ Pixel Quiver dogfooding produced `QP-001` to `QP-019` and `QIS-001` to `QIS-022`. Some related Quiver capabilities are documented as shipped in v24, v25, and v26, but real usage showed remaining gaps. This slice creates the foundation and contracts before product code changes.
6
+
7
+ ## Objective
8
+
9
+ Create and verify the v27 documentary foundation, coverage matrix, and production command contracts.
10
+
11
+ ## Scope
12
+
13
+ - `specs/quiver-v27-reliability-ai-workflow-hardening/**`
14
+ - `README_FOR_AI.md`
15
+ - `ROADMAP.md`
16
+ - `CHANGELOG.md`
17
+
18
+ ## Acceptance Criteria
19
+
20
+ - The v27 spec package exists and every slice has `slice.json`, `EXECUTION_BRIEF.md`, and `CLOSURE_BRIEF.md`.
21
+ - Every QP/QIS is mapped to a slice and validation strategy.
22
+ - Cross-command contracts are documented.
23
+ - Source-of-truth docs mention v27 as planned without claiming implementation.
24
+ - No product code changes are made.
25
+
26
+ ## Technical Plan Summary
27
+
28
+ Audit existing docs/code/tests, record coverage, and update docs/spec artifacts only.
29
+
30
+ ## Suggested Execution Steps
31
+
32
+ 1. Inspect v24/v25/v26 docs, implementation, and tests.
33
+ 2. Fill the v27 coverage matrix with status per QP/QIS.
34
+ 3. Document command contracts and compatibility expectations.
35
+ 4. Update source-of-truth docs.
36
+ 5. Validate JSON, handoffs, and whitespace.
37
+
38
+ ## Restrictions
39
+
40
+ - Do not modify product code.
41
+ - Do not publish npm.
42
+ - Do not open a PR unless explicitly requested.
43
+
44
+ ## Risks
45
+
46
+ - Existing docs may overstate implemented behavior; record gaps instead of assuming.
47
+
48
+ ## Completion Checklist
49
+
50
+ - [ ] Coverage matrix completed.
51
+ - [ ] Contracts documented.
52
+ - [ ] Source-of-truth docs synced.
53
+ - [ ] JSON validation passed.
54
+ - [ ] Handoff validation passed.
55
+ - [ ] `git diff --check` passed.
56
+
@@ -0,0 +1,75 @@
1
+ {
2
+ "slice_id": "slice-00-docs-audit-coverage-and-contracts",
3
+ "ticket": "QUIVER-27-00",
4
+ "type": "docs",
5
+ "title": "Docs audit, coverage, and contracts",
6
+ "objective": "Create the v27 documentary foundation, audit existing v24/v25/v26 behavior against Pixel Quiver evidence, and define cross-command contracts before implementation starts.",
7
+ "description": "Audits source-of-truth docs, existing specs, tests, and implementation surfaces; creates a QP/QIS coverage matrix; defines command contracts for exit codes, stdout/stderr, dry-run, write classes, idempotency, atomic writes, path safety, root detection, package managers, deterministic ordering, schema/versioning, and legacy/strict behavior.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "v27-docs-audit-coverage-contracts",
12
+ "branch_name": "feature/QUIVER-27-00-v27-docs-audit-coverage-contracts"
13
+ },
14
+ "files": [
15
+ "README_FOR_AI.md",
16
+ "ROADMAP.md",
17
+ "CHANGELOG.md",
18
+ "specs/quiver-v27-reliability-ai-workflow-hardening/**"
19
+ ],
20
+ "expected_read_paths": [
21
+ "README_FOR_AI.md",
22
+ "ROADMAP.md",
23
+ "BACKLOG.md",
24
+ "CHANGELOG.md",
25
+ "specs/quiver-v24-dx-onboarding-hardening/**",
26
+ "specs/quiver-v25-ai-first-lifecycle-orchestrator/**",
27
+ "specs/quiver-v26-0121-smoke-hardening/**",
28
+ "src/create-quiver/**",
29
+ "tests/**"
30
+ ],
31
+ "allowed_write_paths": [
32
+ "README_FOR_AI.md",
33
+ "ROADMAP.md",
34
+ "CHANGELOG.md",
35
+ "specs/quiver-v27-reliability-ai-workflow-hardening/**"
36
+ ],
37
+ "depends_on": [],
38
+ "parallel_safe": "no",
39
+ "parallel_safe_reason": "slice-00 is the mandatory documentary foundation and must land before implementation slices.",
40
+ "must": [
41
+ "Create or refine the v27 planning package.",
42
+ "Map QP-001..QP-019 and QIS-001..QIS-022 to slices and validations.",
43
+ "Audit v24/v25/v26 docs and code for already implemented, partial, broken, or missing behavior.",
44
+ "Define cross-command production contracts.",
45
+ "Avoid product code changes."
46
+ ],
47
+ "not_included": [
48
+ "Changing CLI behavior.",
49
+ "Adding tests beyond documentation validation.",
50
+ "Publishing npm.",
51
+ "Opening a PR."
52
+ ],
53
+ "acceptance": [
54
+ "The v27 spec folder exists with SPEC.md, STATUS.md, EXECUTION_PLAN.md, EVIDENCE_REPORT.md, pr.md, and all slice folders.",
55
+ "Every QP/QIS is assigned to at least one slice or explicitly marked covered by existing implementation with evidence.",
56
+ "Command contracts for exit codes, stdout/stderr, dry-run, write class, idempotency, atomic writes, path safety, root detection, package managers, deterministic ordering, and legacy/strict behavior are documented.",
57
+ "README_FOR_AI.md, ROADMAP.md, and CHANGELOG.md do not contradict the current v27 planned state.",
58
+ "No product code is modified."
59
+ ],
60
+ "tests": [
61
+ "git diff --check",
62
+ "find specs/quiver-v27-reliability-ai-workflow-hardening -name \"slice.json\" -print -exec node -e \"JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))\" {} \\;",
63
+ "npx create-quiver check-handoff specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-00-docs-audit-coverage-and-contracts/EXECUTION_BRIEF.md",
64
+ "npx create-quiver check-handoff specs/quiver-v27-reliability-ai-workflow-hardening/slices/slice-00-docs-audit-coverage-and-contracts/CLOSURE_BRIEF.md"
65
+ ],
66
+ "validation_hints": [
67
+ "Use git diff to confirm the slice is documentation-only.",
68
+ "Do not copy unsanitized Pixel Quiver absolute paths into fixtures."
69
+ ],
70
+ "estimated_hours": 3,
71
+ "actual_hours": 3,
72
+ "status": "completed",
73
+ "completed_at": "2026-05-24T13:38:42Z",
74
+ "blocked_reason": null
75
+ }
@@ -0,0 +1,37 @@
1
+ # CLOSURE BRIEF - slice-01: Core state resolver and canonical statuses
2
+
3
+ ## Summary
4
+
5
+ Implemented the shared resolver foundation for Quiver lifecycle state.
6
+
7
+ Classic commands and AI lifecycle surfaces now share a resolver layer for slice discovery, scoped reads, canonical status normalization, deterministic ordering, completed-slice filtering, graph summaries, and progress calculations.
8
+
9
+ ## Validation Against Acceptance Criteria
10
+
11
+ - Classic `plan` and `graph` commands now resolve slices through `project-state-resolver`.
12
+ - AI lifecycle export/list/inspect state now resolves slices through the same resolver.
13
+ - Completed slices are visible when `includeCompleted` or `--include-completed` is requested.
14
+ - Scoped reads continue to avoid parsing unrelated historical specs.
15
+ - Status aliases are normalized through a shared canonical catalog while preserving legacy `status` fields for compatibility.
16
+ - Existing behavior for plan, graph, next, doctor, and AI export/list/inspect remains covered by tests.
17
+
18
+ ## Changes
19
+
20
+ - Added `src/create-quiver/lib/statuses.js`.
21
+ - Added `src/create-quiver/lib/project-state-resolver.js`.
22
+ - Updated `src/create-quiver/commands/plan.js`.
23
+ - Updated `src/create-quiver/commands/graph.js`.
24
+ - Updated `src/create-quiver/lib/ai/export-state.js`.
25
+ - Added `tests/lib/project-state-resolver.test.js`.
26
+ - Updated v27 evidence, status, and spec docs.
27
+
28
+ ## Remaining Risks
29
+
30
+ - `flow` and deeper doctor next-step logic still have command-specific state logic; their full hardening remains assigned to `slice-07`.
31
+ - The public JSON export schema is not finalized in this slice; `slice-02` owns that contract.
32
+ - Worktree state is not yet unified through the resolver; `slice-05` owns persistent worktree lifecycle behavior.
33
+
34
+ ## Follow-up Recommendations
35
+
36
+ - Execute `slice-02-json-export-contract-and-machine-output` next to stabilize the machine-readable export contract over the resolver.
37
+ - Keep `status` fields backward compatible and expose canonical state through additive fields until a migration is explicitly approved.