@consiliency/contract 0.6.2 → 0.6.3
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/core/contract.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"additionalProperties": false,
|
|
19
19
|
"properties": {
|
|
20
20
|
"schema": {"const": "consiliency.git_discipline_protocol.v1"},
|
|
21
|
-
"contract_version": {"const": "0.6.
|
|
21
|
+
"contract_version": {"const": "0.6.3"},
|
|
22
22
|
"ref_class_registry": {
|
|
23
23
|
"const": "pipeline-ref-classes",
|
|
24
24
|
"description": "loadRegistry('pipeline_ref_classes') enumerates the pipeline-owned ref families and the human default. Both runtimes (harness + gp) read it to agree on ownership."
|
|
@@ -3,46 +3,101 @@
|
|
|
3
3
|
"$id": "https://consiliency.io/contracts/manifest.schema.json",
|
|
4
4
|
"title": ".consiliency manifest",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"required": [
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"contract_version",
|
|
9
|
+
"repo",
|
|
10
|
+
"declaration",
|
|
11
|
+
"documents",
|
|
12
|
+
"interfaces"
|
|
13
|
+
],
|
|
7
14
|
"additionalProperties": false,
|
|
8
15
|
"properties": {
|
|
9
|
-
"schema": {
|
|
10
|
-
|
|
16
|
+
"schema": {
|
|
17
|
+
"const": "consiliency.manifest.v1"
|
|
18
|
+
},
|
|
19
|
+
"contract_version": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^0\\.\\d+\\.\\d+$"
|
|
22
|
+
},
|
|
11
23
|
"repo": {
|
|
12
24
|
"type": "object",
|
|
13
|
-
"required": [
|
|
25
|
+
"required": [
|
|
26
|
+
"id",
|
|
27
|
+
"display_name",
|
|
28
|
+
"default_branch"
|
|
29
|
+
],
|
|
14
30
|
"additionalProperties": false,
|
|
15
31
|
"properties": {
|
|
16
|
-
"id": {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
"id": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^[a-z0-9][a-z0-9_.-]*$"
|
|
35
|
+
},
|
|
36
|
+
"display_name": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1
|
|
39
|
+
},
|
|
40
|
+
"default_branch": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
},
|
|
44
|
+
"homepage": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
20
47
|
}
|
|
21
48
|
},
|
|
22
49
|
"declaration": {
|
|
23
50
|
"oneOf": [
|
|
24
51
|
{
|
|
25
52
|
"type": "object",
|
|
26
|
-
"required": [
|
|
53
|
+
"required": [
|
|
54
|
+
"mode"
|
|
55
|
+
],
|
|
27
56
|
"additionalProperties": false,
|
|
28
|
-
"properties": {
|
|
57
|
+
"properties": {
|
|
58
|
+
"mode": {
|
|
59
|
+
"const": "baseline-only"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
29
62
|
},
|
|
30
63
|
{
|
|
31
64
|
"type": "object",
|
|
32
|
-
"required": [
|
|
65
|
+
"required": [
|
|
66
|
+
"mode",
|
|
67
|
+
"archetypes"
|
|
68
|
+
],
|
|
33
69
|
"additionalProperties": false,
|
|
34
70
|
"properties": {
|
|
35
|
-
"mode": {
|
|
71
|
+
"mode": {
|
|
72
|
+
"const": "archetyped"
|
|
73
|
+
},
|
|
36
74
|
"archetypes": {
|
|
37
75
|
"type": "array",
|
|
38
76
|
"minItems": 1,
|
|
39
77
|
"uniqueItems": true,
|
|
40
|
-
"items": {
|
|
78
|
+
"items": {
|
|
79
|
+
"enum": [
|
|
80
|
+
"product",
|
|
81
|
+
"service",
|
|
82
|
+
"library",
|
|
83
|
+
"infra",
|
|
84
|
+
"tooling-meta",
|
|
85
|
+
"experiment",
|
|
86
|
+
"document"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
41
89
|
},
|
|
42
90
|
"modifiers": {
|
|
43
91
|
"type": "array",
|
|
44
92
|
"uniqueItems": true,
|
|
45
|
-
"items": {
|
|
93
|
+
"items": {
|
|
94
|
+
"enum": [
|
|
95
|
+
"data-bearing",
|
|
96
|
+
"public",
|
|
97
|
+
"regulated",
|
|
98
|
+
"user-facing"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
46
101
|
}
|
|
47
102
|
}
|
|
48
103
|
}
|
|
@@ -50,90 +105,253 @@
|
|
|
50
105
|
},
|
|
51
106
|
"documents": {
|
|
52
107
|
"type": "array",
|
|
53
|
-
"items": {
|
|
108
|
+
"items": {
|
|
109
|
+
"$ref": "#/$defs/document"
|
|
110
|
+
},
|
|
54
111
|
"uniqueItems": true
|
|
55
112
|
},
|
|
56
|
-
"interfaces": {
|
|
113
|
+
"interfaces": {
|
|
114
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
115
|
+
},
|
|
57
116
|
"legacy_layouts": {
|
|
58
117
|
"type": "array",
|
|
59
|
-
"items": {
|
|
118
|
+
"items": {
|
|
119
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"adoption": {
|
|
123
|
+
"$ref": "#/$defs/adoptionProfile"
|
|
60
124
|
},
|
|
61
|
-
"adoption": {"$ref": "#/$defs/adoptionProfile"},
|
|
62
125
|
"governed_set": {
|
|
63
126
|
"type": "array",
|
|
64
127
|
"uniqueItems": true,
|
|
65
|
-
"items": {
|
|
128
|
+
"items": {
|
|
129
|
+
"$ref": "#/$defs/governedSelector"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"gate_posture_overrides": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"description": "Retractable teeth: per-repo enforcement-posture overrides, {finding_code: posture}. May RAISE any finding class freely and LOWER only to (never below) its non-retractable min_posture floor in the gate_posture_registry; a downward move is surfaced by the non-retractable posture_retracted note. observe < warn < enforce.",
|
|
135
|
+
"additionalProperties": {
|
|
136
|
+
"enum": [
|
|
137
|
+
"observe",
|
|
138
|
+
"warn",
|
|
139
|
+
"enforce"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
66
142
|
}
|
|
67
143
|
},
|
|
68
144
|
"$defs": {
|
|
69
145
|
"adoptionProfile": {
|
|
70
146
|
"type": "object",
|
|
71
|
-
"required": [
|
|
147
|
+
"required": [
|
|
148
|
+
"adopted",
|
|
149
|
+
"contract_version",
|
|
150
|
+
"archetype",
|
|
151
|
+
"adopted_scope"
|
|
152
|
+
],
|
|
72
153
|
"additionalProperties": false,
|
|
73
154
|
"properties": {
|
|
74
155
|
"adopted": {
|
|
75
156
|
"type": "boolean",
|
|
76
157
|
"description": "true = the repo consents to be governed for the facets in adopted_scope (which must be non-empty). false = an explicit, recorded declaration of non-adoption: the repo is UNGOVERNED for every facet even though a profile is present. A repo with no adoption profile at all is likewise ungoverned; adopted:false is the explicit, auditable form of that state."
|
|
77
158
|
},
|
|
78
|
-
"contract_version": {
|
|
79
|
-
|
|
159
|
+
"contract_version": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"pattern": "^0\\.\\d+\\.\\d+$"
|
|
162
|
+
},
|
|
163
|
+
"archetype": {
|
|
164
|
+
"enum": [
|
|
165
|
+
"product",
|
|
166
|
+
"service",
|
|
167
|
+
"library",
|
|
168
|
+
"infra",
|
|
169
|
+
"tooling-meta",
|
|
170
|
+
"experiment",
|
|
171
|
+
"document",
|
|
172
|
+
"baseline-only"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
80
175
|
"adopted_scope": {
|
|
81
176
|
"type": "array",
|
|
82
177
|
"uniqueItems": true,
|
|
83
|
-
"items": {
|
|
178
|
+
"items": {
|
|
179
|
+
"enum": [
|
|
180
|
+
"layout",
|
|
181
|
+
"gates",
|
|
182
|
+
"projections",
|
|
183
|
+
"cert"
|
|
184
|
+
]
|
|
185
|
+
}
|
|
84
186
|
}
|
|
85
187
|
},
|
|
86
188
|
"allOf": [
|
|
87
189
|
{
|
|
88
|
-
"if": {
|
|
89
|
-
|
|
190
|
+
"if": {
|
|
191
|
+
"properties": {
|
|
192
|
+
"adopted": {
|
|
193
|
+
"const": true
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"adopted"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"then": {
|
|
201
|
+
"properties": {
|
|
202
|
+
"adopted_scope": {
|
|
203
|
+
"minItems": 1
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
90
207
|
}
|
|
91
208
|
]
|
|
92
209
|
},
|
|
93
210
|
"governedSelector": {
|
|
94
211
|
"type": "object",
|
|
95
|
-
"required": [
|
|
212
|
+
"required": [
|
|
213
|
+
"by",
|
|
214
|
+
"value"
|
|
215
|
+
],
|
|
96
216
|
"additionalProperties": false,
|
|
97
217
|
"properties": {
|
|
98
|
-
"by": {
|
|
218
|
+
"by": {
|
|
219
|
+
"enum": [
|
|
220
|
+
"path",
|
|
221
|
+
"glob",
|
|
222
|
+
"class"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
99
225
|
"value": {
|
|
100
226
|
"type": "string",
|
|
101
227
|
"minLength": 1,
|
|
102
|
-
"not": {
|
|
228
|
+
"not": {
|
|
229
|
+
"anyOf": [
|
|
230
|
+
{
|
|
231
|
+
"pattern": "^/"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"pattern": "(^|/)\\.\\.(/|$)"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"pattern": "^[A-Za-z]:[\\\\/]"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
103
241
|
}
|
|
104
242
|
}
|
|
105
243
|
},
|
|
106
244
|
"repoRelativePath": {
|
|
107
245
|
"type": "string",
|
|
108
246
|
"minLength": 1,
|
|
109
|
-
"not": {
|
|
247
|
+
"not": {
|
|
248
|
+
"anyOf": [
|
|
249
|
+
{
|
|
250
|
+
"pattern": "^/"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"pattern": "(^|/)\\.\\.(/|$)"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"pattern": "^[A-Za-z]:[\\\\/]"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
110
260
|
},
|
|
111
261
|
"externalRef": {
|
|
112
262
|
"type": "object",
|
|
113
|
-
"required": [
|
|
263
|
+
"required": [
|
|
264
|
+
"kind",
|
|
265
|
+
"value"
|
|
266
|
+
],
|
|
114
267
|
"additionalProperties": false,
|
|
115
268
|
"properties": {
|
|
116
|
-
"kind": {
|
|
117
|
-
|
|
269
|
+
"kind": {
|
|
270
|
+
"enum": [
|
|
271
|
+
"org-ref",
|
|
272
|
+
"url",
|
|
273
|
+
"opaque-external-ref"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"value": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"minLength": 1
|
|
279
|
+
}
|
|
118
280
|
}
|
|
119
281
|
},
|
|
120
282
|
"document": {
|
|
121
283
|
"type": "object",
|
|
122
|
-
"required": [
|
|
284
|
+
"required": [
|
|
285
|
+
"id",
|
|
286
|
+
"class",
|
|
287
|
+
"maturity",
|
|
288
|
+
"target_level",
|
|
289
|
+
"required"
|
|
290
|
+
],
|
|
123
291
|
"oneOf": [
|
|
124
|
-
{
|
|
125
|
-
|
|
292
|
+
{
|
|
293
|
+
"required": [
|
|
294
|
+
"path"
|
|
295
|
+
],
|
|
296
|
+
"not": {
|
|
297
|
+
"required": [
|
|
298
|
+
"ref"
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"required": [
|
|
304
|
+
"ref"
|
|
305
|
+
],
|
|
306
|
+
"not": {
|
|
307
|
+
"required": [
|
|
308
|
+
"path"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
}
|
|
126
312
|
],
|
|
127
313
|
"additionalProperties": false,
|
|
128
314
|
"properties": {
|
|
129
|
-
"id": {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
315
|
+
"id": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"pattern": "^[a-z0-9][a-z0-9_.-]*$"
|
|
318
|
+
},
|
|
319
|
+
"class": {
|
|
320
|
+
"enum": [
|
|
321
|
+
"intent-ground",
|
|
322
|
+
"intent-plan",
|
|
323
|
+
"proj-S",
|
|
324
|
+
"proj-code",
|
|
325
|
+
"ops-fact",
|
|
326
|
+
"static",
|
|
327
|
+
"index"
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
"path": {
|
|
331
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
332
|
+
},
|
|
333
|
+
"ref": {
|
|
334
|
+
"$ref": "#/$defs/externalRef"
|
|
335
|
+
},
|
|
336
|
+
"maturity": {
|
|
337
|
+
"enum": [
|
|
338
|
+
"presence-only",
|
|
339
|
+
"hash-checked",
|
|
340
|
+
"realized-edge-observed"
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"target_level": {
|
|
344
|
+
"enum": [
|
|
345
|
+
"L0",
|
|
346
|
+
"L1"
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"required": {
|
|
350
|
+
"type": "boolean"
|
|
351
|
+
},
|
|
352
|
+
"last_attested_at": {
|
|
353
|
+
"type": "string"
|
|
354
|
+
}
|
|
137
355
|
}
|
|
138
356
|
}
|
|
139
357
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"schema": {"const": "consiliency.version_skew_protocol.v1"},
|
|
10
|
-
"contract_version": {"const": "0.6.
|
|
10
|
+
"contract_version": {"const": "0.6.3"},
|
|
11
11
|
"compatible_ranges": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"required": ["contract", "package"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@consiliency/contract",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Consiliency cross-repo contract package: shared JSON contract data, conformance vectors, thin npm/PyPI readers, and the canonical_html.v1 public contract surface.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const CONTRACT_PACKAGE: "@consiliency/contract";
|
|
2
|
-
export declare const CONTRACT_VERSION: "0.6.
|
|
2
|
+
export declare const CONTRACT_VERSION: "0.6.3";
|
|
3
3
|
export declare const CONTRACT: Record<string, unknown>;
|
|
4
4
|
export declare function loadContract(): Record<string, unknown>;
|
|
5
5
|
export declare function loadSchema(name: string): Record<string, unknown>;
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { dirname, join } from "node:path";
|
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
|
|
5
5
|
export const CONTRACT_PACKAGE = "@consiliency/contract";
|
|
6
|
-
export const CONTRACT_VERSION = "0.6.
|
|
6
|
+
export const CONTRACT_VERSION = "0.6.3";
|
|
7
7
|
|
|
8
8
|
export {
|
|
9
9
|
AuthorityCanonicalError,
|