convoke-agents 2.3.1 → 3.0.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 (89) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/INSTALLATION.md +109 -86
  3. package/README.md +236 -104
  4. package/UPDATE-GUIDE.md +63 -23
  5. package/_bmad/bme/_enhance/config.yaml +8 -0
  6. package/_bmad/bme/_enhance/extensions/bmm-pm.yaml +9 -0
  7. package/_bmad/bme/_enhance/guides/.gitkeep +0 -0
  8. package/_bmad/bme/_enhance/guides/ENHANCE-GUIDE.md +252 -0
  9. package/_bmad/bme/_enhance/workflows/initiatives-backlog/SKILL.md +6 -0
  10. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-c/.gitkeep +0 -0
  11. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-c/step-c-01-init.md +106 -0
  12. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-c/step-c-02-gather.md +136 -0
  13. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-c/step-c-03-score.md +146 -0
  14. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-c/step-c-04-prioritize.md +181 -0
  15. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-r/.gitkeep +0 -0
  16. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-r/step-r-01-load.md +120 -0
  17. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-r/step-r-02-rescore.md +141 -0
  18. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-r/step-r-03-update.md +154 -0
  19. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-t/.gitkeep +0 -0
  20. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-t/step-t-01-ingest.md +86 -0
  21. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-t/step-t-02-extract.md +169 -0
  22. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-t/step-t-03-score.md +147 -0
  23. package/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-t/step-t-04-update.md +155 -0
  24. package/_bmad/bme/_enhance/workflows/initiatives-backlog/templates/backlog-format-spec.md +219 -0
  25. package/_bmad/bme/_enhance/workflows/initiatives-backlog/templates/rice-scoring-guide.md +154 -0
  26. package/_bmad/bme/_enhance/workflows/initiatives-backlog/workflow.md +88 -0
  27. package/_bmad/bme/_gyre/README.md +100 -0
  28. package/_bmad/bme/_gyre/agents/.gitkeep +0 -0
  29. package/_bmad/bme/_gyre/agents/model-curator.md +128 -0
  30. package/_bmad/bme/_gyre/agents/readiness-analyst.md +127 -0
  31. package/_bmad/bme/_gyre/agents/review-coach.md +130 -0
  32. package/_bmad/bme/_gyre/agents/stack-detective.md +125 -0
  33. package/_bmad/bme/_gyre/compass-routing-reference.md +168 -0
  34. package/_bmad/bme/_gyre/config.yaml +22 -0
  35. package/_bmad/bme/_gyre/contracts/.gitkeep +0 -0
  36. package/_bmad/bme/_gyre/contracts/gc1-stack-profile.md +152 -0
  37. package/_bmad/bme/_gyre/contracts/gc2-capabilities-manifest.md +189 -0
  38. package/_bmad/bme/_gyre/contracts/gc3-findings-report.md +197 -0
  39. package/_bmad/bme/_gyre/contracts/gc4-feedback-loop.md +209 -0
  40. package/_bmad/bme/_gyre/guides/ATLAS-USER-GUIDE.md +177 -0
  41. package/_bmad/bme/_gyre/guides/COACH-USER-GUIDE.md +172 -0
  42. package/_bmad/bme/_gyre/guides/LENS-USER-GUIDE.md +181 -0
  43. package/_bmad/bme/_gyre/guides/SCOUT-USER-GUIDE.md +158 -0
  44. package/_bmad/bme/_gyre/workflows/.gitkeep +0 -0
  45. package/_bmad/bme/_gyre/workflows/accuracy-validation/steps/step-01-select-repos.md +55 -0
  46. package/_bmad/bme/_gyre/workflows/accuracy-validation/steps/step-02-run-validation.md +78 -0
  47. package/_bmad/bme/_gyre/workflows/accuracy-validation/steps/step-03-score-results.md +143 -0
  48. package/_bmad/bme/_gyre/workflows/accuracy-validation/workflow.md +41 -0
  49. package/_bmad/bme/_gyre/workflows/delta-report/steps/step-01-load-history.md +63 -0
  50. package/_bmad/bme/_gyre/workflows/delta-report/steps/step-02-compute-delta.md +72 -0
  51. package/_bmad/bme/_gyre/workflows/delta-report/steps/step-03-present-delta.md +143 -0
  52. package/_bmad/bme/_gyre/workflows/delta-report/workflow.md +34 -0
  53. package/_bmad/bme/_gyre/workflows/full-analysis/steps/step-01-initialize.md +68 -0
  54. package/_bmad/bme/_gyre/workflows/full-analysis/steps/step-02-detect-stack.md +49 -0
  55. package/_bmad/bme/_gyre/workflows/full-analysis/steps/step-03-generate-model.md +52 -0
  56. package/_bmad/bme/_gyre/workflows/full-analysis/steps/step-04-analyze-gaps.md +42 -0
  57. package/_bmad/bme/_gyre/workflows/full-analysis/steps/step-05-review-findings.md +128 -0
  58. package/_bmad/bme/_gyre/workflows/full-analysis/workflow.md +39 -0
  59. package/_bmad/bme/_gyre/workflows/gap-analysis/steps/step-01-load-manifest.md +70 -0
  60. package/_bmad/bme/_gyre/workflows/gap-analysis/steps/step-02-observability-analysis.md +110 -0
  61. package/_bmad/bme/_gyre/workflows/gap-analysis/steps/step-03-deployment-analysis.md +87 -0
  62. package/_bmad/bme/_gyre/workflows/gap-analysis/steps/step-04-cross-domain-correlation.md +105 -0
  63. package/_bmad/bme/_gyre/workflows/gap-analysis/steps/step-05-present-findings.md +172 -0
  64. package/_bmad/bme/_gyre/workflows/gap-analysis/workflow.md +38 -0
  65. package/_bmad/bme/_gyre/workflows/model-generation/steps/step-01-load-profile.md +74 -0
  66. package/_bmad/bme/_gyre/workflows/model-generation/steps/step-02-generate-capabilities.md +116 -0
  67. package/_bmad/bme/_gyre/workflows/model-generation/steps/step-03-web-enrichment.md +89 -0
  68. package/_bmad/bme/_gyre/workflows/model-generation/steps/step-04-write-manifest.md +122 -0
  69. package/_bmad/bme/_gyre/workflows/model-generation/workflow.md +40 -0
  70. package/_bmad/bme/_gyre/workflows/model-review/steps/step-01-load-context.md +86 -0
  71. package/_bmad/bme/_gyre/workflows/model-review/steps/step-02-walkthrough.md +116 -0
  72. package/_bmad/bme/_gyre/workflows/model-review/steps/step-03-apply-amendments.md +92 -0
  73. package/_bmad/bme/_gyre/workflows/model-review/steps/step-04-capture-feedback.md +107 -0
  74. package/_bmad/bme/_gyre/workflows/model-review/steps/step-05-summary.md +60 -0
  75. package/_bmad/bme/_gyre/workflows/model-review/workflow.md +41 -0
  76. package/_bmad/bme/_gyre/workflows/stack-detection/steps/step-01-scan-filesystem.md +176 -0
  77. package/_bmad/bme/_gyre/workflows/stack-detection/steps/step-02-classify-stack.md +111 -0
  78. package/_bmad/bme/_gyre/workflows/stack-detection/steps/step-03-guard-questions.md +117 -0
  79. package/_bmad/bme/_gyre/workflows/stack-detection/workflow.md +42 -0
  80. package/_bmad/bme/_vortex/config.yaml +1 -1
  81. package/package.json +7 -2
  82. package/scripts/archive.js +304 -0
  83. package/scripts/convoke-doctor.js +146 -132
  84. package/scripts/docs-audit.js +21 -5
  85. package/scripts/install-gyre-agents.js +140 -0
  86. package/scripts/install-vortex-agents.js +0 -0
  87. package/scripts/update/lib/agent-registry.js +70 -0
  88. package/scripts/update/lib/refresh-installation.js +290 -29
  89. package/scripts/update/lib/validator.js +281 -1
@@ -0,0 +1,219 @@
1
+ # Backlog Format Specification
2
+
3
+ Reference document for consistent backlog file formatting across all initiatives backlog operations. Loaded by the workflow during file write operations to ensure output matches the canonical format.
4
+
5
+ All output must be standard markdown — no proprietary extensions, HTML embeds, or tool-specific syntax (NFR6).
6
+
7
+ ---
8
+
9
+ ## Metadata Header
10
+
11
+ Every backlog file begins with:
12
+
13
+ ```markdown
14
+ # Convoke Initiatives Backlog
15
+
16
+ **Created:** YYYY-MM-DD
17
+ **Method:** RICE (Reach, Impact, Confidence, Effort)
18
+ **Last Updated:** YYYY-MM-DD
19
+ ```
20
+
21
+ The `Last Updated` date is refreshed on every write operation.
22
+
23
+ ---
24
+
25
+ ## Section Hierarchy
26
+
27
+ The backlog file uses this exact heading structure. Sections must appear in this order.
28
+
29
+ ```
30
+ # Convoke Initiatives Backlog (H1 — title)
31
+
32
+ ## RICE Scoring Guide (H2 — inline scoring reference)
33
+
34
+ ## Backlog (H2 — active items container)
35
+ ### [Category Name] (H3 — one per category, repeating)
36
+
37
+ ## Exploration Candidates (H2 — unscored items needing discovery)
38
+
39
+ ## Epic Groupings (H2 — bundled delivery suggestions)
40
+ ### Epic: "[Name]" ([item IDs]) (H3 — one per grouping)
41
+
42
+ ## Prioritized View (by RICE Score) (H2 — auto-generated ranked table)
43
+
44
+ ## Completed (H2 — finished items, grouped by date)
45
+ ### YYYY-MM-DD (H3 — date grouping for milestones)
46
+
47
+ ## Change Log (H2 — operational history)
48
+ ```
49
+
50
+ ### Category Names
51
+
52
+ Categories are user-defined H3 headings under `## Backlog`. The existing backlog uses:
53
+
54
+ - Documentation & Onboarding
55
+ - Update & Migration System
56
+ - Testing & CI
57
+ - Infrastructure
58
+ - Agent Quality & Consistency
59
+ - Platform & Product Vision
60
+
61
+ New categories may be added. Category names must be unique within the backlog.
62
+
63
+ ---
64
+
65
+ ## Table Formats
66
+
67
+ ### Category Table (under each H3 category)
68
+
69
+ ```markdown
70
+ | # | Initiative | Source | R | I | C | E | Score | Track | Status |
71
+ |---|-----------|--------|---|---|---|---|-------|-------|--------|
72
+ ```
73
+
74
+ **Column rules:**
75
+ - `#`: Short alphanumeric ID (e.g., D2, P4, T3). Unique within the backlog.
76
+ - `Initiative`: `**[Bold title]** — [description]`. May include markdown links.
77
+ - `Source`: Origin of the initiative (e.g., "Vortex review (Liam, Wade)", "Product owner")
78
+ - `R`: Reach score (integer 1-10)
79
+ - `I`: Impact score (0.25, 0.5, 1, 2, or 3)
80
+ - `C`: Confidence as percentage (e.g., 70%, 90%)
81
+ - `E`: Effort score (integer 1-10)
82
+ - `Score`: Composite RICE score, one decimal place (e.g., 2.8)
83
+ - `Track`: "Keep the lights on" or "Move the needle"
84
+ - `Status`: One of: Backlog, In Planning, In Progress, Done, Blocked
85
+
86
+ ### Prioritized View Table (under `## Prioritized View`)
87
+
88
+ ```markdown
89
+ | Rank | # | Initiative | Score | Track | Category |
90
+ |------|---|-----------|-------|-------|----------|
91
+ ```
92
+
93
+ **Rules:**
94
+ - Sorted by composite RICE score, descending
95
+ - Tiebreak: Confidence (higher first), then insertion order (newer first)
96
+ - Only includes active items (not Done or in Completed section)
97
+ - Regenerated from scratch on every write operation — not manually maintained
98
+ - Rank is a sequential integer starting at 1
99
+
100
+ ### Exploration Candidates Table (under `## Exploration Candidates`)
101
+
102
+ ```markdown
103
+ | # | Initiative | Source | Next Step |
104
+ |---|-----------|--------|-----------|
105
+ ```
106
+
107
+ These items are unscored and not included in the prioritized view.
108
+
109
+ ### Completed Section Tables (under `## Completed`)
110
+
111
+ Grouped by date using H3 headers:
112
+
113
+ ```markdown
114
+ ### YYYY-MM-DD
115
+
116
+ | # | Initiative | Score | Category |
117
+ |---|-----------|-------|----------|
118
+ ```
119
+
120
+ **Note:** Legacy completed entries (pre-backlog era) may use non-standard table formats (e.g., `| Item | Fix Applied |`). These should be preserved as-is during write operations — do not attempt to reformat them.
121
+
122
+ ---
123
+
124
+ ## Change Log Format
125
+
126
+ The Change Log section uses a table:
127
+
128
+ ```markdown
129
+ ## Change Log
130
+
131
+ | Date | Change |
132
+ |------|--------|
133
+ | YYYY-MM-DD | [Description of what changed] |
134
+ ```
135
+
136
+ Entries are prepended (newest first). Each workflow session adds one entry summarizing items added, removed, rescored, or moved.
137
+
138
+ ---
139
+
140
+ ## RICE Composite Formula
141
+
142
+ **Formula:** Score = (Reach x Impact x Confidence) / Effort
143
+
144
+ Where Confidence is expressed as a decimal (e.g., 70% = 0.7).
145
+
146
+ **Example:** R:8, I:3, C:70%, E:6 = (8 x 3 x 0.7) / 6 = 2.8
147
+
148
+ **Sort order:** Descending by composite score. Ties broken by:
149
+ 1. Confidence — higher first
150
+ 2. Insertion order — newer first
151
+
152
+ ---
153
+
154
+ ## Insertion Rules
155
+
156
+ ### Adding New Items (Triage mode, Create mode)
157
+
158
+ 1. Identify the target category H3 section under `## Backlog`
159
+ 2. Append the new row to the end of that category's table
160
+ 3. If the category doesn't exist, create a new H3 heading at the end of the `## Backlog` section (before `## Exploration Candidates`)
161
+ 4. Regenerate the `## Prioritized View` table with all active items sorted by composite score
162
+ 5. Add a Change Log entry
163
+
164
+ ### Moving Items to Completed
165
+
166
+ 1. Remove the item row from its category table
167
+ 2. Add it to the appropriate `### YYYY-MM-DD` group under `## Completed`
168
+ 3. If no group exists for today's date, create one
169
+ 4. Regenerate the `## Prioritized View` table
170
+ 5. Add a Change Log entry
171
+
172
+ ---
173
+
174
+ ## Provenance Tags
175
+
176
+ Provenance is recorded in the Initiative cell description or as a separate annotation.
177
+
178
+ ### Triage Mode — New Items
179
+
180
+ Format: `"Added from [source], [date]"`
181
+
182
+ Example: `Added from party-mode review transcript, 2026-03-15`
183
+
184
+ The score recorded is the **final** score after any Gate 2 user adjustments. The agent's initial proposal is not recorded separately. Triage Gate 2 adjustments are NOT rescores — they are the initial score. No rescore provenance is generated.
185
+
186
+ ### Review Mode — Rescored Items
187
+
188
+ Format: `"Rescored [old]->[new], Review, [date]"`
189
+
190
+ Example: `Rescored 1.8->2.4, Review, 2026-03-15`
191
+
192
+ Only recorded when the composite score actually changes. Confirming an existing score or skipping an item generates no provenance entry.
193
+
194
+ ### Create Mode — New Items
195
+
196
+ Format: `"Added from Create mode, [date]"`
197
+
198
+ ---
199
+
200
+ ## Pre-Write Validation
201
+
202
+ Before writing to the backlog file, the workflow must validate:
203
+
204
+ 1. **Section heading anchors** — All required H2 sections exist in the correct order
205
+ 2. **Prioritized view table column count** — Table has exactly 6 columns
206
+ 3. **Category table column count** — Each category table has exactly 10 columns
207
+ 4. **Change Log section existence** — The Change Log H2 section exists
208
+ 5. **No data loss** — Existing category section content is preserved (no deletions, overwrites, or reordering of existing rows). The Prioritized View is excluded from this check since it is regenerated.
209
+
210
+ If validation detects a structural mismatch, the user can proceed or abort.
211
+
212
+ ---
213
+
214
+ ## Format Consistency
215
+
216
+ The backlog output must match the exact current format of `initiatives-backlog.md`. When in doubt, load the existing file and match its patterns precisely. This ensures:
217
+ - Round-trip parseability (the workflow can reload its own output)
218
+ - Manual editability (users can edit the file in any text editor between sessions)
219
+ - `git diff` readability (consistent formatting minimizes noise)
@@ -0,0 +1,154 @@
1
+ # RICE Scoring Guide
2
+
3
+ Reference document for consistent RICE scoring across all initiatives backlog operations. Loaded by the workflow during Triage (Gate 2 scoring), Review (rescoring), and Create (initial scoring) modes.
4
+
5
+ ---
6
+
7
+ ## RICE Factor Definitions
8
+
9
+ | Factor | Scale | Description |
10
+ |--------|-------|-------------|
11
+ | **Reach** | 1-10 | How many users/quarter will this affect? (10 = all users, 1 = edge case) |
12
+ | **Impact** | 0.25 - 3 | Per-user impact (3 = massive, 2 = high, 1 = medium, 0.5 = low, 0.25 = minimal) |
13
+ | **Confidence** | 20-100% | How sure are we about reach and impact estimates? |
14
+ | **Effort** | 1-10 | Relative effort in story points (1 = trivial, 10 = multi-epic) |
15
+ | **Score** | calculated | (Reach x Impact x Confidence) / Effort |
16
+
17
+ ---
18
+
19
+ ## Guided Scoring Questions
20
+
21
+ Use these questions to guide scoring for each factor. The goal is genuine strategic reflection, not mechanical calculation.
22
+
23
+ ### Reach (1-10)
24
+
25
+ "How many users per quarter will this affect?"
26
+
27
+ | Score | Meaning |
28
+ |-------|---------|
29
+ | 10 | All users — every project that installs Convoke encounters this |
30
+ | 7-9 | Most users — affects a common workflow or visible surface |
31
+ | 4-6 | Some users — affects a specific use case or user segment |
32
+ | 2-3 | Few users — niche scenario or advanced feature |
33
+ | 1 | Edge case — rare configuration or exceptional circumstance |
34
+
35
+ ### Impact (0.25-3)
36
+
37
+ "What's the per-user impact when they encounter this?"
38
+
39
+ | Score | Meaning | Signal |
40
+ |-------|---------|--------|
41
+ | 3 | Massive | Unblocks a capability that didn't exist before; users would pay for this |
42
+ | 2 | High | Significant improvement to an existing workflow; saves meaningful time |
43
+ | 1 | Medium | Noticeable improvement; users appreciate it but can work around it |
44
+ | 0.5 | Low | Minor quality-of-life improvement; polish |
45
+ | 0.25 | Minimal | Cosmetic or hygienic; almost invisible to users |
46
+
47
+ ### Confidence (20-100%)
48
+
49
+ "How confident are we in the Reach and Impact estimates?"
50
+
51
+ | Score | Meaning | Basis |
52
+ |-------|---------|-------|
53
+ | 100% | Measured data | Direct observation, usage metrics, user reports |
54
+ | 80% | Strong evidence | Multiple corroborating signals, team consensus |
55
+ | 60% | Reasonable estimate | Single data point or strong analogy to similar work |
56
+ | 50% | Educated guess | Logical reasoning without direct evidence |
57
+ | 40% | Informed speculation | Based on domain knowledge, no project-specific data |
58
+ | 20% | Pure speculation | Gut feeling, novel territory, no precedent |
59
+
60
+ ### Effort (1-10)
61
+
62
+ "Relative effort in story points?"
63
+
64
+ | Score | Meaning |
65
+ |-------|---------|
66
+ | 1 | Trivial — single file change, under 30 minutes |
67
+ | 2-3 | Small — a few files, a focused session |
68
+ | 4-5 | Medium — multi-file, requires design thought, 1-2 stories |
69
+ | 6-7 | Large — multi-story, cross-cutting concerns |
70
+ | 8-9 | Very large — full epic, significant architecture work |
71
+ | 10 | Multi-epic — major initiative spanning multiple sprints |
72
+
73
+ ---
74
+
75
+ ## Composite Formula & Sort Order
76
+
77
+ **Formula:** Score = (Reach x Impact x Confidence) / Effort
78
+
79
+ **Sort order:** Descending by composite score.
80
+
81
+ **Tiebreak rules:**
82
+ 1. Higher Confidence first (more certain items surface above speculative ones)
83
+ 2. Newer insertion order first (recently added items break remaining ties)
84
+
85
+ ---
86
+
87
+ ## Calibration Examples
88
+
89
+ These examples are drawn from the existing Convoke backlog to anchor scoring consistency. Study the reasoning, not just the numbers — the goal is to understand *why* items scored as they did.
90
+
91
+ ### Low Tier (~0.2-0.5)
92
+
93
+ **A4: "Fix temp dir prefix inconsistency"** — R:1 I:0.25 C:100% E:1 = **0.3**
94
+ - Reach 1: Only affects internal tooling, no user visibility
95
+ - Impact 0.25: Cosmetic inconsistency with zero functional effect
96
+ - Confidence 100%: Known, observable, deterministic
97
+ - Effort 1: Single string change
98
+ - *Lesson: High confidence and low effort don't rescue low reach and minimal impact*
99
+
100
+ **A2: "Create .agent.yaml source files"** — R:2 I:0.5 C:60% E:4 = **0.2**
101
+ - Reach 2: Only affects module authors using the BMAD authoring pipeline
102
+ - Impact 0.5: Enables standard tooling but workarounds exist
103
+ - Confidence 60%: Unclear how many authors will use the pipeline
104
+ - Effort 4: Multiple files across multiple agents
105
+ - *Lesson: Moderate effort with uncertain reach pushes score very low*
106
+
107
+ ### Medium Tier (~1.0-2.0)
108
+
109
+ **U4: "Test upgrade-path step file cleanup"** — R:3 I:1 C:90% E:2 = **1.4**
110
+ - Reach 3: Only users upgrading from specific older versions
111
+ - Impact 1: Prevents a confusing stale-file scenario
112
+ - Confidence 90%: Known issue from observed upgrade path
113
+ - Effort 2: Focused integration test
114
+ - *Lesson: High confidence on a real (but narrow) problem scores solidly mid-range*
115
+
116
+ **I1: "NPM_TOKEN secret for CI publish"** — R:8 I:2 C:90% E:8 = **1.8**
117
+ - Reach 8: Every release depends on this automation
118
+ - Impact 2: Eliminates manual publish step, significant time savings
119
+ - Confidence 90%: Well-understood CI pattern
120
+ - Effort 8: Full CI pipeline setup, secrets management, testing
121
+ - *Lesson: High reach and impact can be offset by high effort — the formula balances ambition against cost*
122
+
123
+ ### High Tier (~2.5+)
124
+
125
+ **P4: "Enhance module"** — R:8 I:3 C:70% E:6 = **2.8**
126
+ - Reach 8: New capability for every BMAD user with Convoke
127
+ - Impact 3: Creates an entirely new value layer (multiplicative, not additive)
128
+ - Confidence 70%: Architecture validated but user adoption uncertain
129
+ - Effort 6: Multi-epic initiative with installer integration
130
+ - *Lesson: Massive impact with broad reach justifies investment even at moderate confidence*
131
+
132
+ **S4: "Skills migration & module compliance"** — R:10 I:2 C:90% E:5 = **3.6**
133
+ - Reach 10: Affects every user — skills activation was broken
134
+ - Impact 2: Restores core functionality and modernizes format
135
+ - Confidence 90%: Known breakage with clear fix path
136
+ - Effort 5: Multi-file migration with schema changes
137
+ - *Lesson: Universal reach with a clear fix and high confidence produces the highest scores*
138
+
139
+ ---
140
+
141
+ ## Score Distribution Health Check
142
+
143
+ A healthy backlog has differentiated scores. If more than 3 items share the same composite score in the top 10 of the prioritized view, refine the distinguishing RICE components — typically Confidence or Impact have the most room for differentiation.
144
+
145
+ This is a quality signal, not a hard rule. Identical scores indicate either genuine parity (acceptable if rare) or insufficient scoring granularity (fix by re-examining the items with fresh eyes).
146
+
147
+ ---
148
+
149
+ ## Scoring Consistency Notes
150
+
151
+ - Scores in this backlog range from approximately 0.2 to 10.0. New scores should land within this range.
152
+ - Composite scores are rounded to one decimal place for display (e.g., 1.35 rounds to 1.4). This matches existing backlog convention and keeps the prioritized view scannable.
153
+ - When scoring a new item, mentally compare it to 2-3 existing items at similar scale. If your proposed score would rank it significantly above or below where it "feels" relative to those items, revisit the component scores.
154
+ - The Confidence factor is the most commonly under-scrutinized. Default to 50% (educated guess) when no direct evidence exists, not 80%.
@@ -0,0 +1,88 @@
1
+ ---
2
+ workflow: initiatives-backlog
3
+ type: step-file
4
+ description: Tri-modal RICE initiatives backlog management — Triage review findings, Review existing items, or Create a new backlog from scratch
5
+ author: John PM (pm.md)
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Initiatives Backlog Workflow
10
+
11
+ Manage a RICE-scored initiatives backlog through three complementary modes. This workflow transforms unstructured review findings, audit outputs, and team discussions into prioritized, scored backlog items — and keeps them calibrated over time.
12
+
13
+ ## Workflow Structure
14
+
15
+ **Step-file architecture:**
16
+ - Just-in-time loading (each step loads only when needed)
17
+ - Sequential enforcement within each mode
18
+ - State tracking in frontmatter (progress preserved across sessions)
19
+ - Two-gate validation in Triage mode (extraction review, then scoring review)
20
+
21
+ ## Modes Overview
22
+
23
+ ### [T] Triage — Ingest Review Findings
24
+ Accepts text input (review transcripts, meeting notes, audit outputs), extracts actionable findings, proposes RICE scores with two-gate validation, and appends scored items to the existing backlog.
25
+ - **Steps:** Ingest > Extract & Gate 1 > Score & Gate 2 > Update backlog
26
+ - **When to use:** After a party-mode review, code review, retrospective, or any session that produces findings
27
+
28
+ ### [R] Review — Rescore Existing Items
29
+ Loads the current backlog and walks through items for rescoring. Prevents score drift by prompting reassessment of Reach, Impact, Confidence, and Effort as project context evolves.
30
+ - **Steps:** Load backlog > Walkthrough & rescore > Update backlog
31
+ - **When to use:** Periodically (monthly or after major project milestones) to keep priorities calibrated
32
+
33
+ ### [C] Create — Build New Backlog
34
+ Bootstraps a new RICE-scored backlog from scratch through guided interactive gathering and scoring.
35
+ - **Steps:** Initialize > Gather initiatives > Score > Generate prioritized view
36
+ - **When to use:** Starting a new project or creating a fresh backlog for a new domain
37
+
38
+ ## Output
39
+
40
+ **Artifact:** `{planning_artifacts}/initiatives-backlog.md`
41
+ **Templates:** `templates/rice-scoring-guide.md`, `templates/backlog-format-spec.md`
42
+
43
+ ---
44
+
45
+ ## INITIALIZATION
46
+
47
+ Load config from `{project-root}/_bmad/bme/_enhance/config.yaml`
48
+
49
+ ## MODE SELECTION
50
+
51
+ Display the following menu to the user:
52
+
53
+ ---
54
+
55
+ **Initiatives Backlog — Select a Mode:**
56
+
57
+ - **[T] Triage** — Ingest review findings into scored backlog items
58
+ - **[R] Review** — Rescore existing backlog items to keep priorities calibrated
59
+ - **[C] Create** — Bootstrap a new RICE-scored backlog from scratch
60
+ - **[X] Exit** — Return to John PM agent menu
61
+
62
+ ---
63
+
64
+ **ALWAYS halt and wait for user input after presenting the menu.**
65
+
66
+ ### Menu Handling Logic:
67
+
68
+ - **IF T:** Load, read the entire file, and execute `{project-root}/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-t/step-t-01-ingest.md`
69
+ - **IF R:** Load, read the entire file, and execute `{project-root}/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-r/step-r-01-load.md`
70
+ - **IF C:** Load, read the entire file, and execute `{project-root}/_bmad/bme/_enhance/workflows/initiatives-backlog/steps-c/step-c-01-init.md`
71
+ - **IF X:** Display "Exiting Initiatives Backlog workflow." and end the workflow — return control to the John PM agent menu
72
+ - **IF any other input:** Display "Unknown option. Please select **T**, **R**, **C**, or **X**." then redisplay the Mode Selection menu above
73
+
74
+ ### EXECUTION RULES:
75
+
76
+ - ALWAYS halt and wait for user input after presenting the menu
77
+ - Do NOT auto-select a mode — the user must explicitly choose (ADR-3)
78
+ - Modes run independently — do NOT switch modes mid-execution (ADR-4)
79
+ - After X, end the workflow completely
80
+
81
+ ---
82
+
83
+ <!-- RETURN-TO-MENU CONVENTION (for step file authors):
84
+ When the final step of any mode completes (e.g., step-t-04-update.md for Triage),
85
+ it must instruct the LLM to re-load this entire workflow file:
86
+ {project-root}/_bmad/bme/_enhance/workflows/initiatives-backlog/workflow.md
87
+ This re-presents the INITIALIZATION section and Mode Selection menu,
88
+ allowing the user to run another mode or exit (FR28). -->
@@ -0,0 +1,100 @@
1
+ # Gyre Pattern Module
2
+
3
+ Technical inventory for the `_bmad/bme/_gyre` module — production readiness discovery through stack analysis, contextual model generation, and absence detection. Gyre analyzes your codebase to find what's missing before you ship.
4
+
5
+ ## Agents (4)
6
+
7
+ | # | Agent | ID | Icon | Role | File |
8
+ |---|-------|----|------|------|------|
9
+ | 1 | Scout | `stack-detective` | 🔎 | Stack Detection | `agents/stack-detective.md` |
10
+ | 2 | Atlas | `model-curator` | 📐 | Model Generation | `agents/model-curator.md` |
11
+ | 3 | Lens | `readiness-analyst` | 🔬 | Readiness Analysis | `agents/readiness-analyst.md` |
12
+ | 4 | Coach | `review-coach` | 🏋️ | Review & Feedback | `agents/review-coach.md` |
13
+
14
+ **Registry:** `scripts/update/lib/agent-registry.js` (single source of truth)
15
+
16
+ ## Workflows (7)
17
+
18
+ ### Scout — Stack Detection (1 workflow)
19
+ | Workflow | Directory |
20
+ |----------|-----------|
21
+ | `stack-detection` | `workflows/stack-detection/` |
22
+
23
+ ### Atlas — Model Generation (1 workflow)
24
+ | Workflow | Directory |
25
+ |----------|-----------|
26
+ | `model-generation` | `workflows/model-generation/` |
27
+
28
+ ### Lens — Readiness Analysis (2 workflows)
29
+ | Workflow | Directory |
30
+ |----------|-----------|
31
+ | `gap-analysis` | `workflows/gap-analysis/` |
32
+ | `delta-report` | `workflows/delta-report/` |
33
+
34
+ ### Coach — Review (1 workflow)
35
+ | Workflow | Directory |
36
+ |----------|-----------|
37
+ | `model-review` | `workflows/model-review/` |
38
+
39
+ ### Orchestration (1 workflow)
40
+ | Workflow | Directory |
41
+ |----------|-----------|
42
+ | `full-analysis` | `workflows/full-analysis/` |
43
+
44
+ ### Validation (1 workflow)
45
+ | Workflow | Directory |
46
+ |----------|-----------|
47
+ | `accuracy-validation` | `workflows/accuracy-validation/` |
48
+
49
+ ## Handoff Contracts (4)
50
+
51
+ ### Artifact Contracts (GC1-GC3) — schema files in `contracts/`
52
+ | Contract | Flow | Schema |
53
+ |----------|------|--------|
54
+ | GC1 | Scout → Atlas, Lens | `contracts/gc1-stack-profile.md` |
55
+ | GC2 | Atlas → Lens, Coach | `contracts/gc2-capabilities-manifest.md` |
56
+ | GC3 | Lens → Coach | `contracts/gc3-findings-report.md` |
57
+
58
+ ### Feedback Contract (GC4) — amendment loop
59
+ | Contract | Flow | Schema |
60
+ |----------|------|--------|
61
+ | GC4 | Coach → Atlas | `contracts/gc4-feedback-loop.md` |
62
+
63
+ ## File Structure
64
+
65
+ ```
66
+ _bmad/bme/_gyre/
67
+ ├── README.md # This file
68
+ ├── config.yaml # Module configuration
69
+ ├── compass-routing-reference.md # Complete routing tables
70
+ ├── agents/
71
+ │ ├── stack-detective.md # Scout 🔎
72
+ │ ├── model-curator.md # Atlas 📐
73
+ │ ├── readiness-analyst.md # Lens 🔬
74
+ │ └── review-coach.md # Coach 🏋️
75
+ ├── contracts/
76
+ │ ├── gc1-stack-profile.md # Stack Profile artifact schema
77
+ │ ├── gc2-capabilities-manifest.md # Capabilities Manifest schema
78
+ │ ├── gc3-findings-report.md # Findings Report schema
79
+ │ └── gc4-feedback-loop.md # Feedback Loop schema
80
+ └── workflows/
81
+ ├── full-analysis/ # Orchestrator (all agents)
82
+ ├── stack-detection/ # Scout
83
+ ├── model-generation/ # Atlas
84
+ ├── model-review/ # Coach
85
+ ├── gap-analysis/ # Lens
86
+ ├── delta-report/ # Lens
87
+ └── accuracy-validation/ # Atlas (spike/validation)
88
+ ```
89
+
90
+ ## Output Artifacts
91
+
92
+ Gyre writes its artifacts to `_bmad-output/gyre-artifacts/`:
93
+
94
+ | Artifact | Format | Producer |
95
+ |----------|--------|----------|
96
+ | Stack Profile | `.gyre/stack-profile.yaml` | Scout (GC1) |
97
+ | Capabilities Manifest | `.gyre/capabilities.yaml` | Atlas (GC2) |
98
+ | Findings Report | `.gyre/findings.yaml` | Lens (GC3) |
99
+ | Feedback Log | `.gyre/feedback.yaml` | Coach (GC4) |
100
+ | Delta Report | `.gyre/delta-report.yaml` | Lens |
File without changes