ace-docs 0.31.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 (91) hide show
  1. checksums.yaml +7 -0
  2. data/.ace-defaults/docs/config.yml +169 -0
  3. data/.ace-defaults/docs/multi-subject-example.md +130 -0
  4. data/.ace-defaults/docs/single-subject-example.md +150 -0
  5. data/.ace-defaults/nav/protocols/guide-sources/ace-docs.yml +10 -0
  6. data/.ace-defaults/nav/protocols/prompt-sources/ace-docs.yml +34 -0
  7. data/.ace-defaults/nav/protocols/tmpl-sources/ace-docs.yml +10 -0
  8. data/.ace-defaults/nav/protocols/wfi-sources/ace-docs.yml +19 -0
  9. data/CHANGELOG.md +1082 -0
  10. data/LICENSE +21 -0
  11. data/README.md +40 -0
  12. data/Rakefile +14 -0
  13. data/exe/ace-docs +14 -0
  14. data/handbook/guides/documentation/ruby.md +16 -0
  15. data/handbook/guides/documentation/rust.md +35 -0
  16. data/handbook/guides/documentation/typescript.md +18 -0
  17. data/handbook/guides/documentation.g.md +437 -0
  18. data/handbook/guides/documents-embedded-sync.g.md +473 -0
  19. data/handbook/guides/documents-embedding.g.md +276 -0
  20. data/handbook/guides/markdown-style.g.md +290 -0
  21. data/handbook/prompts/ace-change-analyzer.system.md +113 -0
  22. data/handbook/prompts/ace-change-analyzer.user.md +95 -0
  23. data/handbook/prompts/document-analysis.md +74 -0
  24. data/handbook/prompts/document-analysis.system.md +129 -0
  25. data/handbook/prompts/markdown-style.system.md +113 -0
  26. data/handbook/skills/as-docs-create-adr/SKILL.md +35 -0
  27. data/handbook/skills/as-docs-create-api/SKILL.md +35 -0
  28. data/handbook/skills/as-docs-create-user/SKILL.md +35 -0
  29. data/handbook/skills/as-docs-maintain-adrs/SKILL.md +35 -0
  30. data/handbook/skills/as-docs-squash-changelog/SKILL.md +42 -0
  31. data/handbook/skills/as-docs-update/SKILL.md +36 -0
  32. data/handbook/skills/as-docs-update-blueprint/SKILL.md +28 -0
  33. data/handbook/skills/as-docs-update-roadmap/SKILL.md +24 -0
  34. data/handbook/skills/as-docs-update-tools/SKILL.md +36 -0
  35. data/handbook/skills/as-docs-update-usage/SKILL.md +26 -0
  36. data/handbook/templates/code-docs/javascript-jsdoc.template.md +102 -0
  37. data/handbook/templates/code-docs/ruby-yard.template.md +85 -0
  38. data/handbook/templates/project-docs/README.template.md +73 -0
  39. data/handbook/templates/project-docs/architecture.template.md +300 -0
  40. data/handbook/templates/project-docs/blueprint.template.md +165 -0
  41. data/handbook/templates/project-docs/context/ownership.yml +160 -0
  42. data/handbook/templates/project-docs/decisions/adr.template.md +60 -0
  43. data/handbook/templates/project-docs/prd.template.md +144 -0
  44. data/handbook/templates/project-docs/roadmap/roadmap.template.md +47 -0
  45. data/handbook/templates/project-docs/vision.template.md +233 -0
  46. data/handbook/templates/user-docs/user-guide.template.md +107 -0
  47. data/handbook/workflow-instructions/docs/create-adr.wf.md +334 -0
  48. data/handbook/workflow-instructions/docs/create-api.wf.md +448 -0
  49. data/handbook/workflow-instructions/docs/create-cookbook.wf.md +434 -0
  50. data/handbook/workflow-instructions/docs/create-user.wf.md +399 -0
  51. data/handbook/workflow-instructions/docs/maintain-adrs.wf.md +589 -0
  52. data/handbook/workflow-instructions/docs/squash-changelog.wf.md +246 -0
  53. data/handbook/workflow-instructions/docs/update-blueprint.wf.md +361 -0
  54. data/handbook/workflow-instructions/docs/update-context.wf.md +336 -0
  55. data/handbook/workflow-instructions/docs/update-roadmap.wf.md +421 -0
  56. data/handbook/workflow-instructions/docs/update-tools.wf.md +307 -0
  57. data/handbook/workflow-instructions/docs/update-usage.wf.md +710 -0
  58. data/handbook/workflow-instructions/docs/update.wf.md +418 -0
  59. data/lib/ace/docs/atoms/diff_filterer.rb +131 -0
  60. data/lib/ace/docs/atoms/frontmatter_free_matcher.rb +20 -0
  61. data/lib/ace/docs/atoms/git_date_resolver.rb +16 -0
  62. data/lib/ace/docs/atoms/readme_metadata_inferrer.rb +60 -0
  63. data/lib/ace/docs/atoms/terminology_extractor.rb +308 -0
  64. data/lib/ace/docs/atoms/time_range_calculator.rb +96 -0
  65. data/lib/ace/docs/atoms/timestamp_parser.rb +106 -0
  66. data/lib/ace/docs/atoms/type_inferrer.rb +70 -0
  67. data/lib/ace/docs/cli/commands/analyze.rb +351 -0
  68. data/lib/ace/docs/cli/commands/analyze_consistency.rb +185 -0
  69. data/lib/ace/docs/cli/commands/discover.rb +75 -0
  70. data/lib/ace/docs/cli/commands/scope_options.rb +71 -0
  71. data/lib/ace/docs/cli/commands/status.rb +241 -0
  72. data/lib/ace/docs/cli/commands/update.rb +198 -0
  73. data/lib/ace/docs/cli/commands/validate.rb +225 -0
  74. data/lib/ace/docs/cli.rb +60 -0
  75. data/lib/ace/docs/models/analysis_report.rb +120 -0
  76. data/lib/ace/docs/models/consistency_report.rb +259 -0
  77. data/lib/ace/docs/models/document.rb +354 -0
  78. data/lib/ace/docs/molecules/change_detector.rb +389 -0
  79. data/lib/ace/docs/molecules/document_loader.rb +133 -0
  80. data/lib/ace/docs/molecules/frontmatter_manager.rb +85 -0
  81. data/lib/ace/docs/molecules/git_date_resolver.rb +30 -0
  82. data/lib/ace/docs/organisms/cross_document_analyzer.rb +274 -0
  83. data/lib/ace/docs/organisms/document_registry.rb +318 -0
  84. data/lib/ace/docs/organisms/validator.rb +164 -0
  85. data/lib/ace/docs/prompts/compact_diff_prompt.rb +119 -0
  86. data/lib/ace/docs/prompts/consistency_prompt.rb +286 -0
  87. data/lib/ace/docs/prompts/document_analysis_prompt.rb +389 -0
  88. data/lib/ace/docs/version.rb +7 -0
  89. data/lib/ace/docs.rb +82 -0
  90. data/lib/test.rb +4 -0
  91. metadata +347 -0
@@ -0,0 +1,421 @@
1
+ ---
2
+ doc-type: workflow
3
+ title: Update Roadmap Workflow
4
+ purpose: update-roadmap workflow instruction
5
+ ace-docs:
6
+ last-updated: 2026-02-23
7
+ last-checked: 2026-03-21
8
+ ---
9
+
10
+ # Update Roadmap Workflow
11
+
12
+ ## Goal
13
+
14
+ Synchronize the project roadmap (`.ace-taskflow/roadmap.md`) with the current state of releases and tasks in the `.ace-taskflow/` directory structure. This workflow analyzes release folders, updates the Planned Major Releases table, synchronizes cross-release dependencies, and maintains roadmap format compliance per the Roadmap Definition Guide.
15
+
16
+ ## Prerequisites
17
+
18
+ * `.ace-taskflow/roadmap.md` exists and follows roadmap-definition.g.md structure
19
+ * `.ace-taskflow/` directory contains release folders with release.md files
20
+ * `ace-taskflow` CLI tool available for release queries
21
+ * `ace-nav` available for workflow protocol support
22
+ * Git repository in clean state for committing changes
23
+
24
+ ## Project Context Loading
25
+
26
+ - Read and follow: `ace-bundle wfi://bundle`
27
+
28
+ ## Process Steps
29
+
30
+ ### 1. Load Current Roadmap
31
+
32
+ **Read the existing roadmap document:**
33
+
34
+ ```bash
35
+ # Get roadmap path
36
+ cat .ace-taskflow/roadmap.md
37
+ ```
38
+
39
+ **Capture current state:**
40
+ - Front matter metadata (title, last_reviewed, status)
41
+ - Existing Planned Major Releases entries
42
+ - Cross-Release Dependencies content
43
+ - Update History entries
44
+
45
+ ### 2. Validate Roadmap Structure
46
+
47
+ **Verify roadmap format compliance against roadmap-definition.g.md:**
48
+
49
+ **Required Sections Check:**
50
+ - [ ] Front Matter (YAML with title, last_reviewed, status)
51
+ - [ ] Section 1: Project Vision
52
+ - [ ] Section 2: Strategic Objectives (table format)
53
+ - [ ] Section 3: Key Themes & Epics (table format)
54
+ - [ ] Section 4: Planned Major Releases (table format)
55
+ - [ ] Section 5: Cross-Release Dependencies
56
+ - [ ] Section 6: Update History (table format)
57
+
58
+ **Front Matter Validation:**
59
+ - `title` must be "Project Roadmap"
60
+ - `last_reviewed` must use ISO date format (YYYY-MM-DD)
61
+ - `status` must be one of: draft, active, archived
62
+
63
+ **Table Format Validation:**
64
+ - Planned Major Releases: 5 columns (Version, Codename, Target Window, Goals, Key Epics)
65
+ - Strategic Objectives: 3 columns (#, Objective, Success Metric)
66
+ - Key Themes & Epics: 3 columns (Theme, Description, Linked Epics)
67
+ - Update History: 3 columns (Date, Summary, Author)
68
+
69
+ **If validation fails:**
70
+ 1. Report specific format violations with line references
71
+ 2. Reference roadmap-definition.g.md for correction requirements
72
+ 3. HALT process and require manual correction before proceeding
73
+
74
+ ### 3. Analyze Release State
75
+
76
+ **Discover all releases in .ace-taskflow structure:**
77
+
78
+ ```bash
79
+ # Get current release
80
+ ace-release
81
+
82
+ # List all release directories
83
+ ls -d .ace-taskflow/v.*/ 2>/dev/null || echo "No releases found"
84
+ ```
85
+
86
+ **For each release found, extract:**
87
+ - Version number (from directory name or release.md)
88
+ - Codename (from release.md front matter)
89
+ - Target window/timeline (from release.md)
90
+ - Primary goals (from release.md overview)
91
+ - Key epics/themes (from task analysis or release.md)
92
+ - Release status (based on folder location and release.md status)
93
+
94
+ **Categorize releases:**
95
+ - **Active/Current**: Releases with in-progress tasks
96
+ - **Planned/Future**: Releases with pending tasks
97
+ - **Completed**: Releases marked as done (to be removed from roadmap)
98
+
99
+ ### 4. Update Planned Major Releases Table
100
+
101
+ **Synchronization Rules:**
102
+
103
+ 1. **Add New Releases:**
104
+ - If release exists in `.ace-taskflow/` but NOT in roadmap table
105
+ - Extract release information from release.md
106
+ - Add row to Planned Major Releases table with proper format
107
+
108
+ 2. **Update Existing Releases:**
109
+ - If release exists in both roadmap and `.ace-taskflow/`
110
+ - Compare current information with release.md
111
+ - Update any changed fields (goals, target window, epics)
112
+
113
+ 3. **Remove Completed Releases:**
114
+ - If release is marked done/completed in `.ace-taskflow/`
115
+ - Remove entire row from Planned Major Releases table
116
+ - Ensure release information captured in changelog
117
+ - Document removal in Update History
118
+
119
+ **Table Format Requirements:**
120
+ ```markdown
121
+ | Version | Codename | Target Window | Goals | Key Epics |
122
+ |---------|----------|---------------|-------|-----------|
123
+ | v.X.Y.Z | "[Name]" | QX YYYY | [Primary goals] | [Related epics] |
124
+ ```
125
+
126
+ **Format Compliance:**
127
+ - Version: Semantic versioning (v.X.Y.Z)
128
+ - Codename: Quoted string
129
+ - Target Window: Quarter and year format
130
+ - Goals: Concise description
131
+ - Key Epics: Comma-separated if multiple
132
+
133
+ ### 5. Synchronize Cross-Release Dependencies
134
+
135
+ **Review dependency statements:**
136
+
137
+ 1. **Check for obsolete references:**
138
+ - Identify dependencies mentioning removed releases
139
+ - Identify dependencies mentioning non-existent epics
140
+ - Remove or update obsolete statements
141
+
142
+ 2. **Add new dependencies:**
143
+ - Analyze task dependencies from `.ace-taskflow/` structure
144
+ - Identify cross-release blocking dependencies
145
+ - Add clear dependency statements to Section 5
146
+
147
+ 3. **Maintain dependency clarity:**
148
+ - Each dependency should link specific releases or epics
149
+ - Focus on blocking dependencies only
150
+ - Keep concise and actionable
151
+
152
+ **Dependency Statement Format:**
153
+ ```markdown
154
+ - [Epic/Release Name] in [Release Version] depends on [Dependency] from [Release Version].
155
+ - [Feature] requires completion of [Prerequisite] before [Action].
156
+ ```
157
+
158
+ ### 6. Update Metadata and History
159
+
160
+ **Update Front Matter:**
161
+ ```yaml
162
+ ---
163
+ title: Project Roadmap
164
+ last_reviewed: [Today's Date in YYYY-MM-DD]
165
+ status: active
166
+ ---
167
+ ```
168
+
169
+ **Add Update History Entry:**
170
+
171
+ Add new row to Update History table (Section 6) at the TOP:
172
+
173
+ ```markdown
174
+ | Date | Summary | Author |
175
+ |------|---------|--------|
176
+ | YYYY-MM-DD | [Description of changes made] | AI Assistant |
177
+ | [Previous entries...] | [...] | [...] |
178
+ ```
179
+
180
+ **Summary Guidelines:**
181
+ - Mention specific releases added/updated/removed
182
+ - Note significant dependency changes
183
+ - Keep concise but descriptive
184
+ - Example: "Added v.0.9.0 to planned releases; removed completed v.0.8.0"
185
+
186
+ ### 7. Validate Updated Roadmap
187
+
188
+ **Post-Update Validation:**
189
+
190
+ 1. **Structure Check:**
191
+ - All required sections present
192
+ - All tables properly formatted
193
+ - No broken Markdown syntax
194
+
195
+ 2. **Content Check:**
196
+ - No references to non-existent releases
197
+ - Cross-references are accurate
198
+ - Dates use ISO format
199
+ - Version numbers use semantic versioning
200
+
201
+ 3. **Consistency Check:**
202
+ - Releases in table match `.ace-taskflow/` structure
203
+ - Dependencies reference valid releases/epics
204
+ - Update history reflects changes made
205
+
206
+ **If validation fails:**
207
+ - Report specific issues with line references
208
+ - Fix issues before proceeding to commit
209
+ - Re-validate after corrections
210
+
211
+ ### 8. Commit Changes
212
+
213
+ **Stage and commit roadmap updates:**
214
+
215
+ ```bash
216
+ # Review changes before committing
217
+ git diff .ace-taskflow/roadmap.md
218
+
219
+ # Stage roadmap file
220
+ git add .ace-taskflow/roadmap.md
221
+
222
+ # Commit with descriptive message
223
+ git commit -m "docs(roadmap): update planned releases and synchronize with current state"
224
+ ```
225
+
226
+ **Commit Message Format:**
227
+ - Use conventional commit format: `docs(roadmap): [description]`
228
+ - Be specific about changes (added/updated/removed releases)
229
+ - Examples:
230
+ - `docs(roadmap): add v.0.9.0 Mono-Repo to planned releases`
231
+ - `docs(roadmap): remove completed v.0.8.0 from planned releases`
232
+ - `docs(roadmap): synchronize release status with .ace-taskflow structure`
233
+
234
+ ## Error Handling
235
+
236
+ ### Format Validation Errors
237
+
238
+ **Symptoms:**
239
+ - Roadmap structure doesn't comply with roadmap-definition.g.md
240
+ - Missing required sections or incorrect table formats
241
+ - Invalid front matter or metadata
242
+
243
+ **Recovery Steps:**
244
+ 1. Report specific format violations with line numbers
245
+ 2. Reference roadmap-definition.g.md for correct format
246
+ 3. HALT process and require manual correction
247
+ 4. Re-run workflow after corrections
248
+
249
+ ### File System Inconsistencies
250
+
251
+ **Symptoms:**
252
+ - Release folders don't match roadmap entries
253
+ - Missing release.md files
254
+ - Inconsistent release naming
255
+
256
+ **Recovery Steps:**
257
+ 1. Report discrepancies between `.ace-taskflow/` and roadmap
258
+ 2. Determine authoritative source (usually `.ace-taskflow/` structure)
259
+ 3. Update roadmap to match actual release state
260
+ 4. Document assumptions in Update History
261
+
262
+ ### Cross-Reference Failures
263
+
264
+ **Symptoms:**
265
+ - Broken links to releases or epics
266
+ - Dependencies referencing non-existent items
267
+ - Inconsistent naming across sections
268
+
269
+ **Recovery Steps:**
270
+ 1. Identify all broken references
271
+ 2. Update references to use correct names/versions
272
+ 3. Remove references to deleted releases
273
+ 4. Validate all cross-references after fixes
274
+
275
+ ### Git Commit Failures
276
+
277
+ **Symptoms:**
278
+ - Merge conflicts with roadmap.md
279
+ - Permission issues
280
+ - Repository not in clean state
281
+
282
+ **Recovery Steps:**
283
+ 1. Preserve roadmap changes (copy to temp file)
284
+ 2. Resolve Git conflicts manually
285
+ 3. Re-apply roadmap updates
286
+ 4. Re-validate before committing
287
+
288
+ ## Integration with Other Workflows
289
+
290
+ ### Draft-Release Workflow Integration
291
+
292
+ **Trigger Point:** After step 6 (Populate Overview Document) in draft-release workflow
293
+
294
+ **Integration Steps:**
295
+ 1. Draft-release workflow creates new release folder and release.md
296
+ 2. Call update-roadmap workflow to add release to roadmap
297
+ 3. Commit roadmap changes separately from release scaffolding
298
+ 4. Proceed with draft-release workflow step 8
299
+
300
+ **Commit Message:** `docs(roadmap): add release [version] [codename] to planned releases`
301
+
302
+ ### Publish-Release Workflow Integration
303
+
304
+ **Trigger Point:** During step 15 (Update Roadmap) in publish-release workflow
305
+
306
+ **Integration Steps:**
307
+ 1. Publish-release workflow marks release as done
308
+ 2. Call update-roadmap workflow to remove release from roadmap
309
+ 3. Ensure release info captured in changelog before removal
310
+ 4. Commit roadmap cleanup before final archival
311
+
312
+ **Commit Message:** `docs(roadmap): remove completed [version] [codename] from planned releases`
313
+
314
+ ### Manual Roadmap Updates
315
+
316
+ **Use Cases:**
317
+ - Adjusting target windows or timelines
318
+ - Updating strategic objectives or themes
319
+ - Reorganizing release priorities
320
+ - Correcting roadmap inconsistencies
321
+
322
+ **Process:**
323
+ 1. Make manual edits to roadmap.md
324
+ 2. Run update-roadmap workflow for validation and sync
325
+ 3. Workflow will detect manual changes and validate format
326
+ 4. Commit changes with appropriate message
327
+
328
+ ## Success Criteria
329
+
330
+ - [ ] Roadmap format validated against roadmap-definition.g.md
331
+ - [ ] Planned Major Releases table synchronized with `.ace-taskflow/` structure
332
+ - [ ] Completed releases removed from roadmap table
333
+ - [ ] Cross-release dependencies updated and accurate
334
+ - [ ] Front matter `last_reviewed` date updated to today
335
+ - [ ] Update History entry added documenting changes
336
+ - [ ] All cross-references validated and accurate
337
+ - [ ] Changes committed with conventional commit format
338
+ - [ ] No format violations or broken references remain
339
+
340
+ ## Output / Response Template
341
+
342
+ **Roadmap Update Summary:**
343
+
344
+ ```
345
+ ✓ Roadmap Updated Successfully
346
+
347
+ Changes Made:
348
+ - [Added/Updated/Removed] release [version] [codename]
349
+ - [Updated dependencies: description]
350
+ - [Other changes]
351
+
352
+ Releases in Roadmap:
353
+ - v.X.Y.Z "[Codename]" (QX YYYY) - [Status]
354
+ - v.X.Y.Z "[Codename]" (QX YYYY) - [Status]
355
+
356
+ Validation: ✓ All checks passed
357
+ Commit: [commit hash] "docs(roadmap): [commit message]"
358
+ ```
359
+
360
+ ## Embedded Templates
361
+
362
+ <documents>
363
+ <template path="tmpl://project-docs/roadmap">
364
+ ---
365
+ title: Project Roadmap
366
+ last_reviewed: YYYY-MM-DD
367
+ status: [draft|active|archived]
368
+ ---
369
+
370
+ # Project Roadmap
371
+
372
+ ## 1. Project Vision
373
+
374
+ [Inspirational statement describing the long-term mission and value the project brings to users. Keep concise (1-3 sentences) and focused on outcomes rather than technical details.]
375
+
376
+ ## 2. Strategic Objectives
377
+
378
+ | # | Objective | Success Metric |
379
+ |---|-----------|----------------|
380
+ | 1 | [Outcome-focused objective] | [Measurable criteria] |
381
+ | 2 | [Outcome-focused objective] | [Measurable criteria] |
382
+
383
+ ## 3. Key Themes & Epics
384
+
385
+ | Theme | Description | Linked Epics |
386
+ |-------|-------------|-------------|
387
+ | [Theme Name] | [Brief description of theme purpose] | [Epic identifiers] |
388
+ | [Theme Name] | [Brief description of theme purpose] | [Epic identifiers] |
389
+
390
+ ## 4. Planned Major Releases
391
+
392
+ | Version | Codename | Target Window | Goals | Key Epics |
393
+ |---------|----------|---------------|-------|-----------|
394
+ | v.X.Y.Z | "[Name]" | QX YYYY | [Primary goals] | [Related epics] |
395
+ | v.X.Y.Z | "[Name]" | QX YYYY | [Primary goals] | [Related epics] |
396
+
397
+ ## 5. Cross-Release Dependencies
398
+
399
+ - [Dependency description linking specific epics/releases]
400
+ - [Dependency description linking specific epics/releases]
401
+
402
+ ## 6. Update History
403
+
404
+ | Date | Summary | Author |
405
+ |------|---------|--------|
406
+ | YYYY-MM-DD | [Brief change description] | [Author name] |
407
+ | YYYY-MM-DD | Initial roadmap creation | [Author name] |
408
+ </template>
409
+ </documents>
410
+
411
+ ## References
412
+
413
+ - **Roadmap Definition Guide**: `dev-handbook/guides/roadmap-definition.g.md`
414
+ - **Current Roadmap**: `.ace-taskflow/roadmap.md`
415
+ - **Draft Release Workflow**: `wfi://release/draft`
416
+ - **Publish Release Workflow**: `wfi://release/publish`
417
+ - **ace-taskflow CLI**: For release queries and task analysis
418
+
419
+ ---
420
+
421
+ **Last Updated:** 2025-10-02