archctx-contracts 0.17.1 → 0.18.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 (112) hide show
  1. package/fixtures/valid/archctx-capabilities.json +2 -2
  2. package/fixtures/valid/product-version-manifest.json +4 -10
  3. package/package.json +4 -1
  4. package/schemas/repo/refactor-decision.schema.json +307 -37
  5. package/schemas/runtime/archctx-capabilities.schema.json +144 -20
  6. package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
  7. package/schemas/runtime/architecture-debt.schema.json +42 -42
  8. package/schemas/runtime/architecture-event.schema.json +1 -1
  9. package/schemas/runtime/architecture-history.schema.json +354 -0
  10. package/schemas/runtime/capability-dependencies.schema.json +266 -59
  11. package/schemas/runtime/cli-check.schema.json +209 -0
  12. package/schemas/runtime/cli-help.schema.json +28 -0
  13. package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
  14. package/schemas/runtime/docs-anchors.schema.json +262 -67
  15. package/schemas/runtime/doctor-code-facts.schema.json +49 -0
  16. package/schemas/runtime/evidence-binding.schema.json +1 -1
  17. package/schemas/runtime/flow-selector-check.schema.json +179 -46
  18. package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
  19. package/schemas/runtime/index-seed.schema.json +56 -0
  20. package/schemas/runtime/path-context.schema.json +120 -0
  21. package/schemas/runtime/product-version-manifest.schema.json +142 -54
  22. package/schemas/runtime/projection-slice.schema.json +34 -34
  23. package/schemas/runtime/recommendation-v3.schema.json +372 -1
  24. package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
  25. package/schemas/runtime/ref-impact-batch.schema.json +83 -13
  26. package/schemas/runtime/ref-impact.schema.json +68 -61
  27. package/schemas/runtime/refactor-scan-v2.schema.json +1392 -0
  28. package/schemas/runtime/refactor-simulate.schema.json +553 -0
  29. package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
  30. package/schemas/runtime/resolve-path.schema.json +69 -0
  31. package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
  32. package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
  33. package/schemas/runtime/runtime-verify.schema.json +274 -56
  34. package/schemas/runtime/state-machine-check.schema.json +357 -89
  35. package/schemas/runtime/structural-observation-payload.schema.json +372 -1
  36. package/schemas/runtime/sync-check.schema.json +77 -0
  37. package/src/architecture-debt.ts +125 -38
  38. package/src/architecture-history.ts +168 -42
  39. package/src/architecture.ts +100 -0
  40. package/src/cli-read.ts +228 -0
  41. package/src/docs-anchors.ts +105 -50
  42. package/src/explorer-occurrence-ports.ts +175 -0
  43. package/src/explorer-query-ports.ts +270 -0
  44. package/src/failure.ts +4 -0
  45. package/src/index-seed.ts +42 -0
  46. package/src/index.ts +5 -0
  47. package/src/ledger-records.ts +262 -0
  48. package/src/ledger.ts +27 -566
  49. package/src/ownership-dependencies.ts +115 -5
  50. package/src/ports.ts +6 -541
  51. package/src/product-version.ts +74 -55
  52. package/src/projection-apply-types.ts +216 -0
  53. package/src/projection-apply-validators.ts +355 -0
  54. package/src/projection-capabilities.ts +181 -0
  55. package/src/projection-constants.ts +317 -0
  56. package/src/projection-manifest-types.ts +298 -0
  57. package/src/projection-manifest.ts +12 -299
  58. package/src/projection-recovery-validators.ts +229 -0
  59. package/src/projection-request-validators.ts +326 -0
  60. package/src/projection-types.ts +365 -0
  61. package/src/projection-validation-helpers.ts +15 -0
  62. package/src/projection.ts +7 -1689
  63. package/src/ref-impact.ts +225 -33
  64. package/src/refactor-constants.ts +213 -0
  65. package/src/refactor-decision-validators.ts +351 -0
  66. package/src/refactor-evidence-types.ts +286 -0
  67. package/src/refactor-observation-validators.ts +359 -0
  68. package/src/refactor-resolution-validators.ts +229 -0
  69. package/src/refactor-snapshot-validators.ts +368 -0
  70. package/src/refactor-types.ts +270 -0
  71. package/src/refactor-v2.ts +554 -0
  72. package/src/refactor-validation-helpers.ts +199 -0
  73. package/src/refactor.ts +7 -1849
  74. package/src/review-guards.ts +3 -23
  75. package/src/runtime-verify.ts +87 -0
  76. package/src/schema-kit.ts +187 -0
  77. package/src/schema-registry.ts +73 -0
  78. package/src/schema.ts +15 -4
  79. package/src/state-machine-schemas.ts +192 -0
  80. package/src/state-machine-types.ts +188 -0
  81. package/src/state-machine.ts +9 -189
  82. package/fixtures/boundary/agent-job-expired.json +0 -33
  83. package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
  84. package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
  85. package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
  86. package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
  87. package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
  88. package/fixtures/invalid/notification-event-code-field.json +0 -11
  89. package/fixtures/valid/adapter-fidelity.json +0 -9
  90. package/fixtures/valid/agent-job.json +0 -33
  91. package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
  92. package/fixtures/valid/architecture-candidate-delta.json +0 -188
  93. package/fixtures/valid/chatgpt-ga-tool.json +0 -9
  94. package/fixtures/valid/cloud-egress-envelope.json +0 -11
  95. package/fixtures/valid/entitlement.json +0 -12
  96. package/fixtures/valid/investigation-report.json +0 -38
  97. package/fixtures/valid/likec4-mapping.json +0 -14
  98. package/fixtures/valid/notification-event.json +0 -10
  99. package/fixtures/valid/notification-provider.json +0 -12
  100. package/fixtures/valid/structurizr-mapping.json +0 -15
  101. package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
  102. package/schemas/cloud/entitlement.schema.json +0 -24
  103. package/schemas/integrations/adapter-fidelity.schema.json +0 -21
  104. package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
  105. package/schemas/integrations/likec4-mapping.schema.json +0 -32
  106. package/schemas/integrations/structurizr-mapping.schema.json +0 -33
  107. package/schemas/runtime/agent-job.schema.json +0 -63
  108. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
  109. package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
  110. package/schemas/runtime/investigation-report.schema.json +0 -119
  111. package/schemas/runtime/notification-event.schema.json +0 -18
  112. package/schemas/runtime/notification-provider.schema.json +0 -26
@@ -3,64 +3,178 @@
3
3
  "$id": "https://archcontext.dev/schemas/runtime/state-machine-check.schema.json",
4
4
  "title": "StateMachineCheckV1",
5
5
  "description": "The data of `archctx state-machines check`: for every declared state machine, the size of its reachable global state space, the result of each declared rule, the built-in breaks and the status of each code anchor. The same model gives the same bytes.",
6
- "type": "object",
7
6
  "additionalProperties": false,
8
- "required": ["schemaVersion", "machines"],
7
+ "type": "object",
8
+ "required": [
9
+ "schemaVersion",
10
+ "machines"
11
+ ],
9
12
  "properties": {
10
- "schemaVersion": { "const": "archcontext.state-machine-check/v1" },
13
+ "schemaVersion": {
14
+ "const": "archcontext.state-machine-check/v1"
15
+ },
11
16
  "machines": {
12
17
  "description": "Sorted by machine id.",
13
18
  "type": "array",
14
19
  "items": {
15
- "type": "object",
16
20
  "additionalProperties": false,
17
- "required": ["id", "capabilityId", "reachableStates", "transitions", "rules", "breaks", "anchors"],
21
+ "type": "object",
22
+ "required": [
23
+ "id",
24
+ "capabilityId",
25
+ "reachableStates",
26
+ "transitions",
27
+ "rules",
28
+ "breaks",
29
+ "anchors"
30
+ ],
18
31
  "properties": {
19
- "id": { "type": "string", "pattern": "^state-machine\\.[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)*$" },
20
- "capabilityId": { "type": "string", "pattern": "^capability\\.[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)*$" },
21
- "reachableStates": { "type": "integer", "minimum": 1 },
22
- "transitions": { "type": "integer", "minimum": 0, "description": "Pairs of a reachable global state and an enabled step that changes it." },
32
+ "id": {
33
+ "pattern": "^state-machine\\.[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)*$",
34
+ "type": "string"
35
+ },
36
+ "capabilityId": {
37
+ "pattern": "^capability\\.[a-z][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)*$",
38
+ "type": "string"
39
+ },
40
+ "reachableStates": {
41
+ "minimum": 1,
42
+ "type": "integer"
43
+ },
44
+ "transitions": {
45
+ "minimum": 0,
46
+ "description": "Pairs of a reachable global state and an enabled step that changes it.",
47
+ "type": "integer"
48
+ },
23
49
  "rules": {
24
50
  "description": "In declaration order.",
25
51
  "type": "array",
26
52
  "items": {
27
- "type": "object",
28
53
  "additionalProperties": false,
29
- "required": ["id", "kind", "status"],
54
+ "allOf": [
55
+ {
56
+ "if": {
57
+ "properties": {
58
+ "status": {
59
+ "enum": [
60
+ "broken",
61
+ "finding-open"
62
+ ]
63
+ }
64
+ }
65
+ },
66
+ "then": {
67
+ "required": [
68
+ "state",
69
+ "path"
70
+ ],
71
+ "not": {
72
+ "required": [
73
+ "protectedBy"
74
+ ]
75
+ }
76
+ },
77
+ "else": {
78
+ "not": {
79
+ "anyOf": [
80
+ {
81
+ "required": [
82
+ "state"
83
+ ]
84
+ },
85
+ {
86
+ "required": [
87
+ "path"
88
+ ]
89
+ }
90
+ ]
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "if": {
96
+ "properties": {
97
+ "status": {
98
+ "enum": [
99
+ "finding-open",
100
+ "finding-resolved"
101
+ ]
102
+ }
103
+ }
104
+ },
105
+ "then": {
106
+ "required": [
107
+ "tracking"
108
+ ]
109
+ },
110
+ "else": {
111
+ "not": {
112
+ "required": [
113
+ "tracking"
114
+ ]
115
+ }
116
+ }
117
+ }
118
+ ],
119
+ "type": "object",
120
+ "required": [
121
+ "id",
122
+ "kind",
123
+ "status"
124
+ ],
30
125
  "properties": {
31
- "id": { "$ref": "#/$defs/localId" },
32
- "kind": { "enum": ["never", "final"] },
33
- "status": { "enum": ["holds", "broken", "finding-open", "finding-resolved"] },
34
- "tracking": { "type": "string", "pattern": "^https://[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)*(?::[0-9]{1,5})?(?:[/?#][^\\s]*)?$" },
35
- "state": { "$ref": "#/$defs/globalState" },
36
- "path": { "$ref": "#/$defs/path" },
126
+ "id": {
127
+ "$ref": "#/$defs/localId"
128
+ },
129
+ "kind": {
130
+ "enum": [
131
+ "never",
132
+ "final"
133
+ ]
134
+ },
135
+ "status": {
136
+ "enum": [
137
+ "holds",
138
+ "broken",
139
+ "finding-open",
140
+ "finding-resolved"
141
+ ]
142
+ },
143
+ "tracking": {
144
+ "pattern": "^https://[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)*(?::[0-9]{1,5})?(?:[/?#][^\\s]*)?$",
145
+ "type": "string"
146
+ },
147
+ "state": {
148
+ "$ref": "#/$defs/globalState"
149
+ },
150
+ "path": {
151
+ "$ref": "#/$defs/path"
152
+ },
37
153
  "protectedBy": {
38
154
  "description": "The guards whose removal breaks this holding rule, in declaration order of the guards.",
39
155
  "type": "array",
40
156
  "items": {
41
- "type": "object",
42
157
  "additionalProperties": false,
43
- "required": ["event", "step", "region"],
158
+ "type": "object",
159
+ "required": [
160
+ "event",
161
+ "step",
162
+ "region"
163
+ ],
44
164
  "properties": {
45
- "event": { "$ref": "#/$defs/localId" },
46
- "step": { "$ref": "#/$defs/stepIndex" },
47
- "region": { "$ref": "#/$defs/localId" }
165
+ "event": {
166
+ "$ref": "#/$defs/localId"
167
+ },
168
+ "step": {
169
+ "$ref": "#/$defs/stepIndex"
170
+ },
171
+ "region": {
172
+ "$ref": "#/$defs/localId"
173
+ }
48
174
  }
49
175
  }
50
176
  }
51
- },
52
- "allOf": [
53
- {
54
- "if": { "properties": { "status": { "enum": ["broken", "finding-open"] } } },
55
- "then": { "required": ["state", "path"], "not": { "required": ["protectedBy"] } },
56
- "else": { "not": { "anyOf": [{ "required": ["state"] }, { "required": ["path"] }] } }
57
- },
58
- {
59
- "if": { "properties": { "status": { "enum": ["finding-open", "finding-resolved"] } } },
60
- "then": { "required": ["tracking"] },
61
- "else": { "not": { "required": ["tracking"] } }
62
- }
63
- ]
177
+ }
64
178
  }
65
179
  },
66
180
  "breaks": {
@@ -69,34 +183,69 @@
69
183
  "items": {
70
184
  "oneOf": [
71
185
  {
72
- "type": "object",
73
186
  "additionalProperties": false,
74
- "required": ["kind", "region", "state"],
187
+ "type": "object",
188
+ "required": [
189
+ "kind",
190
+ "region",
191
+ "state"
192
+ ],
75
193
  "properties": {
76
- "kind": { "const": "unreachable-state" },
77
- "region": { "$ref": "#/$defs/localId" },
78
- "state": { "$ref": "#/$defs/localId" }
194
+ "kind": {
195
+ "const": "unreachable-state"
196
+ },
197
+ "region": {
198
+ "$ref": "#/$defs/localId"
199
+ },
200
+ "state": {
201
+ "$ref": "#/$defs/localId"
202
+ }
79
203
  }
80
204
  },
81
205
  {
82
- "type": "object",
83
206
  "additionalProperties": false,
84
- "required": ["kind", "event", "step"],
207
+ "type": "object",
208
+ "required": [
209
+ "kind",
210
+ "event",
211
+ "step"
212
+ ],
85
213
  "properties": {
86
- "kind": { "const": "dead-step" },
87
- "event": { "$ref": "#/$defs/localId" },
88
- "step": { "$ref": "#/$defs/stepIndex" }
214
+ "kind": {
215
+ "const": "dead-step"
216
+ },
217
+ "event": {
218
+ "$ref": "#/$defs/localId"
219
+ },
220
+ "step": {
221
+ "$ref": "#/$defs/stepIndex"
222
+ }
89
223
  }
90
224
  },
91
225
  {
92
- "type": "object",
93
226
  "additionalProperties": false,
94
- "required": ["kind", "state", "path", "count"],
227
+ "type": "object",
228
+ "required": [
229
+ "kind",
230
+ "state",
231
+ "path",
232
+ "count"
233
+ ],
95
234
  "properties": {
96
- "kind": { "const": "deadlock" },
97
- "state": { "$ref": "#/$defs/globalState" },
98
- "path": { "$ref": "#/$defs/path" },
99
- "count": { "type": "integer", "minimum": 1, "description": "The number of deadlocked reachable global states." }
235
+ "kind": {
236
+ "const": "deadlock"
237
+ },
238
+ "state": {
239
+ "$ref": "#/$defs/globalState"
240
+ },
241
+ "path": {
242
+ "$ref": "#/$defs/path"
243
+ },
244
+ "count": {
245
+ "minimum": 1,
246
+ "description": "The number of deadlocked reachable global states.",
247
+ "type": "integer"
248
+ }
100
249
  }
101
250
  }
102
251
  ]
@@ -106,48 +255,149 @@
106
255
  "description": "Every code source of a region or an event, regions first, then events, each in declaration order, with its status against the current file.",
107
256
  "type": "array",
108
257
  "items": {
109
- "type": "object",
110
258
  "additionalProperties": false,
111
- "required": ["owner", "ownerId", "path", "status"],
259
+ "allOf": [
260
+ {
261
+ "if": {
262
+ "required": [
263
+ "symbol",
264
+ "digest"
265
+ ]
266
+ },
267
+ "then": {
268
+ "required": [
269
+ "callees"
270
+ ]
271
+ },
272
+ "else": {
273
+ "not": {
274
+ "required": [
275
+ "callees"
276
+ ]
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "if": {
282
+ "properties": {
283
+ "status": {
284
+ "enum": [
285
+ "anchor-unconfirmed",
286
+ "anchor-changed",
287
+ "confirmed"
288
+ ]
289
+ }
290
+ }
291
+ },
292
+ "then": {
293
+ "required": [
294
+ "digest"
295
+ ]
296
+ },
297
+ "else": {
298
+ "not": {
299
+ "required": [
300
+ "digest"
301
+ ]
302
+ }
303
+ }
304
+ },
305
+ {
306
+ "if": {
307
+ "properties": {
308
+ "status": {
309
+ "const": "unchecked"
310
+ }
311
+ }
312
+ },
313
+ "then": {
314
+ "required": [
315
+ "reason",
316
+ "symbol"
317
+ ]
318
+ },
319
+ "else": {
320
+ "not": {
321
+ "required": [
322
+ "reason"
323
+ ]
324
+ }
325
+ }
326
+ }
327
+ ],
328
+ "type": "object",
329
+ "required": [
330
+ "owner",
331
+ "ownerId",
332
+ "path",
333
+ "status"
334
+ ],
112
335
  "properties": {
113
- "owner": { "enum": ["region", "event"] },
114
- "ownerId": { "$ref": "#/$defs/localId" },
115
- "path": { "type": "string", "minLength": 1 },
116
- "symbol": { "type": "string", "minLength": 1 },
117
- "status": { "enum": ["anchor-missing-path", "anchor-language-unsupported", "anchor-missing-symbol", "anchor-ambiguous-symbol", "unchecked", "anchor-unconfirmed", "anchor-changed", "confirmed"] },
118
- "digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "description": "The file content, or a JSON array of the lines of the one matching declaration and of each direct callee, with CRLF read as LF." },
336
+ "owner": {
337
+ "enum": [
338
+ "region",
339
+ "event"
340
+ ]
341
+ },
342
+ "ownerId": {
343
+ "$ref": "#/$defs/localId"
344
+ },
345
+ "path": {
346
+ "minLength": 1,
347
+ "type": "string"
348
+ },
349
+ "symbol": {
350
+ "minLength": 1,
351
+ "type": "string"
352
+ },
353
+ "status": {
354
+ "enum": [
355
+ "anchor-missing-path",
356
+ "anchor-language-unsupported",
357
+ "anchor-missing-symbol",
358
+ "anchor-ambiguous-symbol",
359
+ "unchecked",
360
+ "anchor-unconfirmed",
361
+ "anchor-changed",
362
+ "confirmed"
363
+ ]
364
+ },
365
+ "digest": {
366
+ "pattern": "^sha256:[0-9a-f]{64}$",
367
+ "description": "The file content, or a JSON array of the lines of the one matching declaration and of each direct callee, with CRLF read as LF.",
368
+ "type": "string"
369
+ },
119
370
  "callees": {
120
371
  "description": "The direct callees that the digest of a symbol anchor covers, in digest order.",
121
372
  "type": "array",
122
373
  "items": {
123
- "type": "object",
124
374
  "additionalProperties": false,
125
- "required": ["path", "qualifiedName"],
375
+ "type": "object",
376
+ "required": [
377
+ "path",
378
+ "qualifiedName"
379
+ ],
126
380
  "properties": {
127
- "path": { "type": "string", "minLength": 1 },
128
- "qualifiedName": { "type": "string", "minLength": 1 }
381
+ "path": {
382
+ "minLength": 1,
383
+ "type": "string"
384
+ },
385
+ "qualifiedName": {
386
+ "minLength": 1,
387
+ "type": "string"
388
+ }
129
389
  }
130
390
  }
131
391
  },
132
- "reason": { "enum": ["index-missing", "index-open-failed", "index-stale"], "description": "Why the symbol reader is unavailable, or that the index does not hold the current content of the anchor's file or of a callee's file." }
133
- },
134
- "allOf": [
135
- {
136
- "if": { "required": ["symbol", "digest"] },
137
- "then": { "required": ["callees"] },
138
- "else": { "not": { "required": ["callees"] } }
139
- },
140
- {
141
- "if": { "properties": { "status": { "enum": ["anchor-unconfirmed", "anchor-changed", "confirmed"] } } },
142
- "then": { "required": ["digest"] },
143
- "else": { "not": { "required": ["digest"] } }
144
- },
145
- {
146
- "if": { "properties": { "status": { "const": "unchecked" } } },
147
- "then": { "required": ["reason", "symbol"] },
148
- "else": { "not": { "required": ["reason"] } }
392
+ "reason": {
393
+ "description": "Why the symbol reader is unavailable, or that the index does not hold the current content of the anchor's file or of a callee's file.",
394
+ "enum": [
395
+ "index-missing",
396
+ "index-open-failed",
397
+ "index-stale"
398
+ ]
149
399
  }
150
- ]
400
+ }
151
401
  }
152
402
  }
153
403
  }
@@ -155,25 +405,43 @@
155
405
  }
156
406
  },
157
407
  "$defs": {
158
- "localId": { "type": "string", "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$" },
159
- "stepIndex": { "type": "integer", "minimum": 1, "description": "The 1-based index of the step in its event." },
408
+ "localId": {
409
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
410
+ "type": "string"
411
+ },
412
+ "stepIndex": {
413
+ "minimum": 1,
414
+ "description": "The 1-based index of the step in its event.",
415
+ "type": "integer"
416
+ },
160
417
  "globalState": {
161
418
  "description": "One state per region, keyed by region id in declaration order.",
162
419
  "type": "object",
163
420
  "minProperties": 1,
164
- "propertyNames": { "$ref": "#/$defs/localId" },
165
- "additionalProperties": { "$ref": "#/$defs/localId" }
421
+ "propertyNames": {
422
+ "$ref": "#/$defs/localId"
423
+ },
424
+ "additionalProperties": {
425
+ "$ref": "#/$defs/localId"
426
+ }
166
427
  },
167
428
  "path": {
168
429
  "description": "The shortest sequence of fired steps from the initial global state.",
169
430
  "type": "array",
170
431
  "items": {
171
- "type": "object",
172
432
  "additionalProperties": false,
173
- "required": ["event", "step"],
433
+ "type": "object",
434
+ "required": [
435
+ "event",
436
+ "step"
437
+ ],
174
438
  "properties": {
175
- "event": { "$ref": "#/$defs/localId" },
176
- "step": { "$ref": "#/$defs/stepIndex" }
439
+ "event": {
440
+ "$ref": "#/$defs/localId"
441
+ },
442
+ "step": {
443
+ "$ref": "#/$defs/stepIndex"
444
+ }
177
445
  }
178
446
  }
179
447
  }