Commit 141dcb6
Instance DSL parties — multiplicity, validation, and enforcement
Adds `parties do` DSL to the Instance Extension, allowing resources to
declare which party roles they accept, with optional min/max multiplicity
constraints. Runtime enforcement is applied in `build_before` via
`Party.validate_parties/1`, checking roles against declarations and
rejecting builds that violate constraints.
Renames Party Extension DSL sections from singular (`instance`/`party`)
to plural (`instances`/`parties`) for consistency. Replaces `.license`
sidecar files with `REUSE.toml`. Fixes ExDoc sidebar by removing a
duplicate `docs:` key in mix.exs that shadowed the DSL extras config.
Adds `Assignment.compare/2` so `Enum.sort/2` works in the Assigner.
Updates all three livebooks to use the local path dep and cleans up
stale commented-out version pins.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5197a37 commit 141dcb6
96 files changed
Lines changed: 1283 additions & 1321 deletions
File tree
- documentation
- dsls
- how_to
- lib/diffo
- changes
- helpers
- provider
- assigner
- components
- calculations
- instance
- extension
- party
- extension
- type
- outstanding
- unwrap
- validations
- logos
- test
- instance_extension
- provider
- support
- resource
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
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 | + | |
120 | 151 | | |
121 | 152 | | |
122 | 153 | | |
| |||
173 | 204 | | |
174 | 205 | | |
175 | 206 | | |
176 | | - | |
| 207 | + | |
177 | 208 | | |
178 | 209 | | |
179 | 210 | | |
180 | 211 | | |
181 | 212 | | |
182 | | - | |
| 213 | + | |
183 | 214 | | |
184 | 215 | | |
185 | 216 | | |
| |||
197 | 228 | | |
198 | 229 | | |
199 | 230 | | |
200 | | - | |
| 231 | + | |
201 | 232 | | |
202 | 233 | | |
203 | 234 | | |
| |||
230 | 261 | | |
231 | 262 | | |
232 | 263 | | |
233 | | - | |
| 264 | + | |
234 | 265 | | |
235 | 266 | | |
236 | 267 | | |
| |||
240 | 271 | | |
241 | 272 | | |
242 | 273 | | |
243 | | - | |
| 274 | + | |
244 | 275 | | |
245 | 276 | | |
246 | 277 | | |
| |||
305 | 336 | | |
306 | 337 | | |
307 | 338 | | |
308 | | - | |
| 339 | + | |
309 | 340 | | |
310 | | - | |
| 341 | + | |
311 | 342 | | |
312 | | - | |
| 343 | + | |
313 | 344 | | |
314 | | - | |
| 345 | + | |
315 | 346 | | |
316 | 347 | | |
317 | 348 | | |
| |||
331 | 362 | | |
332 | 363 | | |
333 | 364 | | |
334 | | - | |
| 365 | + | |
335 | 366 | | |
336 | 367 | | |
337 | 368 | | |
| |||
358 | 389 | | |
359 | 390 | | |
360 | 391 | | |
| 392 | + | |
361 | 393 | | |
362 | 394 | | |
363 | 395 | | |
| |||
450 | 482 | | |
451 | 483 | | |
452 | 484 | | |
| 485 | + | |
| 486 | + | |
453 | 487 | | |
Lines changed: 52 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
128 | 130 | | |
129 | | - | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
| |||
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
| 189 | + | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
224 | 263 | | |
225 | 264 | | |
226 | 265 | | |
| |||
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 19 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | | - | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | | - | |
44 | | - | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | | - | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | | - | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | | - | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
92 | | - | |
93 | | - | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
Lines changed: 0 additions & 3 deletions
This file was deleted.
0 commit comments