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
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"additionalProperties": false,
|
|
15
15
|
"required": ["kind", "id"],
|
|
16
16
|
"properties": {
|
|
17
|
-
"kind": { "enum": ["entity", "relation", "constraint", "recommendation", "practice", "event", "snapshot", "subject"
|
|
17
|
+
"kind": { "enum": ["entity", "relation", "constraint", "recommendation", "practice", "event", "snapshot", "subject"] },
|
|
18
18
|
"id": { "type": "string" }
|
|
19
19
|
}
|
|
20
20
|
},
|
|
@@ -3,62 +3,160 @@
|
|
|
3
3
|
"$id": "https://archcontext.dev/schemas/runtime/flow-selector-check.schema.json",
|
|
4
4
|
"title": "ArchitectureFlowSelectorCheckV1",
|
|
5
5
|
"description": "The data of `archctx flows check`: the P2 flow proof of every capability that declares a flow, and the proof status of every declared entrypoint-to-sink selector, computed without rendering. Consumers detect it through the flow-selector-check-v1 capability.",
|
|
6
|
-
"type": "object",
|
|
7
6
|
"additionalProperties": false,
|
|
8
|
-
"
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"ok",
|
|
11
|
+
"codeGraph",
|
|
12
|
+
"summary",
|
|
13
|
+
"selectors",
|
|
14
|
+
"capabilities"
|
|
15
|
+
],
|
|
9
16
|
"properties": {
|
|
10
|
-
"schemaVersion": {
|
|
11
|
-
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"const": "archcontext.flow-selector-check/v1"
|
|
19
|
+
},
|
|
20
|
+
"ok": {
|
|
21
|
+
"description": "True when no capability that declares a flow has an unprovable P2 proof.",
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
12
24
|
"codeGraph": {
|
|
13
|
-
"type": "object",
|
|
14
25
|
"additionalProperties": false,
|
|
15
|
-
"
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": [
|
|
28
|
+
"availability",
|
|
29
|
+
"version"
|
|
30
|
+
],
|
|
16
31
|
"properties": {
|
|
17
|
-
"availability": {
|
|
18
|
-
|
|
32
|
+
"availability": {
|
|
33
|
+
"enum": [
|
|
34
|
+
"ready",
|
|
35
|
+
"unavailable"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"version": {
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
19
42
|
}
|
|
20
43
|
},
|
|
21
44
|
"summary": {
|
|
22
|
-
"type": "object",
|
|
23
45
|
"additionalProperties": false,
|
|
24
|
-
"
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": [
|
|
48
|
+
"selectors",
|
|
49
|
+
"proven",
|
|
50
|
+
"unproven",
|
|
51
|
+
"usedUnproven"
|
|
52
|
+
],
|
|
25
53
|
"properties": {
|
|
26
|
-
"selectors": {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
54
|
+
"selectors": {
|
|
55
|
+
"minimum": 0,
|
|
56
|
+
"type": "integer"
|
|
57
|
+
},
|
|
58
|
+
"proven": {
|
|
59
|
+
"minimum": 0,
|
|
60
|
+
"type": "integer"
|
|
61
|
+
},
|
|
62
|
+
"unproven": {
|
|
63
|
+
"minimum": 0,
|
|
64
|
+
"type": "integer"
|
|
65
|
+
},
|
|
66
|
+
"usedUnproven": {
|
|
67
|
+
"minimum": 0,
|
|
68
|
+
"description": "Unproven selectors that a required-flow step names.",
|
|
69
|
+
"type": "integer"
|
|
70
|
+
}
|
|
30
71
|
}
|
|
31
72
|
},
|
|
32
73
|
"selectors": {
|
|
33
74
|
"type": "array",
|
|
34
75
|
"items": {
|
|
35
|
-
"type": "object",
|
|
36
76
|
"additionalProperties": false,
|
|
37
|
-
"
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"nodeId",
|
|
80
|
+
"entrypointId",
|
|
81
|
+
"sourcePath",
|
|
82
|
+
"sourceSymbol",
|
|
83
|
+
"sinkId",
|
|
84
|
+
"sinkPath",
|
|
85
|
+
"sinkSymbol",
|
|
86
|
+
"status",
|
|
87
|
+
"callSites",
|
|
88
|
+
"referenceSites",
|
|
89
|
+
"rejectedBuiltinCallSites",
|
|
90
|
+
"flowSteps"
|
|
91
|
+
],
|
|
38
92
|
"properties": {
|
|
39
|
-
"nodeId": {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
93
|
+
"nodeId": {
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"entrypointId": {
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"sourcePath": {
|
|
102
|
+
"minLength": 1,
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"sourceSymbol": {
|
|
106
|
+
"minLength": 1,
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"sinkId": {
|
|
110
|
+
"minLength": 1,
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"sinkPath": {
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"sinkSymbol": {
|
|
118
|
+
"minLength": 1,
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
46
121
|
"status": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
122
|
+
"description": "Only proven binds a flow step.",
|
|
123
|
+
"enum": [
|
|
124
|
+
"ambiguous-symbol",
|
|
125
|
+
"evidence-missing",
|
|
126
|
+
"evidence-truncated",
|
|
127
|
+
"false-builtin-call",
|
|
128
|
+
"no-direct-call",
|
|
129
|
+
"only-references",
|
|
130
|
+
"proven"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"callSites": {
|
|
134
|
+
"$ref": "#/$defs/sites"
|
|
135
|
+
},
|
|
136
|
+
"referenceSites": {
|
|
137
|
+
"$ref": "#/$defs/sites"
|
|
138
|
+
},
|
|
139
|
+
"rejectedBuiltinCallSites": {
|
|
140
|
+
"$ref": "#/$defs/sites"
|
|
49
141
|
},
|
|
50
|
-
"callSites": { "$ref": "#/$defs/sites" },
|
|
51
|
-
"referenceSites": { "$ref": "#/$defs/sites" },
|
|
52
|
-
"rejectedBuiltinCallSites": { "$ref": "#/$defs/sites" },
|
|
53
142
|
"flowSteps": {
|
|
54
143
|
"type": "array",
|
|
55
144
|
"items": {
|
|
56
|
-
"type": "object",
|
|
57
145
|
"additionalProperties": false,
|
|
58
|
-
"
|
|
146
|
+
"type": "object",
|
|
147
|
+
"required": [
|
|
148
|
+
"flowId",
|
|
149
|
+
"stepId"
|
|
150
|
+
],
|
|
59
151
|
"properties": {
|
|
60
|
-
"flowId": {
|
|
61
|
-
|
|
152
|
+
"flowId": {
|
|
153
|
+
"minLength": 1,
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"stepId": {
|
|
157
|
+
"minLength": 1,
|
|
158
|
+
"type": "string"
|
|
159
|
+
}
|
|
62
160
|
}
|
|
63
161
|
}
|
|
64
162
|
}
|
|
@@ -68,23 +166,50 @@
|
|
|
68
166
|
"capabilities": {
|
|
69
167
|
"type": "array",
|
|
70
168
|
"items": {
|
|
71
|
-
"type": "object",
|
|
72
169
|
"additionalProperties": false,
|
|
73
|
-
"
|
|
170
|
+
"type": "object",
|
|
171
|
+
"required": [
|
|
172
|
+
"capabilityId",
|
|
173
|
+
"p2Status",
|
|
174
|
+
"diagnostics"
|
|
175
|
+
],
|
|
74
176
|
"properties": {
|
|
75
|
-
"capabilityId": {
|
|
76
|
-
|
|
177
|
+
"capabilityId": {
|
|
178
|
+
"minLength": 1,
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"p2Status": {
|
|
182
|
+
"enum": [
|
|
183
|
+
"not-applicable",
|
|
184
|
+
"proven",
|
|
185
|
+
"unprovable"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
77
188
|
"diagnostics": {
|
|
78
189
|
"type": "array",
|
|
79
190
|
"items": {
|
|
80
|
-
"type": "object",
|
|
81
191
|
"additionalProperties": false,
|
|
82
|
-
"
|
|
192
|
+
"type": "object",
|
|
193
|
+
"required": [
|
|
194
|
+
"code",
|
|
195
|
+
"detail"
|
|
196
|
+
],
|
|
83
197
|
"properties": {
|
|
84
|
-
"code": {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
198
|
+
"code": {
|
|
199
|
+
"minLength": 1,
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
"flowId": {
|
|
203
|
+
"minLength": 1,
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"stepId": {
|
|
207
|
+
"minLength": 1,
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"detail": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
}
|
|
88
213
|
}
|
|
89
214
|
}
|
|
90
215
|
}
|
|
@@ -96,12 +221,20 @@
|
|
|
96
221
|
"sites": {
|
|
97
222
|
"type": "array",
|
|
98
223
|
"items": {
|
|
99
|
-
"type": "object",
|
|
100
224
|
"additionalProperties": false,
|
|
101
|
-
"
|
|
225
|
+
"type": "object",
|
|
226
|
+
"required": [
|
|
227
|
+
"path"
|
|
228
|
+
],
|
|
102
229
|
"properties": {
|
|
103
|
-
"path": {
|
|
104
|
-
|
|
230
|
+
"path": {
|
|
231
|
+
"minLength": 1,
|
|
232
|
+
"type": "string"
|
|
233
|
+
},
|
|
234
|
+
"line": {
|
|
235
|
+
"minimum": 1,
|
|
236
|
+
"type": "integer"
|
|
237
|
+
}
|
|
105
238
|
}
|
|
106
239
|
}
|
|
107
240
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archctx.repoharness.com/schemas/runtime/hook-debt-checkpoint.schema.json",
|
|
4
4
|
"title": "ArchitectureDebtHookCheckpointV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
6
|
+
"type": "object",
|
|
7
7
|
"required": [
|
|
8
8
|
"schemaVersion",
|
|
9
9
|
"debt",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"$ref": "architecture-debt.schema.json"
|
|
18
18
|
},
|
|
19
19
|
"hookLog": {
|
|
20
|
-
"type": "object",
|
|
21
20
|
"additionalProperties": false,
|
|
21
|
+
"type": "object",
|
|
22
22
|
"required": [
|
|
23
23
|
"schemaVersion",
|
|
24
24
|
"event",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"const": "archcontext.hook-log/v1"
|
|
36
36
|
},
|
|
37
37
|
"event": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"type": "string"
|
|
40
40
|
},
|
|
41
41
|
"elapsedMs": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"minimum": 0,
|
|
43
|
+
"type": "number"
|
|
44
44
|
},
|
|
45
45
|
"pathCount": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"minimum": 0,
|
|
47
|
+
"type": "integer"
|
|
48
48
|
},
|
|
49
49
|
"changedPathDigest": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
50
|
+
"pattern": "^sha256:[0-9a-f]{64}$",
|
|
51
|
+
"type": "string"
|
|
52
52
|
},
|
|
53
53
|
"reasonCode": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"type": "string"
|
|
56
56
|
},
|
|
57
57
|
"failOpen": {
|
|
58
58
|
"const": false
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://archcontext.dev/schemas/runtime/index-seed.schema.json",
|
|
4
|
+
"title": "IndexSeedResultV1",
|
|
5
|
+
"description": "Result of `archctx index seed` (#641): refreshes or hardlink-seeds private `.codegraph` storage separately from documentation projection.",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"mode",
|
|
11
|
+
"worktreeRole",
|
|
12
|
+
"seededFromBase",
|
|
13
|
+
"hardlinkedFiles",
|
|
14
|
+
"copiedFiles",
|
|
15
|
+
"elapsedMs"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": {
|
|
19
|
+
"const": "archcontext.index-seed/v1"
|
|
20
|
+
},
|
|
21
|
+
"mode": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"primary-refresh",
|
|
25
|
+
"worktree-seed",
|
|
26
|
+
"already-present"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"worktreeRole": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": [
|
|
32
|
+
"primary",
|
|
33
|
+
"linked"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"seededFromBase": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"hardlinkedFiles": {
|
|
40
|
+
"minimum": 0,
|
|
41
|
+
"type": "integer"
|
|
42
|
+
},
|
|
43
|
+
"copiedFiles": {
|
|
44
|
+
"minimum": 0,
|
|
45
|
+
"type": "integer"
|
|
46
|
+
},
|
|
47
|
+
"elapsedMs": {
|
|
48
|
+
"minimum": 0,
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
"indexDigest": {
|
|
52
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
53
|
+
"type": "string"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://archcontext.dev/schemas/runtime/path-context.schema.json",
|
|
4
|
+
"title": "PathContextOutputV1",
|
|
5
|
+
"description": "Read-only architecture ownership and relation context resolved for explicit paths.",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"paths",
|
|
11
|
+
"owners",
|
|
12
|
+
"nodes",
|
|
13
|
+
"relations"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schemaVersion": {
|
|
17
|
+
"const": "archcontext.path-context/v1"
|
|
18
|
+
},
|
|
19
|
+
"paths": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"not": {
|
|
25
|
+
"anyOf": [
|
|
26
|
+
{
|
|
27
|
+
"pattern": "^/"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"pattern": "\\\\"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"pattern": "(^|/)\\.\\.(/|$)"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"owners": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"type": "object",
|
|
44
|
+
"required": [
|
|
45
|
+
"path",
|
|
46
|
+
"matched",
|
|
47
|
+
"ambiguous",
|
|
48
|
+
"owningCapabilityId"
|
|
49
|
+
],
|
|
50
|
+
"properties": {
|
|
51
|
+
"path": {
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"matched": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
"ambiguous": {
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"owningCapabilityId": {
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"type": [
|
|
64
|
+
"string",
|
|
65
|
+
"null"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"stableId": {
|
|
69
|
+
"minLength": 1,
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"kind": {
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"name": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"source": {
|
|
80
|
+
"type": "object"
|
|
81
|
+
},
|
|
82
|
+
"extensions": {
|
|
83
|
+
"type": "object"
|
|
84
|
+
},
|
|
85
|
+
"candidates": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"minLength": 1,
|
|
89
|
+
"type": "string"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"nodes": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"type": "object"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"relations": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "object"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|