create-quiver 0.14.0 → 0.14.1

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 (55) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +183 -518
  3. package/README_FOR_AI.md +32 -26
  4. package/ROADMAP.md +5 -0
  5. package/assets/quiver-wordmark.svg +22 -0
  6. package/docs/AI_CONTEXT.md.template +2 -0
  7. package/docs/AI_ONBOARDING_PROMPT.md.template +9 -1
  8. package/docs/CLI_UX_GUIDE.md +125 -0
  9. package/docs/COMMANDS.md.template +16 -3
  10. package/docs/GITFLOW_PR_GUIDE.md +70 -0
  11. package/docs/getting-started/linux.md +84 -0
  12. package/docs/getting-started/macos.md +85 -0
  13. package/docs/getting-started/windows-git-bash-wsl.md +78 -0
  14. package/docs/getting-started/windows-powershell.md +96 -0
  15. package/docs/reference/commands.md +94 -0
  16. package/docs/workflows/existing-project.md +131 -0
  17. package/docs/workflows/full-ai-spec-to-pr.md +311 -0
  18. package/docs/workflows/legacy-quiver-project.md +102 -0
  19. package/docs/workflows/new-project.md +76 -0
  20. package/package.json +5 -1
  21. package/specs/quiver-v29-planner-prepare-context-cli-ux/EVIDENCE_REPORT.md +163 -0
  22. package/specs/quiver-v29-planner-prepare-context-cli-ux/EXECUTION_PLAN.md +72 -0
  23. package/specs/quiver-v29-planner-prepare-context-cli-ux/SPEC.md +173 -0
  24. package/specs/quiver-v29-planner-prepare-context-cli-ux/STATUS.md +34 -0
  25. package/specs/quiver-v29-planner-prepare-context-cli-ux/pr.md +95 -0
  26. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/CLOSURE_BRIEF.md +32 -0
  27. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/EXECUTION_BRIEF.md +45 -0
  28. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-00-cli-ux-spec-foundation/slice.json +58 -0
  29. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/CLOSURE_BRIEF.md +33 -0
  30. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/EXECUTION_BRIEF.md +49 -0
  31. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-01-cli-ux-primitives-theme/slice.json +75 -0
  32. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/CLOSURE_BRIEF.md +32 -0
  33. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/EXECUTION_BRIEF.md +47 -0
  34. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-02-planner-context-proposal-contract/slice.json +71 -0
  35. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/CLOSURE_BRIEF.md +33 -0
  36. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/EXECUTION_BRIEF.md +52 -0
  37. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-03-prepare-context-planner-review-flow/slice.json +82 -0
  38. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/CLOSURE_BRIEF.md +34 -0
  39. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/EXECUTION_BRIEF.md +46 -0
  40. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-04-ux-flag-matrix-compatibility/slice.json +73 -0
  41. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/CLOSURE_BRIEF.md +34 -0
  42. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/EXECUTION_BRIEF.md +46 -0
  43. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-05-progressive-command-adoption/slice.json +83 -0
  44. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/CLOSURE_BRIEF.md +31 -0
  45. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/EXECUTION_BRIEF.md +50 -0
  46. package/specs/quiver-v29-planner-prepare-context-cli-ux/slices/slice-06-docs-tests-smoke-readiness/slice.json +95 -0
  47. package/src/create-quiver/commands/ai.js +458 -3
  48. package/src/create-quiver/commands/spec.js +64 -2
  49. package/src/create-quiver/index.js +49 -1
  50. package/src/create-quiver/lib/ai/context-proposal.js +389 -0
  51. package/src/create-quiver/lib/ai/context-proposal.schema.js +31 -0
  52. package/src/create-quiver/lib/cli/editor.js +118 -0
  53. package/src/create-quiver/lib/cli/theme.js +100 -0
  54. package/src/create-quiver/lib/cli/ux-flags.js +151 -0
  55. package/src/create-quiver/lib/cli/ux.js +130 -0
@@ -0,0 +1,82 @@
1
+ {
2
+ "slice_id": "slice-03-prepare-context-planner-review-flow",
3
+ "ticket": "QUIVER-29-03",
4
+ "type": "feature",
5
+ "title": "Planner-assisted prepare-context review flow",
6
+ "objective": "Implement `ai prepare-context --with-planner` with dry-run, print-prompt, review, interactive, docs-only writes, snapshots, and safe fallback.",
7
+ "description": "Extends the current deterministic prepare-context command while preserving its default behavior.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "v29-prepare-context-planner-review-flow",
12
+ "branch_name": "feature/QUIVER-29-03-v29-prepare-context-planner-review-flow"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/index.js",
16
+ "src/create-quiver/commands/ai.js",
17
+ "src/create-quiver/lib/ai/onboarding-template.js",
18
+ "src/create-quiver/lib/ai/context-proposal.js",
19
+ "src/create-quiver/lib/ai/artifacts.js",
20
+ "tests/commands/ai-onboard.test.js",
21
+ "tests/commands/ai-prepare-context-planner.test.js",
22
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
23
+ ],
24
+ "expected_read_paths": [
25
+ "src/create-quiver/index.js",
26
+ "src/create-quiver/commands/ai.js",
27
+ "src/create-quiver/lib/ai/**",
28
+ "tests/commands/ai-onboard.test.js",
29
+ "tests/commands/ai-plan.test.js"
30
+ ],
31
+ "allowed_write_paths": [
32
+ "src/create-quiver/index.js",
33
+ "src/create-quiver/commands/ai.js",
34
+ "src/create-quiver/lib/ai/onboarding-template.js",
35
+ "src/create-quiver/lib/ai/context-proposal.js",
36
+ "src/create-quiver/lib/ai/artifacts.js",
37
+ "tests/commands/ai-onboard.test.js",
38
+ "tests/commands/ai-prepare-context-planner.test.js",
39
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
40
+ ],
41
+ "depends_on": [
42
+ "slice-02-planner-context-proposal-contract",
43
+ "slice-04-ux-flag-matrix-compatibility"
44
+ ],
45
+ "parallel_safe": "no",
46
+ "parallel_safe_reason": "Main command integration touches central AI command behavior and should run after contract/flag guardrails are stable.",
47
+ "must": [
48
+ "Keep current prepare-context behavior as default.",
49
+ "Add --with-planner as explicit planner-assisted mode.",
50
+ "Support --print-prompt without provider auth or writes.",
51
+ "Support --dry-run without provider execution or writes.",
52
+ "Support --review with editor review and revalidation.",
53
+ "Support --interactive only in TTY and with non-interactive flag equivalents.",
54
+ "Create snapshots before writes.",
55
+ "Fallback safely to deterministic mode guidance when planner fails."
56
+ ],
57
+ "not_included": [
58
+ "Applying UX flags to unrelated commands.",
59
+ "Allowing planner writes outside context docs.",
60
+ "Changing `analyze` behavior."
61
+ ],
62
+ "acceptance": [
63
+ "Default prepare-context tests still pass.",
64
+ "--with-planner --dry-run reports invocation and candidate docs without writes.",
65
+ "--with-planner --print-prompt prints exact prompt and exits without provider auth.",
66
+ "--with-planner --review opens/uses editor flow and revalidates edited proposal.",
67
+ "Provider failure and invalid planner output produce no partial writes.",
68
+ "Docs-only snapshots are created before live writes."
69
+ ],
70
+ "tests": [
71
+ "node --test tests/commands/ai-onboard.test.js tests/commands/ai-prepare-context-planner.test.js",
72
+ "node --test tests/lib/ai-context-proposal.test.js"
73
+ ],
74
+ "validation_hints": [
75
+ "Use injected provider/editor functions in tests.",
76
+ "Verify no product-code writes through path allowlist tests."
77
+ ],
78
+ "estimated_hours": 10,
79
+ "actual_hours": 5,
80
+ "status": "completed",
81
+ "completed_at": "2026-05-26"
82
+ }
@@ -0,0 +1,34 @@
1
+ # CLOSURE_BRIEF - slice-04 UX flag matrix and compatibility guardrails
2
+
3
+ ## Summary
4
+
5
+ Completed centralized UX flag support and early compatibility validation.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - `--with-planner`, `--interactive`, and `--review` support is centralized in `src/create-quiver/lib/cli/ux-flags.js`.
10
+ - Unsupported UX flags fail before command dispatch and before side effects.
11
+ - Incompatible combinations such as `--json --interactive` and `--json --review` fail before command dispatch.
12
+ - `ai pr` supports `--interactive` and `--review`, while rejecting `--with-planner`.
13
+ - Read-only commands such as `flow`, `ai inspect`, and `ai export` reject unsupported UX flags.
14
+ - Existing `plan --json` output remains parseable when UX flags are not requested.
15
+
16
+ ## Relevant Changes
17
+
18
+ - Added `src/create-quiver/lib/cli/ux-flags.js`.
19
+ - Updated `src/create-quiver/index.js` to parse UX flags, validate them early, document them in help, and forward supported values to future command handlers.
20
+ - Added `tests/commands/ux-flags.test.js`.
21
+
22
+ ## Pending Work
23
+
24
+ - Later slices should rely on this matrix instead of ad hoc flag behavior.
25
+ - `slice-03` must implement actual `ai prepare-context --with-planner` behavior now that flags are accepted and forwarded.
26
+
27
+ ## Remaining Risks
28
+
29
+ - Command help and docs must stay aligned with this matrix.
30
+ - Some supported flags are forwarded before their command behavior exists; final release readiness depends on `slice-03` and `slice-05` completing before merge.
31
+
32
+ ## Future Recommendations
33
+
34
+ - Consider generating docs/reference command flag tables from the matrix in a future spec.
@@ -0,0 +1,46 @@
1
+ # EXECUTION_BRIEF - slice-04 UX flag matrix and compatibility guardrails
2
+
3
+ ## Context
4
+
5
+ Quiver needs standard UX flags without making every command accept every flag.
6
+
7
+ ## Objective
8
+
9
+ Centralize and enforce command support for `--with-planner`, `--interactive`, and `--review`.
10
+
11
+ ## Scope
12
+
13
+ - Add a command/flag matrix.
14
+ - Add parser validation for UX flags.
15
+ - Add incompatible-combination errors.
16
+ - Add tests for CI/no-TTY/JSON behavior.
17
+
18
+ ## Acceptance Criteria
19
+
20
+ - Unsupported flags fail before side effects.
21
+ - Supported flags are discoverable in help/docs.
22
+ - Machine modes are never decorated.
23
+
24
+ ## Suggested Steps
25
+
26
+ 1. Add central flag support matrix.
27
+ 2. Extend arg parsing for new flags.
28
+ 3. Validate unsupported and incompatible combinations early.
29
+ 4. Add command contract tests.
30
+ 5. Confirm existing commands keep passing.
31
+
32
+ ## Restrictions
33
+
34
+ - Do not implement planner proposal writes here.
35
+ - Do not add prompts to commands in this slice.
36
+
37
+ ## Risks
38
+
39
+ - Over-strict validation can break existing scripts if flags were previously ignored. Make errors clear and only reject new UX flags.
40
+
41
+ ## Completion Checklist
42
+
43
+ - [ ] Matrix exists in code.
44
+ - [ ] Matrix is tested.
45
+ - [ ] CI/no-TTY/JSON behavior is protected.
46
+ - [ ] Unsupported flags produce actionable output.
@@ -0,0 +1,73 @@
1
+ {
2
+ "slice_id": "slice-04-ux-flag-matrix-compatibility",
3
+ "ticket": "QUIVER-29-04",
4
+ "type": "feature",
5
+ "title": "UX flag matrix and compatibility guardrails",
6
+ "objective": "Add centralized rules for UX flags, incompatible combinations, machine-output modes, and unsupported command guidance.",
7
+ "description": "Prevents inconsistent adoption of `--with-planner`, `--interactive`, and `--review` by making command support explicit and testable.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "v29-ux-flag-matrix-compatibility",
12
+ "branch_name": "feature/QUIVER-29-04-v29-ux-flag-matrix-compatibility"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/index.js",
16
+ "src/create-quiver/lib/cli/ux-flags.js",
17
+ "src/create-quiver/lib/cli/ux.js",
18
+ "tests/commands/cli-contract.test.js",
19
+ "tests/commands/ux-flags.test.js",
20
+ "tests/lib/cli-ux.test.js",
21
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
22
+ ],
23
+ "expected_read_paths": [
24
+ "src/create-quiver/index.js",
25
+ "src/create-quiver/lib/cli/**",
26
+ "tests/commands/cli-contract.test.js"
27
+ ],
28
+ "allowed_write_paths": [
29
+ "src/create-quiver/index.js",
30
+ "src/create-quiver/lib/cli/ux-flags.js",
31
+ "src/create-quiver/lib/cli/ux.js",
32
+ "tests/commands/cli-contract.test.js",
33
+ "tests/commands/ux-flags.test.js",
34
+ "tests/lib/cli-ux.test.js",
35
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
36
+ ],
37
+ "depends_on": [
38
+ "slice-01-cli-ux-primitives-theme"
39
+ ],
40
+ "parallel_safe": "after_dependencies",
41
+ "parallel_safe_reason": "Can run in parallel with slice-02 if central parser conflicts are avoided.",
42
+ "must": [
43
+ "Define which commands support --with-planner, --interactive, and --review.",
44
+ "Reject unsupported UX flags with actionable messages.",
45
+ "Reject incompatible combinations such as --json --interactive and --json --review.",
46
+ "Ensure CI/no-TTY/--json disables spinners, colors, prompts, and decorative output.",
47
+ "Keep machine-readable stdout parseable."
48
+ ],
49
+ "not_included": [
50
+ "Implementing planner mode itself.",
51
+ "Migrating all commands to interactive mode.",
52
+ "Changing existing command semantics beyond flag validation."
53
+ ],
54
+ "acceptance": [
55
+ "Command/flag matrix is enforced in code and documented.",
56
+ "Unsupported flags fail before side effects.",
57
+ "Incompatible flag combinations fail before side effects.",
58
+ "JSON output stays undecorated.",
59
+ "Human-mode helpers remain opt-in."
60
+ ],
61
+ "tests": [
62
+ "node --test tests/commands/ux-flags.test.js tests/commands/cli-contract.test.js",
63
+ "node --test tests/lib/cli-ux.test.js"
64
+ ],
65
+ "validation_hints": [
66
+ "Tests should cover both supported and unsupported commands.",
67
+ "Do not allow partial command execution after flag validation failure."
68
+ ],
69
+ "estimated_hours": 7,
70
+ "actual_hours": 2,
71
+ "status": "completed",
72
+ "completed_at": "2026-05-26"
73
+ }
@@ -0,0 +1,34 @@
1
+ # CLOSURE_BRIEF - slice-05 Progressive command adoption
2
+
3
+ ## Summary
4
+
5
+ Completed progressive UX adoption for selected high-value commands.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - `ai plan` accepts the UX flags, reports planner/review/interactive intent in dry-run, supports editor review of provider drafts before saving, and can require interactive approval before saving.
10
+ - `spec create` supports `--review` as a guarded preview review before writes and `--interactive` as explicit confirmation before generation.
11
+ - `ai pr` supports review/edit of `pr.md` before creating the PR plan and interactive confirmation before `gh pr create`.
12
+ - `ai pr` still rejects `--with-planner` through the centralized flag matrix.
13
+ - Existing tests for the affected commands continue to pass.
14
+
15
+ ## Relevant Changes
16
+
17
+ - Updated `src/create-quiver/commands/ai.js` for `ai plan` draft review/interactive confirmation and `ai pr` PR body review/interactive confirmation.
18
+ - Updated `src/create-quiver/commands/spec.js` for `spec create` review/interactive guardrails.
19
+ - Updated `src/create-quiver/index.js` to await async `spec create`.
20
+ - Added command tests in `tests/commands/ai-plan.test.js`, `tests/commands/spec-create.test.js`, and `tests/commands/ai-pr.test.js`.
21
+
22
+ ## Pending Work
23
+
24
+ - Final docs and command reference updates must document these supported flags.
25
+ - Remaining commands should be migrated only through future scoped slices.
26
+
27
+ ## Remaining Risks
28
+
29
+ - Command UX can drift unless docs and matrix are updated in the final slice.
30
+ - `spec create --review` reviews the preview artifact and does not treat preview edits as source-of-truth changes; this is intentional guardrail behavior, but docs should explain it.
31
+
32
+ ## Future Recommendations
33
+
34
+ - Consider future UX adoption for `doctor --interactive --fix`, `ai onboard`, and `ai revise`.
@@ -0,0 +1,46 @@
1
+ # EXECUTION_BRIEF - slice-05 Progressive command adoption
2
+
3
+ ## Context
4
+
5
+ After `ai prepare-context` implements the full pattern, selected commands should adopt the same standard where it clearly improves UX.
6
+
7
+ ## Objective
8
+
9
+ Apply UX flags and review/interactive behavior to `ai plan`, `spec create`, and `ai pr` without redesigning unrelated commands.
10
+
11
+ ## Scope
12
+
13
+ - `ai plan`: planner-related UX flags and optional review flow.
14
+ - `spec create`: guarded review/interactive path.
15
+ - `ai pr`: interactive PR inputs and review/edit of `pr.md`; no `--with-planner`.
16
+ - Tests for supported and unsupported combinations.
17
+
18
+ ## Acceptance Criteria
19
+
20
+ - No command becomes interactive by default.
21
+ - Every interactive choice has a flag equivalent.
22
+ - Machine output stays clean.
23
+ - Unsupported flags fail clearly.
24
+
25
+ ## Suggested Steps
26
+
27
+ 1. Start with `ai pr --review` because it maps cleanly to existing `pr.md`.
28
+ 2. Add minimal `spec create --review` guardrails.
29
+ 3. Add `ai plan` UX flag compatibility.
30
+ 4. Add tests for each.
31
+
32
+ ## Restrictions
33
+
34
+ - Do not apply the standard to all commands in this slice.
35
+ - Do not add planner mode to `ai pr`.
36
+
37
+ ## Risks
38
+
39
+ - Broad command changes can create regressions. Keep adoption narrow and test heavily.
40
+
41
+ ## Completion Checklist
42
+
43
+ - [ ] `ai plan` compatibility tested.
44
+ - [ ] `spec create` review/interactive behavior tested.
45
+ - [ ] `ai pr` review/interactive behavior tested.
46
+ - [ ] Existing command tests still pass.
@@ -0,0 +1,83 @@
1
+ {
2
+ "slice_id": "slice-05-progressive-command-adoption",
3
+ "ticket": "QUIVER-29-05",
4
+ "type": "feature",
5
+ "title": "Progressive command adoption",
6
+ "objective": "Apply the new UX standard to selected high-value commands after `ai prepare-context` proves the pattern.",
7
+ "description": "Adds focused UX improvements to `ai plan`, `spec create`, and `ai pr` without redesigning the whole CLI.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "v29-progressive-command-adoption",
12
+ "branch_name": "feature/QUIVER-29-05-v29-progressive-command-adoption"
13
+ },
14
+ "files": [
15
+ "src/create-quiver/index.js",
16
+ "src/create-quiver/commands/ai.js",
17
+ "src/create-quiver/commands/spec.js",
18
+ "src/create-quiver/lib/ai/github.js",
19
+ "src/create-quiver/lib/ai/spec-generator.js",
20
+ "tests/commands/ai-plan.test.js",
21
+ "tests/commands/spec-create.test.js",
22
+ "tests/commands/ai-pr.test.js",
23
+ "tests/commands/ux-flags.test.js",
24
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
25
+ ],
26
+ "expected_read_paths": [
27
+ "src/create-quiver/index.js",
28
+ "src/create-quiver/commands/ai.js",
29
+ "src/create-quiver/commands/spec.js",
30
+ "src/create-quiver/lib/ai/**",
31
+ "tests/commands/ai-plan.test.js",
32
+ "tests/commands/spec-create.test.js",
33
+ "tests/commands/ai-pr.test.js"
34
+ ],
35
+ "allowed_write_paths": [
36
+ "src/create-quiver/index.js",
37
+ "src/create-quiver/commands/ai.js",
38
+ "src/create-quiver/commands/spec.js",
39
+ "src/create-quiver/lib/ai/github.js",
40
+ "src/create-quiver/lib/ai/spec-generator.js",
41
+ "tests/commands/ai-plan.test.js",
42
+ "tests/commands/spec-create.test.js",
43
+ "tests/commands/ai-pr.test.js",
44
+ "tests/commands/ux-flags.test.js",
45
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
46
+ ],
47
+ "depends_on": [
48
+ "slice-03-prepare-context-planner-review-flow",
49
+ "slice-04-ux-flag-matrix-compatibility"
50
+ ],
51
+ "parallel_safe": "no",
52
+ "parallel_safe_reason": "Touches multiple command integrations and should run after the prepare-context pattern stabilizes.",
53
+ "must": [
54
+ "Apply the standard to `ai plan` only where planner semantics are already natural.",
55
+ "Apply the standard to `spec create` with safe review/interactive guardrails.",
56
+ "Apply `--interactive` and `--review` to `ai pr` without adding `--with-planner`.",
57
+ "Keep non-interactive flag equivalents for every prompt.",
58
+ "Avoid changing command outputs in --json and CI modes."
59
+ ],
60
+ "not_included": [
61
+ "Full UX migration for all commands.",
62
+ "TUI dashboards.",
63
+ "Planner behavior for ai pr."
64
+ ],
65
+ "acceptance": [
66
+ "`ai plan` supports documented UX flags without breaking existing planner drafts.",
67
+ "`spec create` supports documented review/interactive guardrails where safe.",
68
+ "`ai pr` can review/edit PR body and interactive inputs without planner mode.",
69
+ "Existing tests for those commands still pass.",
70
+ "New tests cover unsupported and compatible flag combinations."
71
+ ],
72
+ "tests": [
73
+ "node --test tests/commands/ai-plan.test.js tests/commands/spec-create.test.js tests/commands/ai-pr.test.js tests/commands/ux-flags.test.js"
74
+ ],
75
+ "validation_hints": [
76
+ "Prefer minimal adoption over broad rewrites.",
77
+ "Keep generated artifacts backward compatible."
78
+ ],
79
+ "estimated_hours": 9,
80
+ "actual_hours": 4,
81
+ "status": "completed",
82
+ "completed_at": "2026-05-26"
83
+ }
@@ -0,0 +1,31 @@
1
+ # CLOSURE_BRIEF - slice-06 Docs, tests, smoke, and release readiness
2
+
3
+ ## Summary
4
+
5
+ Completed final documentation, template, workflow, test, smoke, package, and tarball readiness for Quiver v29.
6
+
7
+ ## Validation Against Acceptance Criteria
8
+
9
+ - Documentation now covers deterministic and planner-assisted `ai prepare-context`, guarded UX flags, review/interactive flows, color tokens, JSON/CI/no-TTY behavior, and command applicability.
10
+ - `README_FOR_AI.md` is synchronized with implemented behavior and records v29 as implemented but pending package publication.
11
+ - Generated templates now include planner-assisted context guidance and UX flag rules.
12
+ - Full tests, focused tests, smoke commands, package validation, tarball dry-run, spec validation, handoff validation, JSON validation, and diff check passed.
13
+
14
+ ## Relevant Changes
15
+
16
+ - Added `docs/CLI_UX_GUIDE.md`.
17
+ - Updated `README.md`, `README_FOR_AI.md`, `docs/reference/commands.md`, generated templates, workflow guides, `CHANGELOG.md`, and `ROADMAP.md`.
18
+ - Updated spec status, evidence, and slice metadata.
19
+
20
+ ## Pending Work
21
+
22
+ - Npm publication and PR creation are outside this slice unless explicitly requested later.
23
+
24
+ ## Remaining Risks
25
+
26
+ - Package version remains `0.14.0`; publication/version bump is intentionally outside this slice.
27
+ - The npm CLI printed an update notice for npm `11.12.1 -> 11.15.0`; it did not block validation.
28
+
29
+ ## Future Recommendations
30
+
31
+ - Use dogfooding findings from the first planner-assisted projects to scope the next UX adoption batch.
@@ -0,0 +1,50 @@
1
+ # EXECUTION_BRIEF - slice-06 Docs, tests, smoke, and release readiness
2
+
3
+ ## Context
4
+
5
+ This is the final Quiver v29 slice. It must reconcile implementation, documentation, generated templates, tests, and package safety.
6
+
7
+ ## Objective
8
+
9
+ Close the spec with complete documentation and validation evidence.
10
+
11
+ ## Scope
12
+
13
+ - Update public and AI-facing docs.
14
+ - Add or update `docs/CLI_UX_GUIDE.md`.
15
+ - Update command references and templates.
16
+ - Run full tests and smoke commands.
17
+ - Update spec status, evidence, and closure briefs.
18
+
19
+ ## Acceptance Criteria
20
+
21
+ - Documentation matches implemented behavior.
22
+ - README_FOR_AI.md remains source-of-truth aligned.
23
+ - Tests and package smoke pass.
24
+ - Any blocker is explicitly documented.
25
+
26
+ ## Suggested Steps
27
+
28
+ 1. Compare implementation against `SPEC.md`.
29
+ 2. Update docs and templates.
30
+ 3. Run focused tests, then full test suite.
31
+ 4. Run smoke/package commands.
32
+ 5. Update status/evidence/closure docs.
33
+
34
+ ## Restrictions
35
+
36
+ - Do not add new behavior in this slice unless required to fix a validation failure from prior slices.
37
+ - Do not publish npm.
38
+ - Do not open PR.
39
+
40
+ ## Risks
41
+
42
+ - Docs can easily drift from real behavior. Verify against `node bin/create-quiver.js --help`.
43
+
44
+ ## Completion Checklist
45
+
46
+ - [ ] Docs synchronized.
47
+ - [ ] Full tests run.
48
+ - [ ] Smoke/package validation run.
49
+ - [ ] Spec status updated.
50
+ - [ ] Final risks recorded.
@@ -0,0 +1,95 @@
1
+ {
2
+ "slice_id": "slice-06-docs-tests-smoke-readiness",
3
+ "ticket": "QUIVER-29-06",
4
+ "type": "docs",
5
+ "title": "Docs, tests, smoke, and release readiness",
6
+ "objective": "Close the spec by synchronizing documentation, templates, tests, package safety, and release evidence.",
7
+ "description": "Ensures the implemented CLI UX standard and planner-assisted prepare-context flow are documented, tested, and package-ready.",
8
+ "git": {
9
+ "branch_type": "feature",
10
+ "base_branch": "main",
11
+ "branch_slug": "v29-docs-tests-smoke-readiness",
12
+ "branch_name": "feature/QUIVER-29-06-v29-docs-tests-smoke-readiness"
13
+ },
14
+ "files": [
15
+ "README.md",
16
+ "README_FOR_AI.md",
17
+ "CHANGELOG.md",
18
+ "ROADMAP.md",
19
+ "docs/COMMANDS.md.template",
20
+ "docs/AI_CONTEXT.md.template",
21
+ "docs/AI_ONBOARDING_PROMPT.md.template",
22
+ "docs/CLI_UX_GUIDE.md",
23
+ "docs/reference/commands.md",
24
+ "docs/workflows/*.md",
25
+ "tests/**",
26
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
27
+ ],
28
+ "expected_read_paths": [
29
+ "README.md",
30
+ "README_FOR_AI.md",
31
+ "docs/**",
32
+ "tests/**",
33
+ "scripts/package-quiver.sh",
34
+ "scripts/ci/**"
35
+ ],
36
+ "allowed_write_paths": [
37
+ "README.md",
38
+ "README_FOR_AI.md",
39
+ "CHANGELOG.md",
40
+ "ROADMAP.md",
41
+ "docs/COMMANDS.md.template",
42
+ "docs/AI_CONTEXT.md.template",
43
+ "docs/AI_ONBOARDING_PROMPT.md.template",
44
+ "docs/CLI_UX_GUIDE.md",
45
+ "docs/reference/commands.md",
46
+ "docs/workflows/*.md",
47
+ "tests/**",
48
+ "specs/quiver-v29-planner-prepare-context-cli-ux/**"
49
+ ],
50
+ "depends_on": [
51
+ "slice-02-planner-context-proposal-contract",
52
+ "slice-03-prepare-context-planner-review-flow",
53
+ "slice-04-ux-flag-matrix-compatibility",
54
+ "slice-05-progressive-command-adoption"
55
+ ],
56
+ "parallel_safe": "no",
57
+ "parallel_safe_reason": "Final validation and docs sync must run after all behavior slices.",
58
+ "must": [
59
+ "Document the UX standard, color tokens, and flag matrix.",
60
+ "Document deterministic and planner-assisted prepare-context flows.",
61
+ "Update generated templates where needed.",
62
+ "Run full test and smoke suite.",
63
+ "Record validation evidence in the spec.",
64
+ "Keep README_FOR_AI.md synchronized with implemented behavior."
65
+ ],
66
+ "not_included": [
67
+ "Publishing npm.",
68
+ "Opening the final PR.",
69
+ "Adding new behavior beyond closing docs/tests."
70
+ ],
71
+ "acceptance": [
72
+ "Docs do not contradict implemented command behavior.",
73
+ "Generated docs/templates include the new UX and planner guidance.",
74
+ "Full tests and smoke commands pass or documented blockers are explicit.",
75
+ "Package/tarball dry-run is clean.",
76
+ "Spec status and closure briefs reflect final implementation state."
77
+ ],
78
+ "tests": [
79
+ "node --test tests/**/*.test.js",
80
+ "npm run smoke:create-quiver",
81
+ "npm run smoke:doctor-fixtures",
82
+ "npm run smoke:guided-workflow",
83
+ "npm run package:quiver",
84
+ "npm pack --dry-run",
85
+ "git diff --check"
86
+ ],
87
+ "validation_hints": [
88
+ "Run this slice last.",
89
+ "Check README_FOR_AI.md against actual CLI behavior before closing."
90
+ ],
91
+ "estimated_hours": 6,
92
+ "actual_hours": 4,
93
+ "status": "completed",
94
+ "completed_at": "2026-05-26"
95
+ }