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.
- package/fixtures/valid/archctx-capabilities.json +2 -2
- package/fixtures/valid/product-version-manifest.json +4 -10
- package/package.json +4 -1
- package/schemas/repo/refactor-decision.schema.json +307 -37
- package/schemas/runtime/archctx-capabilities.schema.json +144 -20
- package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
- package/schemas/runtime/architecture-debt.schema.json +42 -42
- package/schemas/runtime/architecture-event.schema.json +1 -1
- package/schemas/runtime/architecture-history.schema.json +354 -0
- package/schemas/runtime/capability-dependencies.schema.json +266 -59
- package/schemas/runtime/cli-check.schema.json +209 -0
- package/schemas/runtime/cli-help.schema.json +28 -0
- package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
- package/schemas/runtime/docs-anchors.schema.json +262 -67
- package/schemas/runtime/doctor-code-facts.schema.json +49 -0
- package/schemas/runtime/evidence-binding.schema.json +1 -1
- package/schemas/runtime/flow-selector-check.schema.json +179 -46
- package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
- package/schemas/runtime/index-seed.schema.json +56 -0
- package/schemas/runtime/path-context.schema.json +120 -0
- package/schemas/runtime/product-version-manifest.schema.json +142 -54
- package/schemas/runtime/projection-slice.schema.json +34 -34
- package/schemas/runtime/recommendation-v3.schema.json +372 -1
- package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
- package/schemas/runtime/ref-impact-batch.schema.json +83 -13
- package/schemas/runtime/ref-impact.schema.json +68 -61
- package/schemas/runtime/refactor-scan-v2.schema.json +1392 -0
- package/schemas/runtime/refactor-simulate.schema.json +553 -0
- package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
- package/schemas/runtime/resolve-path.schema.json +69 -0
- package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
- package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
- package/schemas/runtime/runtime-verify.schema.json +274 -56
- package/schemas/runtime/state-machine-check.schema.json +357 -89
- package/schemas/runtime/structural-observation-payload.schema.json +372 -1
- package/schemas/runtime/sync-check.schema.json +77 -0
- package/src/architecture-debt.ts +125 -38
- package/src/architecture-history.ts +168 -42
- package/src/architecture.ts +100 -0
- package/src/cli-read.ts +228 -0
- package/src/docs-anchors.ts +105 -50
- package/src/explorer-occurrence-ports.ts +175 -0
- package/src/explorer-query-ports.ts +270 -0
- package/src/failure.ts +4 -0
- package/src/index-seed.ts +42 -0
- package/src/index.ts +5 -0
- package/src/ledger-records.ts +262 -0
- package/src/ledger.ts +27 -566
- package/src/ownership-dependencies.ts +115 -5
- package/src/ports.ts +6 -541
- package/src/product-version.ts +74 -55
- package/src/projection-apply-types.ts +216 -0
- package/src/projection-apply-validators.ts +355 -0
- package/src/projection-capabilities.ts +181 -0
- package/src/projection-constants.ts +317 -0
- package/src/projection-manifest-types.ts +298 -0
- package/src/projection-manifest.ts +12 -299
- package/src/projection-recovery-validators.ts +229 -0
- package/src/projection-request-validators.ts +326 -0
- package/src/projection-types.ts +365 -0
- package/src/projection-validation-helpers.ts +15 -0
- package/src/projection.ts +7 -1689
- package/src/ref-impact.ts +225 -33
- package/src/refactor-constants.ts +213 -0
- package/src/refactor-decision-validators.ts +351 -0
- package/src/refactor-evidence-types.ts +286 -0
- package/src/refactor-observation-validators.ts +359 -0
- package/src/refactor-resolution-validators.ts +229 -0
- package/src/refactor-snapshot-validators.ts +368 -0
- package/src/refactor-types.ts +270 -0
- package/src/refactor-v2.ts +554 -0
- package/src/refactor-validation-helpers.ts +199 -0
- package/src/refactor.ts +7 -1849
- package/src/review-guards.ts +3 -23
- package/src/runtime-verify.ts +87 -0
- package/src/schema-kit.ts +187 -0
- package/src/schema-registry.ts +73 -0
- package/src/schema.ts +15 -4
- package/src/state-machine-schemas.ts +192 -0
- package/src/state-machine-types.ts +188 -0
- package/src/state-machine.ts +9 -189
- package/fixtures/boundary/agent-job-expired.json +0 -33
- package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
- package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
- package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
- package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
- package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
- package/fixtures/invalid/notification-event-code-field.json +0 -11
- package/fixtures/valid/adapter-fidelity.json +0 -9
- package/fixtures/valid/agent-job.json +0 -33
- package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
- package/fixtures/valid/architecture-candidate-delta.json +0 -188
- package/fixtures/valid/chatgpt-ga-tool.json +0 -9
- package/fixtures/valid/cloud-egress-envelope.json +0 -11
- package/fixtures/valid/entitlement.json +0 -12
- package/fixtures/valid/investigation-report.json +0 -38
- package/fixtures/valid/likec4-mapping.json +0 -14
- package/fixtures/valid/notification-event.json +0 -10
- package/fixtures/valid/notification-provider.json +0 -12
- package/fixtures/valid/structurizr-mapping.json +0 -15
- package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
- package/schemas/cloud/entitlement.schema.json +0 -24
- package/schemas/integrations/adapter-fidelity.schema.json +0 -21
- package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
- package/schemas/integrations/likec4-mapping.schema.json +0 -32
- package/schemas/integrations/structurizr-mapping.schema.json +0 -33
- package/schemas/runtime/agent-job.schema.json +0 -63
- package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
- package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
- package/schemas/runtime/investigation-report.schema.json +0 -119
- package/schemas/runtime/notification-event.schema.json +0 -18
- 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
|
-
"
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"machines"
|
|
11
|
+
],
|
|
9
12
|
"properties": {
|
|
10
|
-
"schemaVersion": {
|
|
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
|
-
"
|
|
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": {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
"
|
|
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": {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
"
|
|
158
|
+
"type": "object",
|
|
159
|
+
"required": [
|
|
160
|
+
"event",
|
|
161
|
+
"step",
|
|
162
|
+
"region"
|
|
163
|
+
],
|
|
44
164
|
"properties": {
|
|
45
|
-
"event": {
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
"
|
|
187
|
+
"type": "object",
|
|
188
|
+
"required": [
|
|
189
|
+
"kind",
|
|
190
|
+
"region",
|
|
191
|
+
"state"
|
|
192
|
+
],
|
|
75
193
|
"properties": {
|
|
76
|
-
"kind": {
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
"
|
|
207
|
+
"type": "object",
|
|
208
|
+
"required": [
|
|
209
|
+
"kind",
|
|
210
|
+
"event",
|
|
211
|
+
"step"
|
|
212
|
+
],
|
|
85
213
|
"properties": {
|
|
86
|
-
"kind": {
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
"
|
|
227
|
+
"type": "object",
|
|
228
|
+
"required": [
|
|
229
|
+
"kind",
|
|
230
|
+
"state",
|
|
231
|
+
"path",
|
|
232
|
+
"count"
|
|
233
|
+
],
|
|
95
234
|
"properties": {
|
|
96
|
-
"kind": {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
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
|
-
"
|
|
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": {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
"
|
|
375
|
+
"type": "object",
|
|
376
|
+
"required": [
|
|
377
|
+
"path",
|
|
378
|
+
"qualifiedName"
|
|
379
|
+
],
|
|
126
380
|
"properties": {
|
|
127
|
-
"path": {
|
|
128
|
-
|
|
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": {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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": {
|
|
159
|
-
|
|
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": {
|
|
165
|
-
|
|
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
|
-
"
|
|
433
|
+
"type": "object",
|
|
434
|
+
"required": [
|
|
435
|
+
"event",
|
|
436
|
+
"step"
|
|
437
|
+
],
|
|
174
438
|
"properties": {
|
|
175
|
-
"event": {
|
|
176
|
-
|
|
439
|
+
"event": {
|
|
440
|
+
"$ref": "#/$defs/localId"
|
|
441
|
+
},
|
|
442
|
+
"step": {
|
|
443
|
+
"$ref": "#/$defs/stepIndex"
|
|
444
|
+
}
|
|
177
445
|
}
|
|
178
446
|
}
|
|
179
447
|
}
|