archctx-contracts 0.17.0 → 0.18.0
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/invalid/projection-result-applied-incomplete-coverage.json +3 -3
- package/fixtures/valid/archctx-capabilities.json +2 -2
- package/fixtures/valid/flow-selector-check.json +1 -1
- package/fixtures/valid/product-version-manifest.json +5 -11
- package/fixtures/valid/projection-manifest.json +1 -1
- package/fixtures/valid/projection-result.json +3 -3
- package/package.json +4 -1
- package/schemas/repo/refactor-decision.schema.json +283 -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 +197 -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 +250 -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 +108 -0
- package/schemas/runtime/product-version-manifest.schema.json +142 -54
- package/schemas/runtime/projection-apply-readback.schema.json +2 -2
- package/schemas/runtime/projection-apply-recovery.schema.json +1 -1
- package/schemas/runtime/projection-result.schema.json +1 -1
- 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 +434 -0
- package/schemas/runtime/refactor-simulate.schema.json +505 -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 +65 -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 +3 -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 +12 -543
- package/src/product-version.ts +75 -56
- 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 +350 -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 +389 -0
- package/src/refactor-validation-helpers.ts +195 -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 +183 -0
- package/src/schema-registry.ts +73 -0
- package/src/schema.ts +0 -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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archctx.repoharness.com/schemas/runtime/ref-impact.schema.json",
|
|
4
4
|
"title": "RefImpactV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
6
|
+
"type": "object",
|
|
7
7
|
"required": [
|
|
8
8
|
"schemaVersion",
|
|
9
9
|
"base",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
{
|
|
32
32
|
"oneOf": [
|
|
33
33
|
{
|
|
34
|
-
"type": "object",
|
|
35
34
|
"additionalProperties": false,
|
|
35
|
+
"type": "object",
|
|
36
36
|
"required": [
|
|
37
37
|
"source",
|
|
38
38
|
"commitSha",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"const": "ref"
|
|
45
45
|
},
|
|
46
46
|
"commitSha": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
48
|
+
"type": "string"
|
|
49
49
|
},
|
|
50
50
|
"treeOid": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
52
|
+
"type": "string"
|
|
53
53
|
},
|
|
54
54
|
"validation": {
|
|
55
55
|
"const": "immutable-tree"
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
"type": "object",
|
|
61
60
|
"additionalProperties": false,
|
|
61
|
+
"type": "object",
|
|
62
62
|
"required": [
|
|
63
63
|
"source",
|
|
64
64
|
"headSha",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"const": "worktree"
|
|
71
71
|
},
|
|
72
72
|
"headSha": {
|
|
73
|
-
"
|
|
74
|
-
"
|
|
73
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
74
|
+
"type": "string"
|
|
75
75
|
},
|
|
76
76
|
"headTreeOid": {
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
78
|
+
"type": "string"
|
|
79
79
|
},
|
|
80
80
|
"validation": {
|
|
81
81
|
"const": "stable-read"
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"head": {
|
|
90
90
|
"oneOf": [
|
|
91
91
|
{
|
|
92
|
-
"type": "object",
|
|
93
92
|
"additionalProperties": false,
|
|
93
|
+
"type": "object",
|
|
94
94
|
"required": [
|
|
95
95
|
"source",
|
|
96
96
|
"commitSha",
|
|
@@ -102,12 +102,12 @@
|
|
|
102
102
|
"const": "ref"
|
|
103
103
|
},
|
|
104
104
|
"commitSha": {
|
|
105
|
-
"
|
|
106
|
-
"
|
|
105
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
106
|
+
"type": "string"
|
|
107
107
|
},
|
|
108
108
|
"treeOid": {
|
|
109
|
-
"
|
|
110
|
-
"
|
|
109
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
110
|
+
"type": "string"
|
|
111
111
|
},
|
|
112
112
|
"validation": {
|
|
113
113
|
"const": "immutable-tree"
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
"type": "object",
|
|
119
118
|
"additionalProperties": false,
|
|
119
|
+
"type": "object",
|
|
120
120
|
"required": [
|
|
121
121
|
"source",
|
|
122
122
|
"headSha",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"const": "worktree"
|
|
129
129
|
},
|
|
130
130
|
"headSha": {
|
|
131
|
-
"
|
|
132
|
-
"
|
|
131
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
132
|
+
"type": "string"
|
|
133
133
|
},
|
|
134
134
|
"headTreeOid": {
|
|
135
|
-
"
|
|
136
|
-
"
|
|
135
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
136
|
+
"type": "string"
|
|
137
137
|
},
|
|
138
138
|
"validation": {
|
|
139
139
|
"const": "stable-read"
|
|
@@ -143,15 +143,16 @@
|
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
145
|
"depth": {
|
|
146
|
-
"type": "integer",
|
|
147
146
|
"minimum": 0,
|
|
148
|
-
"maximum": 10
|
|
147
|
+
"maximum": 10,
|
|
148
|
+
"type": "integer"
|
|
149
149
|
},
|
|
150
150
|
"changedPaths": {
|
|
151
|
+
"maxItems": 1000,
|
|
151
152
|
"type": "array",
|
|
152
153
|
"items": {
|
|
153
|
-
"type": "object",
|
|
154
154
|
"additionalProperties": false,
|
|
155
|
+
"type": "object",
|
|
155
156
|
"required": [
|
|
156
157
|
"path",
|
|
157
158
|
"added",
|
|
@@ -166,18 +167,18 @@
|
|
|
166
167
|
"type": "string"
|
|
167
168
|
},
|
|
168
169
|
"added": {
|
|
170
|
+
"minimum": 0,
|
|
169
171
|
"type": [
|
|
170
172
|
"integer",
|
|
171
173
|
"null"
|
|
172
|
-
]
|
|
173
|
-
"minimum": 0
|
|
174
|
+
]
|
|
174
175
|
},
|
|
175
176
|
"deleted": {
|
|
177
|
+
"minimum": 0,
|
|
176
178
|
"type": [
|
|
177
179
|
"integer",
|
|
178
180
|
"null"
|
|
179
|
-
]
|
|
180
|
-
"minimum": 0
|
|
181
|
+
]
|
|
181
182
|
},
|
|
182
183
|
"baseOwners": {
|
|
183
184
|
"type": "array",
|
|
@@ -204,8 +205,7 @@
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
|
-
}
|
|
208
|
-
"maxItems": 1000
|
|
208
|
+
}
|
|
209
209
|
},
|
|
210
210
|
"unownedPaths": {
|
|
211
211
|
"type": "array",
|
|
@@ -214,10 +214,11 @@
|
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
"touchedNodes": {
|
|
217
|
+
"maxItems": 1000,
|
|
217
218
|
"type": "array",
|
|
218
219
|
"items": {
|
|
219
|
-
"type": "object",
|
|
220
220
|
"additionalProperties": false,
|
|
221
|
+
"type": "object",
|
|
221
222
|
"required": [
|
|
222
223
|
"nodeId",
|
|
223
224
|
"pathCount"
|
|
@@ -227,18 +228,17 @@
|
|
|
227
228
|
"type": "string"
|
|
228
229
|
},
|
|
229
230
|
"pathCount": {
|
|
230
|
-
"
|
|
231
|
-
"
|
|
231
|
+
"minimum": 0,
|
|
232
|
+
"type": "integer"
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
|
-
}
|
|
235
|
-
"maxItems": 1000
|
|
235
|
+
}
|
|
236
236
|
},
|
|
237
237
|
"touchedFlowSteps": {
|
|
238
238
|
"oneOf": [
|
|
239
239
|
{
|
|
240
|
-
"type": "object",
|
|
241
240
|
"additionalProperties": false,
|
|
241
|
+
"type": "object",
|
|
242
242
|
"required": [
|
|
243
243
|
"status",
|
|
244
244
|
"reasonCodes",
|
|
@@ -249,14 +249,18 @@
|
|
|
249
249
|
"const": "known"
|
|
250
250
|
},
|
|
251
251
|
"reasonCodes": {
|
|
252
|
+
"maxItems": 0,
|
|
252
253
|
"type": "array",
|
|
253
|
-
"
|
|
254
|
+
"items": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
}
|
|
254
257
|
},
|
|
255
258
|
"items": {
|
|
259
|
+
"maxItems": 2000,
|
|
256
260
|
"type": "array",
|
|
257
261
|
"items": {
|
|
258
|
-
"type": "object",
|
|
259
262
|
"additionalProperties": false,
|
|
263
|
+
"type": "object",
|
|
260
264
|
"required": [
|
|
261
265
|
"flowId",
|
|
262
266
|
"stepId",
|
|
@@ -283,14 +287,13 @@
|
|
|
283
287
|
}
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
|
-
}
|
|
287
|
-
"maxItems": 2000
|
|
290
|
+
}
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
293
|
},
|
|
291
294
|
{
|
|
292
|
-
"type": "object",
|
|
293
295
|
"additionalProperties": false,
|
|
296
|
+
"type": "object",
|
|
294
297
|
"required": [
|
|
295
298
|
"status",
|
|
296
299
|
"reasonCodes",
|
|
@@ -301,8 +304,8 @@
|
|
|
301
304
|
"const": "unknown"
|
|
302
305
|
},
|
|
303
306
|
"reasonCodes": {
|
|
304
|
-
"type": "array",
|
|
305
307
|
"minItems": 1,
|
|
308
|
+
"type": "array",
|
|
306
309
|
"items": {
|
|
307
310
|
"type": "string"
|
|
308
311
|
}
|
|
@@ -313,10 +316,11 @@
|
|
|
313
316
|
"type": "null"
|
|
314
317
|
},
|
|
315
318
|
{
|
|
319
|
+
"maxItems": 2000,
|
|
316
320
|
"type": "array",
|
|
317
321
|
"items": {
|
|
318
|
-
"type": "object",
|
|
319
322
|
"additionalProperties": false,
|
|
323
|
+
"type": "object",
|
|
320
324
|
"required": [
|
|
321
325
|
"flowId",
|
|
322
326
|
"stepId",
|
|
@@ -343,8 +347,7 @@
|
|
|
343
347
|
}
|
|
344
348
|
}
|
|
345
349
|
}
|
|
346
|
-
}
|
|
347
|
-
"maxItems": 2000
|
|
350
|
+
}
|
|
348
351
|
}
|
|
349
352
|
]
|
|
350
353
|
}
|
|
@@ -353,10 +356,11 @@
|
|
|
353
356
|
]
|
|
354
357
|
},
|
|
355
358
|
"dependents": {
|
|
359
|
+
"maxItems": 5000,
|
|
356
360
|
"type": "array",
|
|
357
361
|
"items": {
|
|
358
|
-
"type": "object",
|
|
359
362
|
"additionalProperties": false,
|
|
363
|
+
"type": "object",
|
|
360
364
|
"required": [
|
|
361
365
|
"nodeId",
|
|
362
366
|
"touchedNodeId",
|
|
@@ -376,12 +380,11 @@
|
|
|
376
380
|
}
|
|
377
381
|
}
|
|
378
382
|
}
|
|
379
|
-
}
|
|
380
|
-
"maxItems": 5000
|
|
383
|
+
}
|
|
381
384
|
},
|
|
382
385
|
"dependencyCoverage": {
|
|
383
|
-
"type": "object",
|
|
384
386
|
"additionalProperties": false,
|
|
387
|
+
"type": "object",
|
|
385
388
|
"required": [
|
|
386
389
|
"status",
|
|
387
390
|
"graph",
|
|
@@ -405,8 +408,8 @@
|
|
|
405
408
|
"modelDelta": {
|
|
406
409
|
"oneOf": [
|
|
407
410
|
{
|
|
408
|
-
"type": "object",
|
|
409
411
|
"additionalProperties": false,
|
|
412
|
+
"type": "object",
|
|
410
413
|
"required": [
|
|
411
414
|
"status",
|
|
412
415
|
"changes",
|
|
@@ -417,10 +420,11 @@
|
|
|
417
420
|
"const": "known"
|
|
418
421
|
},
|
|
419
422
|
"changes": {
|
|
423
|
+
"maxItems": 5000,
|
|
420
424
|
"type": "array",
|
|
421
425
|
"items": {
|
|
422
|
-
"type": "object",
|
|
423
426
|
"additionalProperties": false,
|
|
427
|
+
"type": "object",
|
|
424
428
|
"required": [
|
|
425
429
|
"kind",
|
|
426
430
|
"id",
|
|
@@ -452,8 +456,7 @@
|
|
|
452
456
|
}
|
|
453
457
|
}
|
|
454
458
|
}
|
|
455
|
-
}
|
|
456
|
-
"maxItems": 5000
|
|
459
|
+
}
|
|
457
460
|
},
|
|
458
461
|
"truncated": {
|
|
459
462
|
"type": "boolean"
|
|
@@ -461,8 +464,8 @@
|
|
|
461
464
|
}
|
|
462
465
|
},
|
|
463
466
|
{
|
|
464
|
-
"type": "object",
|
|
465
467
|
"additionalProperties": false,
|
|
468
|
+
"type": "object",
|
|
466
469
|
"required": [
|
|
467
470
|
"status",
|
|
468
471
|
"reasonCode",
|
|
@@ -487,9 +490,11 @@
|
|
|
487
490
|
]
|
|
488
491
|
},
|
|
489
492
|
"limits": {
|
|
490
|
-
"type": "object",
|
|
491
493
|
"additionalProperties": false,
|
|
494
|
+
"type": "object",
|
|
492
495
|
"required": [
|
|
496
|
+
"codeFactFiles",
|
|
497
|
+
"codeFactBytes",
|
|
493
498
|
"changedPaths",
|
|
494
499
|
"nodes",
|
|
495
500
|
"relations",
|
|
@@ -500,13 +505,15 @@
|
|
|
500
505
|
"diffBytes",
|
|
501
506
|
"responseBytes",
|
|
502
507
|
"diffLines",
|
|
503
|
-
"diffWork"
|
|
504
|
-
"codeFactFiles",
|
|
505
|
-
"codeFactBytes"
|
|
508
|
+
"diffWork"
|
|
506
509
|
],
|
|
507
510
|
"properties": {
|
|
508
|
-
"codeFactFiles": {
|
|
509
|
-
|
|
511
|
+
"codeFactFiles": {
|
|
512
|
+
"const": 10000
|
|
513
|
+
},
|
|
514
|
+
"codeFactBytes": {
|
|
515
|
+
"const": 8388608
|
|
516
|
+
},
|
|
510
517
|
"changedPaths": {
|
|
511
518
|
"const": 1000
|
|
512
519
|
},
|
|
@@ -543,8 +550,8 @@
|
|
|
543
550
|
}
|
|
544
551
|
},
|
|
545
552
|
"truncated": {
|
|
546
|
-
"type": "object",
|
|
547
553
|
"additionalProperties": false,
|
|
554
|
+
"type": "object",
|
|
548
555
|
"required": [
|
|
549
556
|
"changedPaths",
|
|
550
557
|
"touchedNodes",
|