@consiliency/contract 0.6.1 → 0.6.2
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contract_id": "consiliency.contract.v1",
|
|
3
|
-
"contract_version": "0.6.
|
|
3
|
+
"contract_version": "0.6.2",
|
|
4
4
|
"package_names": {
|
|
5
5
|
"npm": "@consiliency/contract",
|
|
6
6
|
"pypi": "consiliency-contract"
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
"summary": "Normative Consiliency Phase-0 L0 contract data for .consiliency layout, document requirements, interface declarations, loop gates, canonical_html.v1, version skew, adoption + governance-scoping (CS-0.12), and lease + inbox coordination (CS-0.10b).",
|
|
9
9
|
"phase_posture": {
|
|
10
10
|
"phase": "CS-0.12",
|
|
11
|
-
"content_phases": [
|
|
11
|
+
"content_phases": [
|
|
12
|
+
"CS-0.2",
|
|
13
|
+
"CS-0.10b",
|
|
14
|
+
"CS-0.12"
|
|
15
|
+
],
|
|
12
16
|
"level": "L0",
|
|
13
17
|
"default_gate_severity": "warn",
|
|
14
18
|
"certified_claims_allowed": false,
|
|
@@ -41,7 +45,8 @@
|
|
|
41
45
|
"maturity_labels": "core/registries/maturity-labels.json",
|
|
42
46
|
"default_ignore_set": "core/registries/default-ignore-set.json",
|
|
43
47
|
"pipeline_ref_classes": "core/registries/pipeline-ref-classes.json",
|
|
44
|
-
"authority_key_registry": "core/registries/authority-key-registry.json"
|
|
48
|
+
"authority_key_registry": "core/registries/authority-key-registry.json",
|
|
49
|
+
"gate_posture_registry": "core/registries/gate-posture-registry.json"
|
|
45
50
|
},
|
|
46
51
|
"protocols": {
|
|
47
52
|
"loop_gate": "core/schemas/loop-gate-protocol.schema.json",
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "consiliency.gate_posture_registry.v1",
|
|
3
|
+
"$comment": "RETRACTABLE TEETH -- per-finding-class enforcement posture with non-retractable floors. Advisory panel (Fable + Codex 5.5 + Gemini 3.1 Pro) unanimously required the floors to live here, in the merge-gated contract (mirroring authority-key-registry.json), never in per-host operator env. The operator's off|warn|hard is the MASTER block switch, NOT a per-class posture layer. FORWARD-DECLARED: never_delete_human_refs has no scan emitter yet (git_discipline evaluates only write_footprint_violation + pipeline_branch_naming_drift today) -- its enforce floor is reserved for when an emitter lands; so no migrated gate hard-blocks by DEFAULT today. Posture rungs: observe < warn < enforce. A finding at `observe` is RECORDED as a note (never warns, never blocks); `warn` surfaces as a warning (never blocks); `enforce` MAY block, but ONLY under the operator's `PHASE_LOOP_CONSILIENCY_GATES=hard` master switch (`human_required` is NEVER set regardless of posture). Resolution: effective = clamp(min_posture, max_posture, layered(default_posture, per_repo_override)); a per-repo manifest override may RAISE any class freely and LOWER only to (never below) its `min_posture`. `invariant` classes protect humans or the audit/authority chain and carry a real floor; `advisory` classes are freely retractable to observe. Any per-repo downward move additionally emits the non-retractable `posture_retracted` note so de-fanging is always fleet-visible.",
|
|
4
|
+
"postures": [
|
|
5
|
+
"observe",
|
|
6
|
+
"warn",
|
|
7
|
+
"enforce"
|
|
8
|
+
],
|
|
9
|
+
"categories": [
|
|
10
|
+
"invariant",
|
|
11
|
+
"advisory"
|
|
12
|
+
],
|
|
13
|
+
"default_unlisted": {
|
|
14
|
+
"category": "advisory",
|
|
15
|
+
"default_posture": "warn",
|
|
16
|
+
"min_posture": "observe"
|
|
17
|
+
},
|
|
18
|
+
"finding_classes": [
|
|
19
|
+
{
|
|
20
|
+
"code": "never_delete_human_refs",
|
|
21
|
+
"gate": "git_discipline",
|
|
22
|
+
"category": "invariant",
|
|
23
|
+
"default_posture": "enforce",
|
|
24
|
+
"min_posture": "enforce",
|
|
25
|
+
"description": "RESERVED/forward-declared: protects human authority over their own refs. No scan emitter exists yet (git_discipline emits only write_footprint_violation + pipeline_branch_naming_drift); the enforce floor takes effect once an emitter lands. Non-retractable (min == enforce); blocks only under operator hard mode."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"code": "write_footprint_violation",
|
|
29
|
+
"gate": "git_discipline",
|
|
30
|
+
"category": "invariant",
|
|
31
|
+
"default_posture": "warn",
|
|
32
|
+
"min_posture": "warn",
|
|
33
|
+
"description": "A write outside the contract's git-discipline write-footprint allowlist. Floored at warn -- a repo may sharpen to enforce but never silence to observe."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"code": "pipeline_branch_naming_drift",
|
|
37
|
+
"gate": "git_discipline",
|
|
38
|
+
"category": "advisory",
|
|
39
|
+
"default_posture": "observe",
|
|
40
|
+
"min_posture": "observe",
|
|
41
|
+
"description": "A pipeline-family branch drifts from its required naming. Cosmetic -- freely retractable; migrates git_discipline's hardcoded note-not-warning posture."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "hash_drift",
|
|
45
|
+
"gate": "local_integrity",
|
|
46
|
+
"category": "invariant",
|
|
47
|
+
"default_posture": "warn",
|
|
48
|
+
"min_posture": "warn",
|
|
49
|
+
"description": "A hash-checked document's committed digest no longer matches its recorded snapshot -- an audit-chain integrity signal. Floored at warn."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"code": "version_skew",
|
|
53
|
+
"gate": "version_skew",
|
|
54
|
+
"category": "advisory",
|
|
55
|
+
"default_posture": "warn",
|
|
56
|
+
"min_posture": "observe",
|
|
57
|
+
"max_posture": "warn",
|
|
58
|
+
"description": "Repo-declared contract_version vs the installed package. The version-skew protocol's phase0 severity is a normative const `warn`, so this class is CAPPED at warn (max_posture) as well as freely retractable -- migrates the hardcoded capped_warn special case."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"code": "spec_nonconforming",
|
|
62
|
+
"gate": "spec_conformance",
|
|
63
|
+
"category": "advisory",
|
|
64
|
+
"default_posture": "warn",
|
|
65
|
+
"min_posture": "observe",
|
|
66
|
+
"description": "A spec-projection declares present-nonconforming. Loud by default but retractable -- conformance is a nudge, not a human/audit invariant."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "spec_below_conformance_bar",
|
|
70
|
+
"gate": "spec_conformance",
|
|
71
|
+
"category": "advisory",
|
|
72
|
+
"default_posture": "observe",
|
|
73
|
+
"min_posture": "observe",
|
|
74
|
+
"description": "A non-sanctioned presence-only spec-projection below the hash-checked bar. Info nudge -- migrates HGATE's hardcoded info tier."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"code": "spec_below_declared_floor",
|
|
78
|
+
"gate": "spec_conformance",
|
|
79
|
+
"category": "advisory",
|
|
80
|
+
"default_posture": "warn",
|
|
81
|
+
"min_posture": "observe",
|
|
82
|
+
"description": "A spec-projection sits BELOW its own contract-declared maturity_floor -- a real regression; advisory warn, raisable to enforce."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"code": "spec_maturity_missing",
|
|
86
|
+
"gate": "spec_conformance",
|
|
87
|
+
"category": "advisory",
|
|
88
|
+
"default_posture": "warn",
|
|
89
|
+
"min_posture": "observe",
|
|
90
|
+
"description": "A spec-projection declares no maturity. Advisory warn."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"code": "spec_maturity_unknown",
|
|
94
|
+
"gate": "spec_conformance",
|
|
95
|
+
"category": "advisory",
|
|
96
|
+
"default_posture": "warn",
|
|
97
|
+
"min_posture": "observe",
|
|
98
|
+
"description": "A spec-projection declares an unrecognized maturity label. Advisory warn."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"code": "spec_ungoverned",
|
|
102
|
+
"gate": "spec_conformance",
|
|
103
|
+
"category": "advisory",
|
|
104
|
+
"default_posture": "warn",
|
|
105
|
+
"min_posture": "observe",
|
|
106
|
+
"description": "A spec-projection declares a governance-status label (foreign/unmanaged) -- not this repo's / ungoverned. Advisory warn."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"code": "no_local_snapshot",
|
|
110
|
+
"gate": "local_integrity",
|
|
111
|
+
"category": "advisory",
|
|
112
|
+
"default_posture": "warn",
|
|
113
|
+
"min_posture": "observe",
|
|
114
|
+
"description": "A hash-checked doc has no recorded integrity snapshot yet. Advisory warn."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"code": "unreadable_git_blob",
|
|
118
|
+
"gate": "local_integrity",
|
|
119
|
+
"category": "advisory",
|
|
120
|
+
"default_posture": "warn",
|
|
121
|
+
"min_posture": "observe",
|
|
122
|
+
"description": "A hash-checked doc's committed blob could not be read. Advisory warn."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "posture_retracted",
|
|
126
|
+
"gate": "*",
|
|
127
|
+
"category": "invariant",
|
|
128
|
+
"default_posture": "warn",
|
|
129
|
+
"min_posture": "warn",
|
|
130
|
+
"description": "META: a per-repo override lowered some finding-class below its contract default. NON-RETRACTABLE (min == default == warn) so de-fanging is always fleet-visible -- a repo cannot retract the retraction notice itself. Carries the retracted class + actor/reason/timestamp metadata when present."
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
@@ -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.2"},
|
|
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."
|
|
@@ -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.2"},
|
|
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.2",
|
|
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.2";
|
|
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.2";
|
|
7
7
|
|
|
8
8
|
export {
|
|
9
9
|
AuthorityCanonicalError,
|