@consiliency/contract 0.1.0 → 0.2.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/README.md +3 -1
- package/conformance/vectors/adoption-absent-ungoverned.json +16 -0
- package/conformance/vectors/adoption-adopted-governed.json +18 -0
- package/conformance/vectors/adoption-declared-false-ungoverned.json +17 -0
- package/conformance/vectors/adoption-partial-scope.json +18 -0
- package/conformance/vectors/coordination-announce-intent-does-not-lease.json +38 -0
- package/conformance/vectors/coordination-done-does-not-release-lease.json +38 -0
- package/conformance/vectors/coordination-handoff-does-not-transfer-holder.json +38 -0
- package/conformance/vectors/coordination-message-does-not-mutate-lease.json +38 -0
- package/conformance/vectors/doc-label-foreign-governed-false.json +19 -0
- package/conformance/vectors/doc-label-present-nonconforming.json +19 -0
- package/conformance/vectors/edge-label-unmanaged-cross-repo.json +30 -0
- package/conformance/vectors/governed-set-undeclared-ungoverned.json +18 -0
- package/conformance/vectors/ignore-set-nested-path-any-depth.json +19 -0
- package/conformance/vectors/ignore-set-scratch-never-governed.json +19 -0
- package/conformance/vectors/interface-valid-realized-and-promised.json +1 -1
- package/conformance/vectors/lease-acquire.json +35 -0
- package/conformance/vectors/lease-event-carries-lease.json +28 -0
- package/conformance/vectors/lease-expire.json +25 -0
- package/conformance/vectors/lease-expiry-boundary.json +25 -0
- package/conformance/vectors/lease-hard-degrades-to-soft.json +35 -0
- package/conformance/vectors/lease-hard-mode-atomic.json +35 -0
- package/conformance/vectors/lease-release.json +26 -0
- package/conformance/vectors/lease-renew.json +36 -0
- package/conformance/vectors/manifest-invalid-absolute-path.json +1 -1
- package/conformance/vectors/manifest-invalid-certified-maturity.json +1 -1
- package/conformance/vectors/manifest-invalid-path-and-ref.json +1 -1
- package/conformance/vectors/manifest-invalid-unknown-archetype.json +1 -1
- package/conformance/vectors/manifest-valid-baseline-only.json +1 -1
- package/conformance/vectors/manifest-valid-product.json +1 -1
- package/conformance/vectors/version-skew-compatible.json +3 -3
- package/conformance/vectors/version-skew-incompatible-warns.json +2 -2
- package/core/contract.json +16 -6
- package/core/registries/default-ignore-set.json +30 -0
- package/core/registries/maturity-labels.json +26 -0
- package/core/schemas/coordination-channel-protocol.schema.json +53 -0
- package/core/schemas/coordination-scenario.schema.json +67 -0
- package/core/schemas/decision.schema.json +5 -0
- package/core/schemas/governance-scope-scenario.schema.json +62 -0
- package/core/schemas/interface-declaration.schema.json +2 -0
- package/core/schemas/lease-event.schema.json +17 -0
- package/core/schemas/lease-store-protocol.schema.json +117 -0
- package/core/schemas/lease.schema.json +42 -0
- package/core/schemas/manifest.schema.json +44 -1
- package/core/schemas/version-skew-protocol.schema.json +3 -3
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"schema": {"const": "consiliency.manifest.v1"},
|
|
10
|
-
"contract_version": {"type": "string", "pattern": "^0\\.
|
|
10
|
+
"contract_version": {"type": "string", "pattern": "^0\\.2\\.\\d+$"},
|
|
11
11
|
"repo": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"required": ["id", "display_name", "default_branch"],
|
|
@@ -57,9 +57,52 @@
|
|
|
57
57
|
"legacy_layouts": {
|
|
58
58
|
"type": "array",
|
|
59
59
|
"items": {"$ref": "#/$defs/repoRelativePath"}
|
|
60
|
+
},
|
|
61
|
+
"adoption": {"$ref": "#/$defs/adoptionProfile"},
|
|
62
|
+
"governed_set": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"uniqueItems": true,
|
|
65
|
+
"items": {"$ref": "#/$defs/governedSelector"}
|
|
60
66
|
}
|
|
61
67
|
},
|
|
62
68
|
"$defs": {
|
|
69
|
+
"adoptionProfile": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": ["adopted", "contract_version", "archetype", "adopted_scope"],
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"properties": {
|
|
74
|
+
"adopted": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"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
|
+
},
|
|
78
|
+
"contract_version": {"type": "string", "pattern": "^0\\.2\\.\\d+$"},
|
|
79
|
+
"archetype": {"enum": ["product", "service", "library", "infra", "tooling-meta", "experiment", "document", "baseline-only"]},
|
|
80
|
+
"adopted_scope": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"uniqueItems": true,
|
|
83
|
+
"items": {"enum": ["layout", "gates", "projections", "cert"]}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"allOf": [
|
|
87
|
+
{
|
|
88
|
+
"if": {"properties": {"adopted": {"const": true}}, "required": ["adopted"]},
|
|
89
|
+
"then": {"properties": {"adopted_scope": {"minItems": 1}}}
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"governedSelector": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"required": ["by", "value"],
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"properties": {
|
|
98
|
+
"by": {"enum": ["path", "glob", "class"]},
|
|
99
|
+
"value": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"not": {"anyOf": [{"pattern": "^/"}, {"pattern": "(^|/)\\.\\.(/|$)"}, {"pattern": "^[A-Za-z]:[\\\\/]"}]}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
63
106
|
"repoRelativePath": {
|
|
64
107
|
"type": "string",
|
|
65
108
|
"minLength": 1,
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"schema": {"const": "consiliency.version_skew_protocol.v1"},
|
|
10
|
-
"contract_version": {"const": "0.
|
|
10
|
+
"contract_version": {"const": "0.2.0"},
|
|
11
11
|
"compatible_ranges": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"required": ["contract", "package"],
|
|
14
14
|
"additionalProperties": false,
|
|
15
15
|
"properties": {
|
|
16
|
-
"contract": {"const": ">=0.
|
|
17
|
-
"package": {"const": ">=0.
|
|
16
|
+
"contract": {"const": ">=0.2.0 <0.3.0"},
|
|
17
|
+
"package": {"const": ">=0.2.0 <0.3.0"}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"prerelease_policy": {"enum": ["reject-by-default"]},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@consiliency/contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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.
|
|
2
|
+
export declare const CONTRACT_VERSION: "0.2.0";
|
|
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
|
+
export const CONTRACT_VERSION = "0.2.0";
|
|
7
7
|
|
|
8
8
|
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
9
9
|
|