Commit 59c06df
committed
feat(ums-lib)!: simplify ProcessStep structure for UMS v2.1
BREAKING CHANGE: ProcessStep interface simplified from v2.0 to v2.1
Removed fields:
- detail (replaced by notes array)
- when (use natural language in step text)
- do (use natural language in step text)
- validate (use criteria array instead)
Added fields:
- notes: optional string array for sub-bullets
Changes:
- Updated ProcessStep type to: string | { step: string; notes?: string[] }
- Implemented new renderProcessStep() function for simplified rendering
- Created UMS v2.1 spec with migration notes from v2.0
- Added ADR 0005 documenting rationale for simplification
- Updated tests to use new notes field instead of detail
Migration path:
v2.0: { step: 'X', detail: 'Y', when: 'Z', validate: {...} }
v2.1: { step: 'X when Z', notes: ['Y', 'Verify: ...'] }
Rationale:
- Reduces authoring friction and cognitive load
- Natural language is sufficient for conditionals and validation
- Clearer separation: process steps vs. validation criteria
- Aligns with machine-first architecture (ADR 0004)
See ADR 0005 for complete rationale and alternatives considered.
feat(ums-lib): simplify Constraint structure (UMS v2.1)
BREAKING CHANGE: Constraint interface simplified from 5 fields to 2 fields
Changes:
- Convert Constraint from interface to type union (string | { rule, notes })
- Remove fields: severity, when, examples, rationale
- Add field: notes (string array for elaboration)
- Use RFC 2119 keywords (MUST/SHOULD/MAY) for severity in rule text
- Update renderer to handle constraint notes with bold rule + bullets
- Add test coverage for constraints with notes
Migration:
- Use RFC 2119 keywords for severity (MUST/SHOULD/MAY)
- Move examples to notes with "Good:" and "Bad:" prefixes
- Move rationale to notes with "Rationale:" prefix
- Use template literals for multi-line content
Documentation:
- Created ADR 0006: Simplify Constraint Structure
- Created RFC proposal: docs/spec/proposals/rfc-constraint-simplification.md
- Updated UMS v2.1 spec with Constraint section and migration guide
- Documented authoring guidelines and formatting conventions
Follows the same simplification pattern as ProcessStep (ADR 0005).
See:
- docs/architecture/adr/0006-simplify-constraint-structure.md
- docs/spec/proposals/rfc-constraint-simplification.md
- docs/spec/unified_module_system_v2.1_spec.md
feat(ums-lib)!: simplify Criterion structure (ADR 0007)
Remove severity field, keep category, add notes array following the same
simplification pattern as ProcessStep and Constraint.
BREAKING CHANGE: Criterion.severity field removed - use RFC 2119 keywords
(MUST/SHOULD/MAY) in criterion text instead.
Changes:
- Remove severity field (use RFC 2119 keywords in text)
- Keep category field (now rendered as subheadings)
- Add notes array for test instructions and elaboration
- Implement category grouping in renderer
- Add comprehensive tests for category and notes rendering
Related: ADR 0005 (ProcessStep), ADR 0006 (Constraint)1 parent 183a552 commit 59c06df
10 files changed
Lines changed: 4240 additions & 71 deletions
File tree
- docs
- architecture/adr
- spec
- proposals
- packages/ums-lib/src
- core
- parsing
- rendering
- types
Lines changed: 234 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
0 commit comments