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
package/CHANGELOG.md CHANGED
@@ -4,6 +4,58 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.13.0] - 2026-05-25
8
+
9
+ ### Added
10
+
11
+ - Implemented v27 reliability and AI workflow hardening under `specs/quiver-v27-reliability-ai-workflow-hardening/`, based on Pixel Quiver dogfooding findings.
12
+ - Shared project-state resolver, canonical statuses, schema v2 lifecycle exports, structured approved-plan spec creation, AI artifact cleanup/redaction, token compaction, worktree locks/recovery, validation gates, context freshness diagnostics, cross-platform DX guidance, and release-readiness fixture coverage.
13
+ - Final v27 package/tarball smoke coverage for packaged CLI help, `flow`, `ai agent set --dry-run`, doctor fixtures, guided workflow, and full test suite validation.
14
+
15
+ ## [0.12.1] - 2026-05-23
16
+
17
+ ### Added
18
+
19
+ - `help` command alias and grouped top-level CLI help so `npx create-quiver --help`, `npx create-quiver help`, and local `quiver --help` expose the supported command surface.
20
+ - Current per-slice brief validation for `EXECUTION_BRIEF.md` and `CLOSURE_BRIEF.md`, while keeping legacy `HANDOFF.md` validation compatible.
21
+ - Regression coverage for scoped `plan` and `graph` loading so unrelated historical specs are not parsed when `--spec <slug>` is used.
22
+
23
+ ### Changed
24
+
25
+ - Default generated docs now avoid links to optional `docs/examples/*` files unless those files are actually exported.
26
+ - `flow` and AI review/spec-create blockers now guide approved-but-unreviewed technical plans toward `ai review-plan` instead of confusing re-approval steps.
27
+ - The optional `spec-viewer` demo now includes minimal Quiver metadata, doctor-friendly docs, broader Quiver scripts, and server port fallback.
28
+ - Root development scripts for `quiver:plan` and `quiver:graph` now use the local CLI entrypoint so local validation tests the branch code.
29
+
30
+ ### Fixed
31
+
32
+ - `check-slice --local` no longer fatally requires Git metadata in no-Git folders.
33
+ - Bare same-spec dependencies such as `slice-00-docs-foundation` resolve correctly during local dependency validation.
34
+ - Scoped `plan` and `graph` complete in this repository without increasing Node heap size.
35
+
36
+ ## [0.12.0] - 2026-05-22
37
+
38
+ ### Added
39
+
40
+ - AI-first lifecycle run state with status, resume, phase locks, approvals, prompt/draft artifacts, and dashboard-friendly exports.
41
+ - Safe AI onboarding docs with dry-run diffs, snapshots, assumptions, risks, contradictions, and human-content preservation.
42
+ - Agent profiles and prompt-only/provider adapter flows for planner, executor, reviewer, and doctor roles.
43
+ - Strict approval gates for acceptance criteria, technical plans, production-readiness reviews, and spec generation.
44
+ - Generated spec/slice artifacts with `EXECUTION_BRIEF.md`, `CLOSURE_BRIEF.md`, read paths, allowed write paths, validation hints, dependency data, execution plans, and PR body.
45
+ - Controlled slice execution with scope validation, closure/evidence/status updates, and one-commit-per-slice support.
46
+ - Worktree, PR, inspection, export, trace, migration dry-run, and lifecycle list surfaces for AI-first workflows.
47
+
48
+ ### Changed
49
+
50
+ - Quiver now treats the guided AI lifecycle as durable state under `.quiver/`, not as chat-only memory.
51
+ - Generated docs and root docs describe planner/executor flows, review gates, worktree-per-spec, and release safety more explicitly.
52
+
53
+ ### Fixed
54
+
55
+ - Hardened validation errors, fixture coverage, redaction, parser behavior, and migration/readiness checks around the AI lifecycle.
56
+
57
+ ## [0.11.0] - 2026-05-22
58
+
7
59
  ### Added
8
60
 
9
61
  - Guided AI workflow commands: `prepare`, agent profiles, planner onboarding, approval persistence, `review-plan`, `spec create`, executor prompt generation, delegated execution waves, PR creation with `gh`, spec worktree start/status/close, and package safety.
package/README.md CHANGED
@@ -16,6 +16,7 @@ npx create-quiver flow
16
16
  npx create-quiver prepare --dry-run
17
17
  npx create-quiver analyze
18
18
  npx create-quiver doctor
19
+ npx create-quiver ai agent set planner --provider codex --model "planner-model" --dry-run
19
20
  npx create-quiver ai agent set planner --provider codex --model "planner-model"
20
21
  npx create-quiver ai agent set executor --provider codex --model "executor-model"
21
22
  npx create-quiver ai prepare-context --dry-run
@@ -36,7 +37,8 @@ El flujo normal con IA continúa así:
36
37
  ```bash
37
38
  npx create-quiver flow
38
39
  npx create-quiver ai plan --phase acceptance --input requirements.md --dry-run
39
- npx create-quiver ai approve --phase acceptance --input acceptance-approved.md
40
+ npx create-quiver ai revise --phase acceptance --input feedback.md --dry-run
41
+ npx create-quiver ai approve --phase acceptance --version <n>
40
42
  npx create-quiver ai approvals
41
43
  npx create-quiver ai plan --phase technical-plan --dry-run
42
44
  npx create-quiver ai review-plan --dry-run
@@ -60,12 +62,13 @@ Reglas prácticas por sistema:
60
62
  - Windows con PowerShell: usá los mismos comandos `npx`, `npm` y `node`, pero adaptá rutas a formato Windows, por ejemplo `C:\Users\<usuario>\ssh\github-work`.
61
63
  - Windows con Git Bash o WSL: podés usar rutas tipo Unix, por ejemplo `~/.ssh/github-work`.
62
64
  - Los wrappers Bash bajo `tools/scripts/` son compatibilidad legacy u opcional. Para trabajo nuevo, preferí el CLI Node y los scripts `quiver:*`.
65
+ - Si una ruta tiene espacios, mantenela entre comillas. En los preflights de GitHub, Quiver imprime ejemplos seguros para macOS/Linux, Windows PowerShell, Git Bash y WSL.
63
66
 
64
67
  Cuando uses GitHub o PRs:
65
68
 
66
69
  - `--ssh-host-alias` recibe el alias del host en tu configuración SSH, por ejemplo `github-work` o `github-personal`.
67
70
  - `--identity-file` recibe la ruta al archivo de clave, que cambia según el sistema operativo.
68
- - `gh` debe estar instalado y autenticado; Quiver lo valida con `ai doctor` o `ai pr --dry-run`.
71
+ - `gh` debe estar instalado y autenticado; Quiver lo valida con `ai doctor` o `ai pr --dry-run`, y cuando falla indica cuenta, permisos/scopes, alias SSH y próximo comando seguro.
69
72
 
70
73
  ### Desarrollar este repositorio
71
74
 
@@ -99,7 +102,8 @@ npx create-quiver doctor
99
102
  npx create-quiver ai prepare-context --dry-run
100
103
  npx create-quiver ai onboard --dry-run
101
104
  npx create-quiver ai plan --phase acceptance --input requirements.md --dry-run
102
- npx create-quiver ai approve --phase acceptance --input acceptance-approved.md
105
+ npx create-quiver ai revise --phase acceptance --input feedback.md --dry-run
106
+ npx create-quiver ai approve --phase acceptance --version <n>
103
107
  npx create-quiver ai plan --phase technical-plan --dry-run
104
108
  npx create-quiver ai review-plan --dry-run
105
109
  npx create-quiver ai approve --phase technical-plan --version <n>
@@ -145,7 +149,8 @@ Después del bootstrap, revisá:
145
149
 
146
150
  ```bash
147
151
  npx create-quiver ai plan --phase acceptance --input requirements.md --dry-run
148
- npx create-quiver ai approve --phase acceptance --input acceptance-approved.md
152
+ npx create-quiver ai revise --phase acceptance --input feedback.md --dry-run
153
+ npx create-quiver ai approve --phase acceptance --version <n>
149
154
  npx create-quiver ai plan --phase technical-plan --dry-run
150
155
  npx create-quiver ai review-plan --dry-run
151
156
  npx create-quiver ai approve --phase technical-plan --version <n>
@@ -310,24 +315,40 @@ El paquete también publica el alias binario `quiver`, que apunta al mismo CLI.
310
315
  |---|---|
311
316
  | `npx create-quiver init --name "Proyecto"` | Inicializa Quiver en un proyecto nuevo o nunca inicializado. |
312
317
  | `npx create-quiver --name "Proyecto"` | Alias compatible del flujo de init recomendado. |
313
- | `npx create-quiver flow` | Muestra el estado inicial del flujo guiado y el próximo comando seguro sin escribir estado ni llamar providers. |
314
- | `npx create-quiver ai agent set <role> --provider <provider> --model <label>` | Guarda perfiles reutilizables para planner, executor, reviewer o researcher sin guardar secretos. |
318
+ | `npx create-quiver --version` | Muestra la versión instalada del CLI. |
319
+ | `npx create-quiver --help` | Lista todos los comandos públicos con descripción, opciones principales y ejemplos recomendados. |
320
+ | `npx create-quiver help` | Alias legible de la ayuda completa. |
321
+ | `quiver --help` | Muestra la misma ayuda cuando Quiver ya está instalado localmente. |
322
+ | `npx create-quiver flow` | Muestra el estado inicial del flujo guiado, la fuente/frescura del contexto, el package manager detectado, el script `quiver:flow` correcto y el próximo comando seguro sin escribir estado ni llamar providers. |
323
+ | `npx create-quiver ai agent set <role> --provider <provider> --model <label> --dry-run` | Previsualiza el perfil que se guardaría sin escribir `.quiver/agents/profiles.json`. |
324
+ | `npx create-quiver ai agent set <role> --provider <provider> --model <label>` | Guarda perfiles reutilizables para planner, executor, reviewer o doctor sin guardar secretos. |
315
325
  | `npx create-quiver ai agent list` | Lista los perfiles configurados. |
316
326
  | `npx create-quiver ai agent show <role>` | Muestra un perfil específico. |
327
+ | `npx create-quiver ai run create --input requirements.md` | Crea un run persistente en `.quiver/runs/` para un requerimiento. |
328
+ | `npx create-quiver ai status` | Muestra la fase actual del run AI y el próximo comando seguro. |
329
+ | `npx create-quiver ai resume` | Reanuda el run AI desde la última fase válida sin depender del historial del chat. |
330
+ | `npx create-quiver ai inspect` | Resume specs, slices, runs, agentes, layout y próximos comandos accionables. |
331
+ | `npx create-quiver ai export --format json` | Exporta estado de specs, slices, runs, agentes, dependencias y migración para dashboards o agentes. |
332
+ | `npx create-quiver ai export --format markdown` | Exporta el mismo estado en Markdown legible para PRs o docs. |
333
+ | `npx create-quiver ai specs list` | Lista specs con estado, progreso y cantidad de slices. |
334
+ | `npx create-quiver ai slices list` | Lista slices con estado, progreso, dependencias y bloqueos. |
335
+ | `npx create-quiver ai trace report` | Muestra runs, olas de ejecución y estado de migración en formato humano. |
317
336
  | `npx create-quiver ai approvals` | Muestra drafts versionados y aprobados por fase. |
318
337
  | `npx create-quiver ai approve --phase acceptance --version <n>` | Aprueba una versión concreta de un draft guardado. |
319
338
  | `npx create-quiver init --minimal` | Crea solo el contrato esencial de onboarding. |
320
339
  | `npx create-quiver init --full` | Crea el layout amplio de compatibilidad. |
321
340
  | `npx create-quiver init --legacy-scripts` | Agrega wrappers Bash legacy bajo `tools/scripts/`. |
322
341
  | `npx create-quiver init --include-templates` | Exporta templates empaquetados bajo `.quiver/templates/`. |
323
- | `npx create-quiver analyze` | Genera `.quiver/scans/PROJECT_SCAN.json` y `docs/PROJECT_MAP.md`. |
342
+ | `npx create-quiver analyze --dry-run` | Previsualiza el scan, el mapa de proyecto y el refresh de contexto sin escribir archivos. |
343
+ | `npx create-quiver analyze` | Genera `.quiver/scans/PROJECT_SCAN.json`, `docs/PROJECT_MAP.md` y refresca `docs/AI_CONTEXT.md`. |
324
344
  | `npx create-quiver doctor` | Valida que el contrato de Quiver esté completo. |
325
345
  | `npx create-quiver doctor --fix --dry-run` | Muestra reparaciones seguras sin escribir archivos. |
326
346
  | `npx create-quiver doctor --fix` | Aplica reparaciones no destructivas e idempotentes. |
327
347
  | `npx create-quiver prepare --dry-run` | Ejecuta diagnóstico guiado de preparación sin escribir archivos. |
328
348
  | `npx create-quiver prepare` | Refresca contexto y muestra riesgos, supuestos y próximos comandos. |
329
- | `npx create-quiver ai prepare-context --dry-run` | Previsualiza borradores de contexto IA, supuestos, riesgos, archivos considerados y rutas omitidas sin escribir. |
349
+ | `npx create-quiver ai prepare-context --dry-run` | Previsualiza docs de onboarding, diffs, supuestos, riesgos, contradicciones y rutas omitidas sin escribir. |
330
350
  | `npx create-quiver migrate` | Actualiza proyectos que ya fueron inicializados con Quiver. |
351
+ | `npx create-quiver migrate --dry-run` | Muestra qué actualizaría la migración sin escribir archivos. |
331
352
  | `npx create-quiver plan` | Lista slices pendientes en orden y calcula camino crítico. |
332
353
  | `npx create-quiver graph` | Muestra el grafo de dependencias (`tree`, `mermaid` o `dot`). |
333
354
  | `npx create-quiver next` | Sugiere el próximo slice listo para trabajar. |
@@ -335,9 +356,10 @@ El paquete también publica el alias binario `quiver`, que apunta al mismo CLI.
335
356
  | `npx create-quiver graph --include-completed` | Incluye slices completados en el grafo histórico. |
336
357
  | `npx create-quiver next --include-completed` | Mantiene la recomendación accionable y agrega historial completado. |
337
358
  | `npx create-quiver spec create` | Crea la spec real desde el plan técnico revisado y aprobado. |
338
- | `npx create-quiver spec start <spec-dir>` | Crea o reutiliza el worktree dedicado de una spec. |
359
+ | `npx create-quiver spec start <spec-dir>` | Crea o reutiliza el worktree dedicado de una spec. Usá `--dry-run` para ver qué worktree se crearía sin tocar Git. |
339
360
  | `npx create-quiver spec status <spec-dir>` | Muestra branch, path, `slice-00` y slices pendientes. |
340
- | `npx create-quiver spec close <spec-dir>` | Cierra un worktree de spec ya mergeado y limpio. |
361
+ | `npx create-quiver spec validate <spec-dir>` | Valida documentos de spec, slices, briefs, evidencia, estado, dependencias y rutas seguras. |
362
+ | `npx create-quiver spec close <spec-dir>` | Cierra un worktree de spec ya mergeado y limpio; en modo normal también intenta traer los cambios del merge al checkout principal. |
341
363
  | `npx create-quiver start-slice <slice.json>` | Prepara worktree y contexto para ejecutar un slice. |
342
364
  | `npx create-quiver check-slice <slice.json>` | Valida readiness del slice. |
343
365
  | `npx create-quiver check-slice --local <slice.json>` | Valida estructura local sin exigir remoto/base. |
@@ -345,7 +367,7 @@ El paquete también publica el alias binario `quiver`, que apunta al mismo CLI.
345
367
  | `npx create-quiver check-scope <slice.json>` | Verifica que los archivos modificados estén dentro del alcance declarado. |
346
368
  | `npx create-quiver cleanup-slice <slice.json>` | Limpia worktree/branch local asociado a un slice. |
347
369
  | `npx create-quiver refresh-active-slices` | Regenera el tablero local `ACTIVE_SLICES.md`. |
348
- | `npx create-quiver check-handoff <handoff.md>` | Valida un handoff. |
370
+ | `npx create-quiver check-handoff <handoff-or-brief.md>` | Valida un `HANDOFF.md` o un brief de slice (`EXECUTION_BRIEF.md` / `CLOSURE_BRIEF.md`). |
349
371
  | `npx create-quiver new-handoff <spec-slug>` | Crea un handoff para una transferencia excepcional. |
350
372
  | `npx create-quiver evidence run -- <comando>` | Ejecuta un comando y guarda evidencia local con exit code, duración y salida redactada/truncada. |
351
373
  | `npx create-quiver demo create spec-viewer --dry-run` | Previsualiza el demo opcional Quiver Spec Viewer sin escribir archivos. |
@@ -356,13 +378,19 @@ El paquete también publica el alias binario `quiver`, que apunta al mismo CLI.
356
378
  ```bash
357
379
  npx create-quiver ai prepare-context --dry-run
358
380
  npx create-quiver ai onboard --dry-run
381
+ npx create-quiver ai onboard --print-prompt
382
+ npx create-quiver ai agent set planner --provider codex --model "planner-model" --dry-run
359
383
  npx create-quiver ai agent set planner --provider codex --model "planner-model"
360
384
  npx create-quiver ai agent set executor --provider codex --model "executor-model"
385
+ npx create-quiver ai agent set doctor --provider codex --model "diagnostic-model"
361
386
  npx create-quiver ai agent list
362
387
  npx create-quiver ai plan --phase acceptance --input requirements.md --dry-run
363
- npx create-quiver ai approve --phase acceptance --input acceptance-approved.md
388
+ npx create-quiver ai plan --phase acceptance --input requirements.md --print-prompt
389
+ npx create-quiver ai revise --phase acceptance --input feedback.md --dry-run
390
+ npx create-quiver ai approve --phase acceptance --version <n>
364
391
  npx create-quiver ai plan --phase technical-plan --dry-run
365
392
  npx create-quiver ai review-plan --dry-run
393
+ npx create-quiver ai review-plan --print-prompt
366
394
  npx create-quiver ai approve --phase technical-plan --version <n>
367
395
  npx create-quiver spec create --dry-run
368
396
  npx create-quiver ai prompt-slice --slice specs/<project-slug>/slices/slice-01/slice.json --dry-run
@@ -374,11 +402,11 @@ npx create-quiver ai pr --dry-run --input specs/<project-slug>/pr.md --ssh-host-
374
402
  ```
375
403
 
376
404
  Providers soportados: `codex`, `claude` y `gemini`, siempre vía CLI local.
377
- Usá `--dry-run` primero para revisar provider, rol, context pack, prompt y paths sin ejecutar el modelo.
405
+ Usá `--dry-run` primero para revisar provider, rol, context pack y paths sin ejecutar el modelo. Usá `--print-prompt` cuando quieras ver el prompt exacto que se enviaría, sin depender de autenticación del provider.
378
406
 
379
407
  Orden recomendado:
380
408
 
381
- 1. `ai prepare-context --dry-run`: revisa borradores de contexto, supuestos y riesgos antes de escribir docs.
409
+ 1. `ai prepare-context --dry-run`: revisa borradores de contexto, diffs, supuestos, riesgos y contradicciones antes de escribir docs. En modo escritura, Quiver guarda snapshots bajo `.quiver/runs/<run-id>/snapshots/`.
382
410
  2. `ai onboard`: el planner entiende el repo y el workflow.
383
411
  3. `ai plan --phase acceptance`: convierte requerimientos en criterios de aceptación.
384
412
  4. `ai plan --phase technical-plan`: propone el plan técnico.
@@ -387,9 +415,10 @@ Orden recomendado:
387
415
  7. `spec create`: genera spec, slices, handoffs y PR body desde el plan revisado y aprobado.
388
416
  8. `spec start`: prepara un worktree por spec.
389
417
  9. `ai prompt-slice`: imprime el prompt mínimo para asignar un slice manualmente.
390
- 10. `ai execute-slice` / `ai execute-plan`: ejecuta slices aprobados, con commit opt-in. Usá `--mode manual` para prompts y `--mode delegated` para worktrees temporales en olas paralelas.
391
- 11. `ai doctor` / `ai pr`: valida GitHub y crea el PR solo con `--create`.
392
- 12. `spec close`: cierra el worktree después del merge.
418
+ 10. `ai execute-slice` / `ai execute-plan`: ejecuta slices aprobados, con commit opt-in. `ai execute-slice` exige worktree/rama correctos, bloquea cambios fuera del alcance declarado, redacta logs sensibles y actualiza `CLOSURE_BRIEF.md`, `EVIDENCE_REPORT.md`, `COMMAND_LOG.md`, `STATUS.md` y `slice.json` cuando la ejecución pasa. Usá `--mode manual` para prompts y `--mode delegated` para worktrees temporales en olas paralelas.
419
+ 11. `ai inspect` / `ai export`: exponen estado accionable y formatos JSON/Markdown para humanos, agentes o dashboards.
420
+ 12. `ai doctor` / `ai pr`: valida GitHub y crea el PR solo con `--create`.
421
+ 13. `spec close`: cierra el worktree después del merge.
393
422
 
394
423
  ## 🧪 Cómo probar que funciona
395
424
 
@@ -406,6 +435,7 @@ Validaciones adicionales disponibles:
406
435
 
407
436
  ```bash
408
437
  npm run smoke:create-quiver
438
+ npm run smoke:doctor-fixtures
409
439
  npm run smoke:guided-workflow
410
440
  npm run smoke:tiered-pack
411
441
  ```
@@ -425,19 +455,20 @@ npx create-quiver demo create spec-viewer --dry-run
425
455
  npx create-quiver demo create spec-viewer --dir ./quiver-spec-viewer
426
456
  ```
427
457
 
428
- El demo genera una app estática pequeña, specs/slices de ejemplo y scripts de validación. No forma parte de `init`; se crea solo cuando lo pedís.
458
+ El demo genera una app estática pequeña, metadata mínima de Quiver, specs/slices de ejemplo y scripts de validación. `doctor`, `plan`, `graph` y `next` funcionan dentro del demo, y el server intenta el siguiente puerto si el inicial está ocupado. No forma parte de `init`; se crea solo cuando lo pedís.
429
459
 
430
460
  Notas reales del estado actual:
431
461
 
432
462
  - No hay script `npm test`; el comando verificado para tests es `node --test tests/**/*.test.js`.
433
463
  - `npm run package:quiver` valida el contenido del paquete npm generado.
434
464
  - `npm run smoke:guided-workflow` cubre el flujo guiado con IA sin llamadas reales pagas a providers.
465
+ - `npm run smoke:doctor-fixtures` valida la matriz de estados de proyecto que deben seguir cubiertos por doctor/preflight.
435
466
 
436
467
  ## 📜 Scripts npm
437
468
 
438
469
  | Script | Uso |
439
470
  |---|---|
440
- | `npm run quiver:analyze` | Ejecuta `npx create-quiver analyze`. |
471
+ | `npm run quiver:analyze` | Ejecuta `npx create-quiver analyze`; usalo con `-- --dry-run` para previsualizar sin escribir. |
441
472
  | `npm run quiver:flow` | Ejecuta `npx create-quiver flow`. |
442
473
  | `npm run quiver:plan` | Ejecuta `npx create-quiver plan`. |
443
474
  | `npm run quiver:prepare` | Ejecuta preparación guiada y diagnósticos. |
@@ -446,8 +477,13 @@ Notas reales del estado actual:
446
477
  | `npm run quiver:doctor` | Ejecuta `npx create-quiver doctor`. |
447
478
  | `npm run quiver:evidence` | Ejecuta `npx create-quiver evidence`; usalo como `npm run quiver:evidence -- run -- <comando>`. |
448
479
  | `npm run quiver:ai:agent` | Ejecuta `npx create-quiver ai agent`. |
480
+ | `npm run quiver:ai:inspect` | Ejecuta `npx create-quiver ai inspect`. |
481
+ | `npm run quiver:ai:export` | Ejecuta `npx create-quiver ai export`. |
482
+ | `npm run quiver:ai:specs` | Ejecuta `npx create-quiver ai specs list`. |
483
+ | `npm run quiver:ai:slices` | Ejecuta `npx create-quiver ai slices list`. |
484
+ | `npm run quiver:ai:trace` | Ejecuta `npx create-quiver ai trace report`. |
449
485
  | `npm run quiver:ai:onboard` | Ejecuta onboarding de IA. |
450
- | `npm run quiver:ai:prepare-context` | Prepara borradores de contexto IA solo en documentación; usalo primero con `-- --dry-run`. |
486
+ | `npm run quiver:ai:prepare-context` | Prepara docs de contexto IA solo en documentación; usalo primero con `-- --dry-run` para revisar diffs y contradicciones. |
451
487
  | `npm run quiver:ai:plan` | Ejecuta planificación IA por fases. |
452
488
  | `npm run quiver:ai:review-plan` | Revisa el plan técnico antes de aprobarlo y crear la spec. |
453
489
  | `npm run quiver:ai:approve` | Guarda criterios o planes aprobados. |
@@ -459,9 +495,11 @@ Notas reales del estado actual:
459
495
  | `npm run quiver:spec:create` | Ejecuta `npx create-quiver spec create`. |
460
496
  | `npm run quiver:spec:start` | Ejecuta `npx create-quiver spec start`. |
461
497
  | `npm run quiver:spec:status` | Ejecuta `npx create-quiver spec status`. |
498
+ | `npm run quiver:spec:validate` | Ejecuta `npx create-quiver spec validate`. |
462
499
  | `npm run quiver:spec:close` | Ejecuta `npx create-quiver spec close`. |
463
500
  | `npm run package:quiver` | Empaqueta y valida el tarball npm. |
464
501
  | `npm run smoke:create-quiver` | Smoke del instalador `create-quiver`. |
502
+ | `npm run smoke:doctor-fixtures` | Smoke de la matriz de fixtures para validación, doctor y errores accionables. |
465
503
  | `npm run smoke:guided-workflow` | Smoke del flujo guiado con IA, PR, cleanup y package safety. |
466
504
  | `npm run smoke:tiered-pack` | Smoke de context packs y lifecycle. |
467
505
  | `npm run release:quiver` | Release dry-run o publish, según flags. |
@@ -522,10 +560,12 @@ Checklist de release:
522
560
 
523
561
  1. `node --test tests/**/*.test.js`
524
562
  2. `npm run smoke:create-quiver`
525
- 3. `npm run smoke:guided-workflow`
526
- 4. `npm run smoke:tiered-pack`
527
- 5. `npm pack --dry-run`
528
- 6. Confirmar que el PR esta aprobado antes de publicar.
563
+ 3. `npm run smoke:doctor-fixtures`
564
+ 4. `npm run smoke:guided-workflow`
565
+ 5. `npm run smoke:tiered-pack`
566
+ 6. `npm run package:quiver`
567
+ 7. `npm pack --dry-run`
568
+ 8. Confirmar que el PR esta aprobado antes de publicar.
529
569
 
530
570
  ## 📚 Documentación útil
531
571
 
@@ -539,7 +579,7 @@ Checklist de release:
539
579
 
540
580
  ## Información confirmada y pendiente
541
581
 
542
- - `package.json` está en `0.10.0` y `CHANGELOG.md` reconoce `0.10.0`.
582
+ - `package.json` está en `0.13.0` y `CHANGELOG.md` reconoce `0.13.0`.
543
583
  - `package.json` no declara `engines`; la versión mínima real de Node queda pendiente. La CI usa Node 22.
544
584
  - Si aparece alguna referencia vieja a `0.9.0`, hay que actualizarla al contrato actual antes de seguir.
545
585
  - Los scripts legacy de `package.json` que apuntan a `tools/scripts/*` deben confirmarse para este repo fuente o separarse de los scripts pensados para proyectos generados con `--legacy-scripts` o `--full`.
package/README_FOR_AI.md CHANGED
@@ -15,15 +15,23 @@ Use `npx create-quiver evidence run -- <command>` to capture validation evidence
15
15
  Use `npx create-quiver demo create spec-viewer --dry-run` to inspect the optional Quiver Spec Viewer demo scaffold, then add `--dir <target>` for a real run. The demo is not part of default init and must remain small, static, dependency-light, and non-destructive.
16
16
  The v20, v21, v22, and v23 specs are completed. `specs/quiver-v23-guided-flow-productization/` productized the manual planner/executor prompt workflow into guided Quiver commands, profiles, compact prompts, safe approvals, executor prompts, delegated execution modes, and release readiness evidence.
17
17
  The v24 spec is implemented under `specs/quiver-v24-dx-onboarding-hardening/`; it captures DX hardening found while dogfooding Quiver with Quiver Spec Viewer, including init hygiene, CLI ambiguity, local slice validation, analyzer quality, AI context preparation, evidence capture, and demo scaffolding. Do not claim a package release until npm publication actually happens.
18
+ The v25 spec is implemented under `specs/quiver-v25-ai-first-lifecycle-orchestrator/` and shipped in `create-quiver@0.12.0`; it covers safe AI onboarding docs, strict run state, phase locks, agent adapters, approval gates, spec/slice generation, execution planning, controlled slice execution, worktree/PR lifecycle, validation hardening, export, and migration.
19
+ The v26 hotfix spec is implemented under `specs/quiver-v26-0121-smoke-hardening/` and shipped in `create-quiver@0.12.1`; it covers smoke hardening for CLI help/version output, generated doc links, AI approval/review guidance, local validation, slice brief validation, demo readiness, scoped plan/graph performance, and release smoke coverage.
20
+ The v27 spec is implemented under `specs/quiver-v27-reliability-ai-workflow-hardening/` and shipped in `create-quiver@0.13.0`; it captures Pixel Quiver dogfooding findings (`QP-001` to `QP-019`, `QIS-001` to `QIS-022`) and includes shared state resolution, canonical statuses, schema v2 exports, structured spec creation, AI artifact cleanup, worktree locks, validation gates, context diagnostics, cross-platform DX, fixtures, smoke suites, and package/tarball release readiness.
18
21
  Guided AI workflow behavior is available: prepare, approvals, production-readiness plan review, spec worktrees, executor commits, execution waves, PR creation, spec close, and package safety.
19
- Generated projects also get `quiver:*` npm scripts that call the Node CLI directly; prefer those for repeatable project workflows, including `quiver:flow` for the read-only guided entrypoint, `quiver:plan` for sequential planning, `quiver:graph` for parallel-level inspection, `quiver:next` for the next ready slice, `quiver:evidence` for local command evidence, `quiver:spec:create` for real spec generation, and the AI family `quiver:ai:agent`, `quiver:ai:onboard`, `quiver:ai:prepare-context`, `quiver:ai:plan`, `quiver:ai:review-plan`, `quiver:ai:approve`, `quiver:ai:prompt-slice`, `quiver:ai:execute-slice`, `quiver:ai:execute-plan`, `quiver:ai:pr`, and `quiver:ai:doctor`. Use `quiver:graph --format mermaid` for PR-ready Markdown or `quiver:graph --format dot` for Graphviz source.
22
+ Generated projects also get `quiver:*` npm scripts that call the Node CLI directly; prefer those for repeatable project workflows, including `quiver:flow` for the read-only guided entrypoint, `quiver:plan` for sequential planning, `quiver:graph` for parallel-level inspection, `quiver:next` for the next ready slice, `quiver:evidence` for local command evidence, `quiver:spec:create` for real spec generation, `quiver:spec:validate` for full spec validation, and the AI family `quiver:ai:agent`, `quiver:ai:inspect`, `quiver:ai:export`, `quiver:ai:specs`, `quiver:ai:slices`, `quiver:ai:trace`, `quiver:ai:onboard`, `quiver:ai:prepare-context`, `quiver:ai:plan`, `quiver:ai:review-plan`, `quiver:ai:approve`, `quiver:ai:prompt-slice`, `quiver:ai:execute-slice`, `quiver:ai:execute-plan`, `quiver:ai:pr`, and `quiver:ai:doctor`. Use `quiver:graph --format mermaid` for PR-ready Markdown or `quiver:graph --format dot` for Graphviz source.
20
23
  `quiver:ai:execute-plan` supports `--mode manual` for paste-ready executor prompts and `--mode delegated` for temporary worktrees on parallel-ready waves; unsafe waves fall back to sequential execution.
21
24
  Agent profiles live in `.quiver/agents/profiles.json`; they store role, provider, model label, context label, and display label only. Do not store API keys, tokens, or credentials there.
22
25
  Planner drafts are versioned under `.quiver/approvals/<phase>/drafts/`; review the technical-plan draft with `npx create-quiver ai review-plan --dry-run` before approving it, then approve a concrete version with `npx create-quiver ai approve --phase <phase> --version <n>` when reviewing iterations.
26
+ AI lifecycle runs are persisted under `.quiver/runs/<run-id>/`; use `npx create-quiver ai run create --input <requirements.md>` to start one explicitly, `npx create-quiver ai status` to inspect it, `npx create-quiver ai resume` to continue from the last valid phase without relying on chat memory, and `npx create-quiver ai export --format json|markdown` when another agent, PR, or dashboard needs the current specs/slices/runs state.
23
27
  Maintain release notes and package publishing with `scripts/release-quiver.sh`.
28
+ Use `npm run smoke:doctor-fixtures` after changing doctor, preflight, validation, actionable errors, or fixture coverage.
24
29
  The primary generated project context for agents is `docs/AI_CONTEXT.md`.
25
30
  The project map is the single source of truth for stack, package manager, commands, and file hints: `docs/PROJECT_MAP.md`.
26
31
  The raw analyzer output is internal machinery at `.quiver/scans/PROJECT_SCAN.json`; read it only when the visible map is not enough.
32
+ `npx create-quiver analyze --dry-run` must remain read-only and only preview the scan/project-map/context writes. `npx create-quiver flow` reports the context source/freshness and the package-manager-aware generated script command so agents can see whether the project map is current, stale, partial, legacy, invalid, or missing.
33
+ `npx create-quiver ai agent set <role> --provider <provider> --model "<label>" --dry-run` must preview `.quiver/agents/profiles.json` changes without writing. Use it before saving planner/executor/reviewer/doctor profiles.
34
+ GitHub PR diagnostics must stay cross-platform: auth failures should point to likely account, scope, and SSH alias issues; path examples with spaces must be copy-safe for macOS/Linux, Windows PowerShell, Git Bash, and WSL.
27
35
  The universal router for generated projects is `AGENTS.md`; read it before `docs/AI_CONTEXT.md` and `docs/AI_ONBOARDING_PROMPT.md`.
28
36
  Generated projects also get `docs/DECISIONS.md`; use it for durable choices that should not be re-litigated.
29
37
  If a generated project has been analyzed, the exact agent handoff prompt is `docs/AI_ONBOARDING_PROMPT.md`.
@@ -60,7 +68,7 @@ Prefer maps, metadata, diffs, and summaries over full file reads when they are e
60
68
  - The normal workflow runs from the project root without `--dir`; use `--dir` only when targeting another directory explicitly.
61
69
  - The cross-platform contract targets native macOS, Linux, and Windows users through the Node CLI (`npx create-quiver ...`) and generated `quiver:*` npm scripts. Bash wrappers are legacy or optional compatibility, not the primary path. Keep root README examples clear about adapting SSH identity paths on Windows PowerShell, Git Bash, WSL, macOS, and Linux.
62
70
  - The support contract lives in `docs/SUPPORT_MATRIX.md` and `docs/TROUBLESHOOTING.md`.
63
- - Generated project npm scripts should prefer `quiver:*` names such as `quiver:analyze`, `quiver:flow`, `quiver:plan`, `quiver:graph`, `quiver:next`, `quiver:doctor`, `quiver:evidence`, `quiver:ai:agent`, `quiver:ai:prepare-context`, `quiver:ai:plan`, `quiver:ai:review-plan`, `quiver:ai:approve`, `quiver:ai:prompt-slice`, `quiver:ai:execute-slice`, `quiver:ai:execute-plan`, `quiver:spec:create`, `quiver:spec:start`, `quiver:spec:status`, `quiver:spec:close`, `quiver:start-slice`, `quiver:check-slice`, and `quiver:check-pr`.
71
+ - Generated project npm scripts should prefer `quiver:*` names such as `quiver:analyze`, `quiver:flow`, `quiver:plan`, `quiver:graph`, `quiver:next`, `quiver:doctor`, `quiver:evidence`, `quiver:ai:agent`, `quiver:ai:inspect`, `quiver:ai:export`, `quiver:ai:specs`, `quiver:ai:slices`, `quiver:ai:trace`, `quiver:ai:prepare-context`, `quiver:ai:plan`, `quiver:ai:review-plan`, `quiver:ai:approve`, `quiver:ai:prompt-slice`, `quiver:ai:execute-slice`, `quiver:ai:execute-plan`, `quiver:spec:create`, `quiver:spec:start`, `quiver:spec:status`, `quiver:spec:validate`, `quiver:spec:close`, `quiver:start-slice`, `quiver:check-slice`, and `quiver:check-pr`.
64
72
  - Optional demos are created with `npx create-quiver demo create spec-viewer`; do not add demo output to the package or default init flow.
65
73
  - `quiver:graph` defaults to the tree view; choose `--format mermaid` or `--format dot` when you need exportable graph artifacts.
66
74
  - `quiver:next` prints the next ready slice and can auto-start it behind a confirmation prompt.
@@ -129,33 +137,32 @@ Init preserves existing target files and reports skipped copies instead of overw
129
137
  After initialization, the user should:
130
138
 
131
139
  1. Run `npx create-quiver flow` when unsure about the next safe command
132
- 2. Fill in `docs/AI_CONTEXT.md`
133
- 3. Fill in `docs/AI_ONBOARDING_PROMPT.md`
134
- 4. Fill in `docs/CONTEXTO.md`
135
- 5. Fill in `docs/STATUS.md`
136
- 6. Run `npx create-quiver analyze` if `docs/PROJECT_MAP.md` or `.quiver/scans/PROJECT_SCAN.json` is missing
137
- 7. If the project already exists from an older Quiver version and was previously initialized by Quiver, run `npx create-quiver migrate`
138
- 8. If the project was never initialized by Quiver, run `npx create-quiver init --name "Project Name"` instead of `migrate`
139
- 9. Ask the AI agent to execute `docs/AI_ONBOARDING_PROMPT.md`
140
- 10. Review context docs before creating the first implementation slice
141
- 11. Open and merge the documentation PR that establishes the workflow files
142
- 12. Save reusable provider choices with `npx create-quiver ai agent set planner --provider <provider> --model "<label>"` and `npx create-quiver ai agent set executor --provider <provider> --model "<label>"`
143
- 13. Use `npx create-quiver ai plan --phase acceptance --input requirements.md --dry-run`
144
- 14. After human approval, save approved criteria with `npx create-quiver ai approve --phase acceptance --input acceptance-approved.md`
145
- 15. Use `npx create-quiver ai plan --phase technical-plan --dry-run`
146
- 16. Review the technical plan with `npx create-quiver ai review-plan --dry-run`, then run it without `--dry-run` when ready
147
- 17. After human approval, save the reviewed plan version with `npx create-quiver ai approve --phase technical-plan --version <n>`
148
- 18. Use `npx create-quiver spec create --dry-run` to preview the real spec, slices, handoffs, execution plan, and PR body, then run it without `--dry-run` when ready
149
- 19. Run `npx create-quiver spec start specs/<spec-slug>` to create or reuse the spec worktree
150
- 20. Run `npx create-quiver plan` or `npm run quiver:plan`
151
- 21. Run `npx create-quiver next` or `npm run quiver:next`
152
- 22. Run `npx create-quiver ai execute-plan --dry-run --commit --mode manual` to inspect prompts, or `npx create-quiver ai execute-plan --dry-run --commit --mode delegated` to inspect delegated execution waves
153
- 23. For manual assignment, print a minimal executor prompt with `npx create-quiver ai prompt-slice --slice <slice.json> --dry-run`
154
- 24. Execute one slice with `npx create-quiver ai execute-slice --slice <slice.json> --commit` or execute delegated waves with `npx create-quiver ai execute-plan --execute --commit --mode delegated`
155
- 25. Keep one commit per slice
156
- 26. Open one PR per spec with `npx create-quiver ai pr --dry-run --input specs/<spec-slug>/pr.md ...`, then `--create` only after review
157
- 27. After merge, close the worktree with `npx create-quiver spec close specs/<spec-slug>`
158
- 28. Validate the slice and the final PR with the workflow gates
140
+ 2. Run `npx create-quiver ai prepare-context --dry-run` to preview onboarding docs, diffs, assumptions, risks, contradictions, and omitted paths
141
+ 3. After review, run `npx create-quiver ai prepare-context` to write docs-only context updates; Quiver snapshots touched docs under `.quiver/runs/<run-id>/snapshots/` and preserves human-authored content
142
+ 4. Run `npx create-quiver analyze --dry-run` when unsure what analysis would update, then run `npx create-quiver analyze` if `docs/PROJECT_MAP.md` or `.quiver/scans/PROJECT_SCAN.json` is missing or stale
143
+ 5. If the project already exists from an older Quiver version and was previously initialized by Quiver, run `npx create-quiver migrate`
144
+ 6. If the project was never initialized by Quiver, run `npx create-quiver init --name "Project Name"` instead of `migrate`
145
+ 7. Ask the AI agent to execute `docs/AI_ONBOARDING_PROMPT.md`
146
+ 8. Review context docs before creating the first implementation slice
147
+ 9. Open and merge the documentation PR that establishes the workflow files
148
+ 10. Preview reusable provider choices with `npx create-quiver ai agent set <role> --provider <provider> --model "<label>" --dry-run`, then save planner/executor/doctor profiles without `--dry-run` after review
149
+ 11. Use `npx create-quiver ai plan --phase acceptance --input requirements.md --dry-run`; use `--print-prompt` when you need the exact prompt without provider auth
150
+ 12. If the human asks for changes, create a new draft with `npx create-quiver ai revise --phase acceptance --input feedback.md --dry-run`; after human approval, save the selected current draft with `npx create-quiver ai approve --phase acceptance --version <n>`
151
+ 13. Use `npx create-quiver ai plan --phase technical-plan --dry-run`
152
+ 14. Review the technical plan with `npx create-quiver ai review-plan --dry-run`, inspect exact prompt with `--print-prompt` if needed, then run it without `--dry-run` when ready
153
+ 15. After human approval, save the reviewed plan version with `npx create-quiver ai approve --phase technical-plan --version <n>`
154
+ 16. Use `npx create-quiver spec create --dry-run` to preview the real spec, slices, handoffs, execution plan, and PR body, then run it without `--dry-run` when ready
155
+ 17. Run `npx create-quiver spec start specs/<spec-slug> --dry-run` to inspect the planned worktree, then run without `--dry-run` to create or reuse it
156
+ 18. Run `npx create-quiver plan` or `npm run quiver:plan`
157
+ 19. Run `npx create-quiver next` or `npm run quiver:next`
158
+ 20. Run `npx create-quiver ai execute-plan --dry-run --commit --mode manual` to inspect prompts, or `npx create-quiver ai execute-plan --dry-run --commit --mode delegated` to inspect delegated execution waves
159
+ 21. For manual assignment, print a minimal executor prompt with `npx create-quiver ai prompt-slice --slice <slice.json> --dry-run`
160
+ 22. Execute one slice with `npx create-quiver ai execute-slice --slice <slice.json> --commit` or execute delegated waves with `npx create-quiver ai execute-plan --execute --commit --mode delegated`; single-slice execution must run from the declared slice branch, validates `allowed_write_paths`/`files`, redacts captured logs, and updates closure, evidence, command log, status, and `slice.json`
161
+ 23. Keep one commit per slice
162
+ 24. Open one PR per spec with `npx create-quiver ai pr --dry-run --input specs/<spec-slug>/pr.md --ssh-host-alias <alias> ...`, then `--create` only after review; PR creation is blocked while spec slices remain open
163
+ 25. After merge, close the worktree with `npx create-quiver spec close specs/<spec-slug>`
164
+ 26. Validate the spec with `npx create-quiver spec validate specs/<spec-slug>` or `npm run quiver:spec:validate -- specs/<spec-slug>`
165
+ 27. Validate the slice and the final PR with the workflow gates
159
166
 
160
167
  Bootstrap note: `start-slice` should resolve paths canonically, prefer a local `develop` or `main` base branch before reaching for `origin`, and reject `draft` slices unless `--allow-draft` is passed intentionally.
161
168
  Release note: `scripts/package-quiver.sh` runs package safety against the npm tarball and must fail if local AI state, env files, npm credentials, or worktree state would be published.
package/ROADMAP.md CHANGED
@@ -55,9 +55,25 @@
55
55
  - Shipped v22 Guided AI Workflow after `0.10.0`: preparation diagnostics, approval state, spec worktrees, executor commits, execution waves, PR creation, post-merge cleanup, and release/package safety are implemented on the release branch.
56
56
  - Shipped v23 Guided Flow Productization after `0.10.0`: short `quiver` entrypoint, flow status, agent profiles, token-efficient onboarding, versioned planner drafts, production plan review, spec create, executor prompts, delegated worktrees, and final smoke/readiness coverage are implemented on the release branch and ready for the next package release.
57
57
 
58
- ## v0.11 — DX Onboarding Hardening (implemented, pending package release)
58
+ ## v0.11 — DX Onboarding Hardening (shipped 2026-05-22)
59
59
 
60
- - **v24** DX and onboarding hardening from real Quiver Spec Viewer dogfooding: init hygiene, CLI ambiguity, version mismatch checks, local slice validation, analyzer quality, AI context preparation, evidence capture, optional demo scaffolding, documentation, and smoke coverage are implemented on the release branch. No npm release is implied until publication happens.
60
+ - Published package `0.11.0`.
61
+ - **v24** — DX and onboarding hardening from real Quiver Spec Viewer dogfooding: init hygiene, CLI ambiguity, version mismatch checks, local slice validation, analyzer quality, AI context preparation, evidence capture, optional demo scaffolding, documentation, and smoke coverage.
62
+
63
+ ## v0.12 — AI-First Lifecycle Orchestrator (shipped 2026-05-22)
64
+
65
+ - Published package `0.12.0`.
66
+ - **v25** — AI-first lifecycle orchestrator: safe AI onboarding docs, strict run state, phase locks, agent adapters, approval gates, generated specs/slices/handoffs/PR body, execution waves, controlled slice execution, worktree/PR lifecycle, validation hardening, export, and migration.
67
+
68
+ ## v0.12.1 — Smoke Hardening Hotfix (shipped 2026-05-24)
69
+
70
+ - Published package `0.12.1`.
71
+ - **v26** — `0.12.1` smoke hardening from clean npm package validation: CLI help/version output, generated doc links, AI approval/review guidance, local validation, slice brief validation, demo scaffold readiness, scoped plan/graph performance, and release smoke coverage.
72
+
73
+ ## v0.13 — Reliability and AI Workflow Hardening (shipped 2026-05-25)
74
+
75
+ - Published package `0.13.0`.
76
+ - **v27** — Reliability hardening from Pixel Quiver dogfooding: shared state resolver, canonical statuses, JSON export contract, approved-plan spec generation, AI artifact cleanup, token compaction, worktree lifecycle, validation gates, context diagnostics, cross-platform DX, fixtures, smoke tests, and package/tarball release readiness live in `specs/quiver-v27-reliability-ai-workflow-hardening/`.
61
77
 
62
78
  ## Post-Checkpoint Plan (do not execute before validating v14)
63
79
 
@@ -71,7 +87,10 @@
71
87
  - **v21 — AI-First Layout** (completed): clean default init, `.quiver/` internals, analyze scan relocation, optional legacy assets, and no-spec-safe commands.
72
88
  - **v22 — Guided AI Workflow** (completed): guided preparation, approvals, spec worktrees, executor commits, execution waves, PR creation, cleanup, and release/package safety live in `specs/quiver-v22-guided-ai-workflow/`.
73
89
  - **v23 — Guided Flow Productization** (completed): AI-first flow command, agent profiles, compact onboarding/planning prompts, production plan review, explicit `spec create`, manual executor prompts, delegated worktree execution, and release readiness live in `specs/quiver-v23-guided-flow-productization/`.
74
- - **v24 — DX Onboarding Hardening** (implemented, pending package release): real-world dogfooding fixes for init/templates, CLI routing, doctor/prepare, local validation, analyzer, AI context preparation, evidence, and demos live in `specs/quiver-v24-dx-onboarding-hardening/`.
90
+ - **v24 — DX Onboarding Hardening** (shipped in `0.11.0`): real-world dogfooding fixes for init/templates, CLI routing, doctor/prepare, local validation, analyzer, AI context preparation, evidence, and demos live in `specs/quiver-v24-dx-onboarding-hardening/`.
91
+ - **v25 — AI-First Lifecycle Orchestrator** (shipped in `0.12.0`): safe AI onboarding docs, strict run state, phase locks, agent adapters, approval gates, generated specs/slices/handoffs/PR body, execution waves, controlled slice execution, worktree/PR lifecycle, validation hardening, export, and migration live in `specs/quiver-v25-ai-first-lifecycle-orchestrator/`.
92
+ - **v26 — 0.12.1 Smoke Hardening** (shipped in `0.12.1`): first-use hardening from clean npm smoke testing, covering CLI help/version output, generated doc links, AI approval/review guidance, local validation, slice brief validation, demo readiness, scoped plan/graph performance, and release smoke coverage live in `specs/quiver-v26-0121-smoke-hardening/`.
93
+ - **v27 — Reliability and AI Workflow Hardening** (shipped in `0.13.0`): Pixel Quiver dogfooding follow-up covering resolver/export/spec-create/AI-artifact/worktree/validation/context/DX hardening lives in `specs/quiver-v27-reliability-ai-workflow-hardening/`.
75
94
 
76
95
  The shipped v20/v21/v22/v23 work is no longer pending. The older context-diagnostics and slice-archaeology ideas remain deferred until real demand justifies them.
77
96
 
@@ -74,8 +74,14 @@ Si usás los comandos de IA de Quiver, empezá con `--dry-run` para revisar prov
74
74
  npm run quiver:prepare -- --dry-run
75
75
  npm run quiver:ai:prepare-context -- --dry-run
76
76
  npm run quiver:ai:onboard -- --dry-run
77
+ npm run quiver:ai:inspect
78
+ npm run quiver:ai:export -- --format json
79
+ npm run quiver:ai:specs
80
+ npm run quiver:ai:slices
81
+ npm run quiver:ai:trace
77
82
  npm run quiver:ai:plan -- --phase acceptance --input requirements.md --dry-run
78
- npm run quiver:ai:approve -- --phase acceptance --input acceptance-approved.md
83
+ npm run quiver:ai:revise -- --phase acceptance --input feedback.md --dry-run
84
+ npm run quiver:ai:approve -- --phase acceptance --version <n>
79
85
  npm run quiver:ai:plan -- --phase technical-plan --dry-run
80
86
  npm run quiver:ai:review-plan -- --dry-run
81
87
  npm run quiver:ai:approve -- --phase technical-plan --version <n>