@mytechtoday/augment-extensions 1.2.2 → 1.3.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 (87) hide show
  1. package/LICENSE +22 -22
  2. package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
  3. package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
  4. package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
  5. package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
  6. package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
  7. package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
  8. package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
  9. package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
  10. package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
  11. package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
  12. package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
  13. package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
  14. package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
  15. package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
  16. package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
  17. package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
  18. package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
  19. package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
  20. package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
  21. package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
  22. package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
  23. package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
  24. package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
  25. package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
  26. package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
  27. package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
  28. package/augment-extensions/visual-design/CHANGELOG.md +132 -0
  29. package/augment-extensions/visual-design/README.md +255 -0
  30. package/augment-extensions/visual-design/__tests__/README.md +119 -0
  31. package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -0
  32. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -0
  33. package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -0
  34. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -0
  35. package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -0
  36. package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -0
  37. package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -0
  38. package/augment-extensions/visual-design/domains/other/os-application.ts +156 -0
  39. package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -0
  40. package/augment-extensions/visual-design/domains/other/web-app.ts +157 -0
  41. package/augment-extensions/visual-design/domains/other/website.ts +161 -0
  42. package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -0
  43. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -0
  44. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -0
  45. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -0
  46. package/augment-extensions/visual-design/examples/README.md +97 -0
  47. package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -0
  48. package/augment-extensions/visual-design/examples/basic-usage.md +216 -0
  49. package/augment-extensions/visual-design/examples/domain-workflows.md +257 -0
  50. package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -0
  51. package/augment-extensions/visual-design/module.json +78 -0
  52. package/augment-extensions/visual-design/style-selector.ts +177 -0
  53. package/augment-extensions/visual-design/types.ts +302 -0
  54. package/augment-extensions/visual-design/visual-design-core.ts +469 -0
  55. package/augment-extensions/workflows/adr-support/README.md +227 -0
  56. package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -0
  57. package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -0
  58. package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -0
  59. package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -0
  60. package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -0
  61. package/augment-extensions/workflows/adr-support/module.json +112 -0
  62. package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -0
  63. package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -0
  64. package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -0
  65. package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -0
  66. package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -0
  67. package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -0
  68. package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -0
  69. package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -0
  70. package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -0
  71. package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -0
  72. package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -0
  73. package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -0
  74. package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -0
  75. package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -0
  76. package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
  77. package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
  78. package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
  79. package/cli/dist/utils/auto-sync.js +19 -19
  80. package/package.json +5 -3
  81. package/augment-extensions/workflows/openspec/README.md +0 -96
  82. package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
  83. package/augment-extensions/workflows/openspec/module.json +0 -54
  84. package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
  85. package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
  86. package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
  87. package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
@@ -0,0 +1,449 @@
1
+ # Complete ADR Lifecycle Example
2
+
3
+ This example demonstrates the full lifecycle of an Architecture Decision Record (ADR) from initial draft through all status transitions to final superseded state.
4
+
5
+ ## Overview
6
+
7
+ This example tracks ADR-0042 "Migrate to Microservices Architecture" through its complete lifecycle:
8
+
9
+ ```
10
+ draft → proposed → approved → implemented → maintained → superseded
11
+ ```
12
+
13
+ ## Timeline Summary
14
+
15
+ - **2026-02-05**: Created (draft)
16
+ - **2026-02-08**: Proposed for review
17
+ - **2026-02-12**: Approved by team
18
+ - **2026-03-15**: Implemented (first services migrated)
19
+ - **2026-06-01**: Moved to maintained (initial review)
20
+ - **2027-06-01**: Superseded by ADR-0089 (return to modular monolith)
21
+
22
+ ---
23
+
24
+ ## Version 1: Draft Status
25
+
26
+ **File:** `adr/0042-migrate-to-microservices.md`
27
+
28
+ ```markdown
29
+ # ADR-0042: Migrate to Microservices Architecture
30
+
31
+ **Status:** Draft
32
+
33
+ **Date:** 2026-02-05
34
+
35
+ **Deciders:** Tech Lead, Senior Architect, Development Team
36
+
37
+ **Technical Story:** Related to OpenSpec change: scaling-architecture
38
+
39
+ ---
40
+
41
+ ## Context
42
+
43
+ Our monolithic application is experiencing scaling challenges:
44
+ - Deployment takes 45+ minutes
45
+ - Cannot scale individual components independently
46
+ - Team coordination bottlenecks with 20+ developers
47
+ - Database contention during peak loads
48
+
49
+ ### Forces
50
+
51
+ - Need to scale user service independently (10x traffic growth expected)
52
+ - Payment processing requires PCI compliance isolation
53
+ - Team wants to use different tech stacks for different services
54
+ - Operations team concerned about complexity
55
+ - Limited experience with distributed systems
56
+
57
+ ---
58
+
59
+ ## Decision
60
+
61
+ We will migrate our monolithic application to a microservices architecture, starting with user and payment services.
62
+
63
+ ### Rationale
64
+
65
+ - Independent scaling of high-traffic services
66
+ - Faster deployment cycles (target: \u003c 10 minutes)
67
+ - Team autonomy and technology flexibility
68
+ - Better fault isolation
69
+
70
+ ---
71
+
72
+ ## Consequences
73
+
74
+ ### Positive
75
+
76
+ - Independent service scaling
77
+ - Faster deployments
78
+ - Team autonomy
79
+ - Technology flexibility
80
+
81
+ ### Negative
82
+
83
+ - Increased operational complexity
84
+ - Distributed system challenges (network, consistency)
85
+ - Need for service mesh/API gateway
86
+ - Higher infrastructure costs initially
87
+
88
+ ### Neutral
89
+
90
+ - Learning curve for team
91
+ - Need to build DevOps capabilities
92
+ - Monitoring and observability requirements
93
+
94
+ ---
95
+
96
+ ## Related Decisions
97
+
98
+ - Related to: ADR-0038 (API Gateway Selection)
99
+ - Related to: ADR-0040 (Service Mesh Evaluation)
100
+
101
+ ---
102
+
103
+ ## Notes
104
+
105
+ ### References
106
+
107
+ - [Microservices Patterns](https://microservices.io/patterns/)
108
+ - [Building Microservices by Sam Newman](https://samnewman.io/books/building_microservices/)
109
+
110
+ ### Implementation Notes
111
+
112
+ **DRAFT - INCOMPLETE**
113
+ - Need to finalize service boundaries
114
+ - Need to evaluate service mesh options
115
+ - Need to plan data migration strategy
116
+ ```
117
+
118
+ **Actions Taken:**
119
+ - Initial draft created
120
+ - Context gathered from team discussions
121
+ - Basic structure in place
122
+ - Marked as DRAFT - not ready for review
123
+
124
+ ---
125
+
126
+ ## Version 2: Proposed Status
127
+
128
+ **File:** `adr/0042-migrate-to-microservices.md` (updated)
129
+
130
+ **Changes from Draft:**
131
+ - Added complete service boundary analysis
132
+ - Added detailed migration plan
133
+ - Added risk assessment
134
+ - Identified reviewers and review deadline
135
+ - Completed all required sections
136
+
137
+ **Metadata Updates:**
138
+ ```yaml
139
+ status: proposed
140
+ review_by: 2026-02-12
141
+ reviewers: ["tech-lead", "senior-architect", "ops-lead", "team"]
142
+ ```
143
+
144
+ **Actions Taken:**
145
+ - Completed all sections
146
+ - Added migration phases
147
+ - Documented risks and mitigation
148
+ - Sent to team for review
149
+ - Scheduled review meeting for 2026-02-12
150
+
151
+ ---
152
+
153
+ ## Version 3: Approved Status
154
+
155
+ **File:** `adr/0042-migrate-to-microservices.md` (updated)
156
+
157
+ **Changes from Proposed:**
158
+ - Added approval metadata
159
+ - Addressed review feedback
160
+ - Created implementation tasks
161
+ - Linked to Beads tasks
162
+
163
+ **Metadata Updates:**
164
+ ```yaml
165
+ status: approved
166
+ approved_date: 2026-02-12
167
+ approved_by: ["tech-lead", "senior-architect", "ops-lead"]
168
+ related_tasks: ["bd-ms01", "bd-ms02", "bd-ms03", "bd-ms04"]
169
+ related_specs: ["openspec/changes/microservices-migration"]
170
+ ```
171
+
172
+ **Review Feedback Addressed:**
173
+ 1. ✅ Added rollback plan
174
+ 2. ✅ Defined service SLAs
175
+ 3. ✅ Created monitoring requirements
176
+ 4. ✅ Documented data consistency strategy
177
+
178
+ **Implementation Tasks Created:**
179
+ - `bd-ms01`: Set up API gateway (Kong)
180
+ - `bd-ms02`: Migrate user service
181
+ - `bd-ms03`: Migrate payment service
182
+ - `bd-ms04`: Implement service mesh (Istio)
183
+
184
+ **Actions Taken:**
185
+ - Team approved decision
186
+ - Created implementation tasks in Beads
187
+ - Updated coordination manifest
188
+ - Began implementation planning
189
+
190
+ ---
191
+
192
+ ## Version 4: Implemented Status
193
+
194
+ **File:** `adr/0042-migrate-to-microservices.md` (updated)
195
+
196
+ **Changes from Approved:**
197
+ - Added implementation completion date
198
+ - Documented implementation notes
199
+ - Updated with actual outcomes
200
+ - Linked to deployed services
201
+
202
+ **Metadata Updates:**
203
+ ```yaml
204
+ status: implemented
205
+ approved_date: 2026-02-12
206
+ implemented_date: 2026-03-15
207
+ implementation_notes: |
208
+ Completed migration of user service and payment service.
209
+
210
+ Services deployed:
211
+ - user-service: https://api.example.com/users
212
+ - payment-service: https://api.example.com/payments
213
+
214
+ Infrastructure:
215
+ - Kong API Gateway configured
216
+ - Istio service mesh deployed
217
+ - Prometheus + Grafana monitoring
218
+
219
+ Metrics (first week):
220
+ - User service: 99.9% uptime, avg response 45ms
221
+ - Payment service: 99.95% uptime, avg response 120ms
222
+ - Deployment time reduced from 45min to 8min
223
+ ```
224
+
225
+ **Implementation Completed:**
226
+ - ✅ `bd-ms01`: API gateway deployed
227
+ - ✅ `bd-ms02`: User service migrated and deployed
228
+ - ✅ `bd-ms03`: Payment service migrated and deployed
229
+ - ✅ `bd-ms04`: Service mesh configured
230
+
231
+ **Actions Taken:**
232
+ - Marked all implementation tasks as complete
233
+ - Updated ADR with implementation notes
234
+ - Scheduled 3-month review
235
+ - Began monitoring consequences
236
+
237
+ ---
238
+
239
+ ## Version 5: Maintained Status
240
+
241
+ **File:** `adr/0042-migrate-to-microservices.md` (updated)
242
+
243
+ **Changes from Implemented:**
244
+ - Added review schedule
245
+ - Documented lessons learned
246
+ - Updated consequences with actual outcomes
247
+ - Added review notes
248
+
249
+ **Metadata Updates:**
250
+ ```yaml
251
+ status: maintained
252
+ implemented_date: 2026-03-15
253
+ last_reviewed: 2026-06-01
254
+ next_review: 2027-02-01
255
+ review_frequency: annual
256
+ review_notes: |
257
+ First review completed 3 months after implementation.
258
+
259
+ Observed Benefits (as expected):
260
+ - ✅ Deployment time: 45min → 8min (82% improvement)
261
+ - ✅ Independent scaling working well
262
+ - ✅ Team velocity increased 30%
263
+ - ✅ Zero downtime deployments achieved
264
+
265
+ Observed Benefits (unexpected):
266
+ - ✅ Improved developer satisfaction
267
+ - ✅ Better fault isolation than anticipated
268
+ - ✅ Easier to onboard new developers
269
+
270
+ Challenges (expected):
271
+ - ⚠️ Operational complexity higher than estimated
272
+ - ⚠️ Monitoring requires dedicated attention
273
+ - ⚠️ Network latency between services
274
+
275
+ Challenges (unexpected):
276
+ - ⚠️ Data consistency more complex than planned
277
+ - ⚠️ Testing distributed transactions difficult
278
+ - ⚠️ Infrastructure costs 40% higher than budgeted
279
+
280
+ Actions Taken:
281
+ - Created ADR-0095: Monitoring and Observability Strategy
282
+ - Created ADR-0096: Distributed Transaction Patterns
283
+ - Scheduled cost optimization review
284
+
285
+ Decision: Continue with microservices, address challenges
286
+ ```
287
+
288
+ **Actions Taken:**
289
+ - Conducted first review
290
+ - Documented actual vs expected outcomes
291
+ - Created follow-up ADRs for challenges
292
+ - Scheduled annual review
293
+ - Updated team on findings
294
+
295
+ ---
296
+
297
+ ## Version 6: Superseded Status
298
+
299
+ **File:** `adr/0042-migrate-to-microservices.md` (updated)
300
+
301
+ **Changes from Maintained:**
302
+ - Marked as superseded
303
+ - Linked to superseding ADR
304
+ - Documented superseding reason
305
+ - Preserved historical context
306
+
307
+ **Metadata Updates:**
308
+ ```yaml
309
+ status: superseded
310
+ implemented_date: 2026-03-15
311
+ last_reviewed: 2027-05-15
312
+ superseded_date: 2027-06-01
313
+ superseded_by: adr-0089
314
+ superseded_reason: |
315
+ After 15 months of operation, team decided to migrate back to
316
+ modular monolith architecture. See ADR-0089 for details.
317
+
318
+ Key factors in decision reversal:
319
+ - Operational costs 60% higher than monolith
320
+ - Team size (20 developers) not large enough to justify complexity
321
+ - Most services don't need independent scaling
322
+ - Distributed system complexity outweighed benefits
323
+
324
+ Lessons learned preserved in ADR-0089.
325
+ ```
326
+
327
+ **Final Status:**
328
+ - Decision reversed after 15 months
329
+ - Superseded by ADR-0089: "Migrate to Modular Monolith"
330
+ - Historical record preserved
331
+ - Lessons learned documented
332
+
333
+ **Actions Taken:**
334
+ - Created ADR-0089 with lessons learned
335
+ - Updated cross-references
336
+ - Preserved this ADR for historical context
337
+ - Shared findings with broader team
338
+
339
+ ---
340
+
341
+ ## Coordination Manifest Updates
342
+
343
+ Throughout the lifecycle, the `.augment/coordination.json` was updated to track relationships:
344
+
345
+ ### Draft → Proposed
346
+ ```json
347
+ {
348
+ "adrs": {
349
+ "adr-0042": {
350
+ "status": "proposed",
351
+ "file": "adr/0042-migrate-to-microservices.md",
352
+ "relatedSpecs": [],
353
+ "relatedTasks": []
354
+ }
355
+ }
356
+ }
357
+ ```
358
+
359
+ ### Approved → Implemented
360
+ ```json
361
+ {
362
+ "adrs": {
363
+ "adr-0042": {
364
+ "status": "implemented",
365
+ "file": "adr/0042-migrate-to-microservices.md",
366
+ "relatedSpecs": ["microservices-migration"],
367
+ "relatedTasks": ["bd-ms01", "bd-ms02", "bd-ms03", "bd-ms04"],
368
+ "affectedFiles": [
369
+ "services/user-service/**",
370
+ "services/payment-service/**",
371
+ "infrastructure/kong/**",
372
+ "infrastructure/istio/**"
373
+ ]
374
+ }
375
+ },
376
+ "specs": {
377
+ "microservices-migration": {
378
+ "relatedADRs": ["adr-0042"]
379
+ }
380
+ },
381
+ "tasks": {
382
+ "bd-ms01": { "relatedADRs": ["adr-0042"] },
383
+ "bd-ms02": { "relatedADRs": ["adr-0042"] },
384
+ "bd-ms03": { "relatedADRs": ["adr-0042"] },
385
+ "bd-ms04": { "relatedADRs": ["adr-0042"] }
386
+ }
387
+ }
388
+ ```
389
+
390
+ ### Superseded
391
+ ```json
392
+ {
393
+ "adrs": {
394
+ "adr-0042": {
395
+ "status": "superseded",
396
+ "file": "adr/0042-migrate-to-microservices.md",
397
+ "supersededBy": "adr-0089",
398
+ "relatedSpecs": ["microservices-migration"],
399
+ "relatedTasks": ["bd-ms01", "bd-ms02", "bd-ms03", "bd-ms04"]
400
+ },
401
+ "adr-0089": {
402
+ "status": "approved",
403
+ "file": "adr/0089-modular-monolith.md",
404
+ "supersedes": "adr-0042",
405
+ "relatedSpecs": ["modular-monolith-migration"]
406
+ }
407
+ }
408
+ }
409
+ ```
410
+
411
+ ---
412
+
413
+ ## Key Takeaways
414
+
415
+ ### Status Transitions
416
+
417
+ 1. **Draft → Proposed**: Complete all sections, identify reviewers
418
+ 2. **Proposed → Approved**: Address feedback, create implementation tasks
419
+ 3. **Approved → Implemented**: Complete tasks, document outcomes
420
+ 4. **Implemented → Maintained**: Review consequences, schedule ongoing reviews
421
+ 5. **Maintained → Superseded**: Create superseding ADR, document reasons
422
+
423
+ ### Best Practices Demonstrated
424
+
425
+ 1. ✅ **Incremental Updates**: Each status change adds metadata
426
+ 2. ✅ **Traceability**: Links to specs, tasks, and related ADRs
427
+ 3. ✅ **Lessons Learned**: Documented actual vs expected outcomes
428
+ 4. ✅ **Historical Context**: Preserved even after superseding
429
+ 5. ✅ **Coordination**: Manifest kept in sync throughout lifecycle
430
+
431
+ ### Common Pitfalls Avoided
432
+
433
+ 1. ❌ Skipping status transitions (e.g., draft → implemented)
434
+ 2. ❌ Not documenting actual outcomes
435
+ 3. ❌ Deleting superseded ADRs
436
+ 4. ❌ Not linking to implementation tasks
437
+ 5. ❌ Forgetting to schedule reviews
438
+
439
+ ---
440
+
441
+ ## See Also
442
+
443
+ - [Lifecycle Management Rules](../rules/lifecycle-management.md)
444
+ - [ADR Creation Guidelines](../rules/adr-creation.md)
445
+ - [Validation Rules](../rules/validation-rules.md)
446
+ - [Nygard Template](../templates/nygard.md)
447
+ - [Superseding Example](./superseding-example.md)
448
+ - [Integration Example](./integration-example.md)
449
+