@consiliency/contract 0.2.2 → 0.3.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/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 +7 -2
- 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 +1 -1
- package/core/registries/required-documents.json +31 -15
- package/core/schemas/contract-version-status.schema.json +2 -2
- package/core/schemas/manifest.schema.json +2 -2
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Host absolute paths are rejected from public package data.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.manifest.v1",
|
|
6
|
-
"contract_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
7
|
"repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
|
|
8
8
|
"declaration": {"mode": "baseline-only"},
|
|
9
9
|
"documents": [
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Phase 0 vectors must not claim certified maturity.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.manifest.v1",
|
|
6
|
-
"contract_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
7
|
"repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
|
|
8
8
|
"declaration": {"mode": "baseline-only"},
|
|
9
9
|
"documents": [
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A document declaration must use exactly one of path or ref.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.manifest.v1",
|
|
6
|
-
"contract_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
7
|
"repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
|
|
8
8
|
"declaration": {"mode": "baseline-only"},
|
|
9
9
|
"documents": [
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Unknown archetypes are rejected.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.manifest.v1",
|
|
6
|
-
"contract_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
7
|
"repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
|
|
8
8
|
"declaration": {"mode": "archetyped", "archetypes": ["website"], "modifiers": []},
|
|
9
9
|
"documents": [],
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
"description": "A baseline-only declaration is legal and carries no archetype list.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.manifest.v1",
|
|
6
|
-
"contract_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
7
|
"repo": {"id": "notes", "display_name": "Notes", "default_branch": "main"},
|
|
8
8
|
"declaration": {"mode": "baseline-only"},
|
|
9
9
|
"documents": [
|
|
10
|
-
{"id": "readme", "class": "index", "path": "README.md", "maturity": "presence-only", "target_level": "L0", "required": true}
|
|
10
|
+
{"id": "readme", "class": "index", "path": "README.md", "maturity": "presence-only", "target_level": "L0", "required": true},
|
|
11
|
+
{"id": "doc-contract-index", "class": "index", "path": "docs/CONTRACT_INDEX.md", "maturity": "presence-only", "target_level": "L0", "required": true},
|
|
12
|
+
{"id": "contract-version-status", "class": "index", "path": ".consiliency/status.json", "maturity": "presence-only", "target_level": "L0", "required": true},
|
|
13
|
+
{"id": "glossary", "class": "proj-S", "path": "docs/glossary.html", "maturity": "presence-only", "target_level": "L0", "required": true},
|
|
14
|
+
{"id": "interface-declaration", "class": "index", "path": "docs/INTERFACES.md", "maturity": "presence-only", "target_level": "L0", "required": true},
|
|
15
|
+
{"id": "codeowners", "class": "index", "path": "CODEOWNERS", "maturity": "presence-only", "target_level": "L0", "required": true}
|
|
11
16
|
],
|
|
12
17
|
"interfaces": ".consiliency/interfaces.json"
|
|
13
18
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "An archetyped product manifest with repo-relative documents is accepted at L0.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.manifest.v1",
|
|
6
|
-
"contract_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
7
|
"repo": {"id": "portal", "display_name": "Consiliency Portal", "default_branch": "main"},
|
|
8
8
|
"declaration": {"mode": "archetyped", "archetypes": ["product"], "modifiers": ["user-facing"]},
|
|
9
9
|
"documents": [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "version-skew-compatible",
|
|
3
|
-
"description": "Contract and package versions in the 0.
|
|
3
|
+
"description": "Contract and package versions in the 0.3 range are compatible.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.version_skew_scenario.v1",
|
|
6
|
-
"contract_version": "0.
|
|
7
|
-
"package_version": "0.
|
|
6
|
+
"contract_version": "0.3.0",
|
|
7
|
+
"package_version": "0.3.0"
|
|
8
8
|
},
|
|
9
9
|
"decision": {
|
|
10
10
|
"schema": "consiliency.conformance_decision.v1",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"description": "Version skew emits a warning by default during Phase 0.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.version_skew_scenario.v1",
|
|
6
|
-
"contract_version": "0.
|
|
7
|
-
"package_version": "0.
|
|
6
|
+
"contract_version": "0.2.0",
|
|
7
|
+
"package_version": "0.3.0"
|
|
8
8
|
},
|
|
9
9
|
"decision": {
|
|
10
10
|
"schema": "consiliency.conformance_decision.v1",
|
package/core/contract.json
CHANGED
|
@@ -4,23 +4,21 @@
|
|
|
4
4
|
"baseline": [
|
|
5
5
|
{"id": "readme", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": false},
|
|
6
6
|
{"id": "doc-contract-index", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
7
|
-
{"id": "service-catalog-ownership", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
8
7
|
{"id": "contract-version-status", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": false},
|
|
9
|
-
{"id": "contributing", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
10
|
-
{"id": "license", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": false},
|
|
11
|
-
{"id": "changelog", "class": "intent-plan", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
12
8
|
{"id": "glossary", "class": "proj-S", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true, "l0_note": "Presence stub with authored zone only; not a fake projection."},
|
|
13
|
-
{"id": "
|
|
14
|
-
{"id": "
|
|
15
|
-
{"id": "dev-setup", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
16
|
-
{"id": "codeowners", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
17
|
-
{"id": "interface-declaration", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": false}
|
|
9
|
+
{"id": "interface-declaration", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": false},
|
|
10
|
+
{"id": "codeowners", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
18
11
|
],
|
|
19
12
|
"archetypes": {
|
|
20
13
|
"product": [
|
|
21
14
|
{"id": "prd", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
22
15
|
{"id": "product-roadmap", "class": "intent-plan", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
23
|
-
{"id": "end-user-docs", "class": "proj-S", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
16
|
+
{"id": "end-user-docs", "class": "proj-S", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
17
|
+
{"id": "service-catalog-ownership", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
18
|
+
{"id": "sbom", "class": "proj-code", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
19
|
+
{"id": "adr-index", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
20
|
+
{"id": "dev-setup", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
21
|
+
{"id": "changelog", "class": "intent-plan", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
24
22
|
],
|
|
25
23
|
"service": [
|
|
26
24
|
{"id": "slo-policy", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
@@ -29,19 +27,35 @@
|
|
|
29
27
|
{"id": "incident-response", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
30
28
|
{"id": "deployment", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
31
29
|
{"id": "env-secrets-inventory", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
32
|
-
{"id": "release-policy", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
30
|
+
{"id": "release-policy", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
31
|
+
{"id": "service-catalog-ownership", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
32
|
+
{"id": "sbom", "class": "proj-code", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
33
|
+
{"id": "adr-index", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
34
|
+
{"id": "dev-setup", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
35
|
+
{"id": "changelog", "class": "intent-plan", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
33
36
|
],
|
|
34
37
|
"library": [
|
|
35
38
|
{"id": "api-spec", "class": "proj-code", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
36
|
-
{"id": "release-policy", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
39
|
+
{"id": "release-policy", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
40
|
+
{"id": "sbom", "class": "proj-code", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
41
|
+
{"id": "adr-index", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
42
|
+
{"id": "dev-setup", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
43
|
+
{"id": "changelog", "class": "intent-plan", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
37
44
|
],
|
|
38
45
|
"infra": [
|
|
39
46
|
{"id": "deployment", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
40
|
-
{"id": "dr-bcp", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
47
|
+
{"id": "dr-bcp", "class": "ops-fact", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
48
|
+
{"id": "service-catalog-ownership", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
49
|
+
{"id": "sbom", "class": "proj-code", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
50
|
+
{"id": "adr-index", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
51
|
+
{"id": "dev-setup", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
41
52
|
],
|
|
42
53
|
"tooling-meta": [
|
|
43
54
|
{"id": "configured-surfaces", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
44
|
-
{"id": "compatibility-policy", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
55
|
+
{"id": "compatibility-policy", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
56
|
+
{"id": "adr-index", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
57
|
+
{"id": "dev-setup", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
58
|
+
{"id": "changelog", "class": "intent-plan", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
45
59
|
],
|
|
46
60
|
"experiment": [
|
|
47
61
|
{"id": "hypothesis", "class": "intent-ground", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
@@ -62,7 +76,9 @@
|
|
|
62
76
|
"public": [
|
|
63
77
|
{"id": "code-of-conduct", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
64
78
|
{"id": "support", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
65
|
-
{"id": "security", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
79
|
+
{"id": "security", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
80
|
+
{"id": "contributing", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true},
|
|
81
|
+
{"id": "license", "class": "static", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": false}
|
|
66
82
|
],
|
|
67
83
|
"regulated": [
|
|
68
84
|
{"id": "compliance-audit-index", "class": "index", "required": true, "maturity_floor": "presence-only", "l0_stub_allowed": true}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"additionalProperties": false,
|
|
14
14
|
"properties": {
|
|
15
15
|
"name": {"type": "string"},
|
|
16
|
-
"version": {"type": "string", "pattern": "^0\\.
|
|
16
|
+
"version": {"type": "string", "pattern": "^0\\.3\\.\\d+$"}
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"repo_contract_version": {"type": "string", "pattern": "^0\\.
|
|
19
|
+
"repo_contract_version": {"type": "string", "pattern": "^0\\.3\\.\\d+$"},
|
|
20
20
|
"consumer": {"type": "object"},
|
|
21
21
|
"compatibility": {"enum": ["compatible", "negotiated", "incompatible", "unknown"]},
|
|
22
22
|
"maturity": {"enum": ["presence-only", "hash-checked", "realized-edge-observed"]},
|
|
@@ -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\\.3\\.\\d+$"},
|
|
11
11
|
"repo": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"required": ["id", "display_name", "default_branch"],
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"type": "boolean",
|
|
76
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
77
|
},
|
|
78
|
-
"contract_version": {"type": "string", "pattern": "^0\\.
|
|
78
|
+
"contract_version": {"type": "string", "pattern": "^0\\.3\\.\\d+$"},
|
|
79
79
|
"archetype": {"enum": ["product", "service", "library", "infra", "tooling-meta", "experiment", "document", "baseline-only"]},
|
|
80
80
|
"adopted_scope": {
|
|
81
81
|
"type": "array",
|
|
@@ -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.3.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.3.0 <0.4.0"},
|
|
17
|
+
"package": {"const": ">=0.3.0 <0.4.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.3.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.3.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.3.0";
|
|
7
7
|
|
|
8
8
|
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
9
9
|
|