@consiliency/contract 0.6.4 → 0.7.1
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 +50 -2
- package/conformance/registries/authority-key-registry.test.json +48 -0
- package/conformance/vectors/authority-algorithm-confusion.json +1 -1
- package/conformance/vectors/authority-bad-signature.json +1 -1
- package/conformance/vectors/authority-cert-digest-mismatch.json +1 -1
- package/conformance/vectors/authority-chain-appended-still-verifies.json +1 -1
- package/conformance/vectors/authority-core-validity-expired.json +1 -1
- package/conformance/vectors/authority-forged-self-minted.json +1 -1
- package/conformance/vectors/authority-key-expired.json +1 -1
- package/conformance/vectors/authority-key-revoked.json +1 -1
- package/conformance/vectors/authority-missing-signature.json +1 -1
- package/conformance/vectors/authority-signer-approver-mismatch.json +1 -1
- package/conformance/vectors/authority-unknown-key-id.json +1 -1
- package/conformance/vectors/authority-valid.json +1 -1
- package/conformance/vectors/authority-wrong-key-valid-id.json +1 -1
- package/core/authority-canon/provenance.json +1 -1
- package/core/contract.json +24 -4
- package/core/registries/authority-key-registry.json +3 -3
- package/core/registries/protected-source-categories.json +86 -0
- package/core/schemas/git-discipline-protocol.schema.json +1 -1
- package/core/schemas/protected-source-category.schema.json +29 -0
- package/core/schemas/version-skew-protocol.schema.json +3 -3
- package/core/supervised-run/admitted-launch-envelope.schema.json +226 -0
- package/core/supervised-run/admitted-launch-envelope.v2.schema.json +880 -0
- package/core/supervised-run/conformance/README.md +55 -0
- package/core/supervised-run/conformance/README.v2.md +297 -0
- package/core/supervised-run/conformance/SHA256SUMS +10 -0
- package/core/supervised-run/conformance/envelope.v2.apply.vectors.json +1938 -0
- package/core/supervised-run/conformance/envelope.v2.canonical.vectors.json +2088 -0
- package/core/supervised-run/conformance/envelope.v2.vectors.json +16359 -0
- package/core/supervised-run/conformance/envelope.vectors.json +557 -0
- package/core/supervised-run/conformance/run-status.vectors.json +2150 -0
- package/core/supervised-run/provenance.json +116 -0
- package/core/supervised-run/run-status.schema.json +768 -0
- package/package.json +1 -1
- package/src/index.d.ts +3 -1
- package/src/index.js +8 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "consiliency.supervised_run_provenance.v1",
|
|
3
|
+
"$comment": "The admitted_launch_envelope.v1 and supervised_run_status.v1 schemas and their conformance vectors are DISTRIBUTED verbatim from the spec repo, where the contract was authored and reviewed; they are frozen, and source sha == shipped sha (normative_source). admitted_launch_envelope.v2 is AUTHORED in this repository, alongside v1, and pinned in authored_here. conformance/SHA256SUMS is the contract's own manifest (paths relative to conformance/): its first five lines are the v1 source manifest byte for byte (distributed.manifest.v1_prefix), followed by one line per v2 file. The contract test suites re-check every digest, so any payload byte change fails them.",
|
|
4
|
+
"contract_ids": [
|
|
5
|
+
"admitted_launch_envelope.v1",
|
|
6
|
+
"supervised_run_status.v1",
|
|
7
|
+
"admitted_launch_envelope.v2"
|
|
8
|
+
],
|
|
9
|
+
"status": "provisional",
|
|
10
|
+
"normative_source": {
|
|
11
|
+
"repo": "spec",
|
|
12
|
+
"spec_commit": "c0215fd6686d6fbaf6ff557c54e56c509e7e268c",
|
|
13
|
+
"files": {
|
|
14
|
+
"admitted-launch-envelope.schema.json": "0273f7a5d80eab95ee84660cd657445e881431bca3b8f91cec61015a5d39d41d",
|
|
15
|
+
"run-status.schema.json": "5118c1ab8604e85990150d66bf6b8c1af979dcc404fc84ee5a3c4ba4fead9a30",
|
|
16
|
+
"conformance/README.md": "2d5045245105af88f1f45f720aa8bc3f366efc95c25e25a9c50e402a175533ca",
|
|
17
|
+
"conformance/envelope.vectors.json": "876d322c313b444e49d7a95ee8f7ca39eef13c45864c67a0b3877235e1db6d7f",
|
|
18
|
+
"conformance/run-status.vectors.json": "5bf9dfbf65805f7340290586d546038fc88659785e60e2f55532df4ac6696730"
|
|
19
|
+
},
|
|
20
|
+
"manifest": {
|
|
21
|
+
"path": "conformance/SHA256SUMS",
|
|
22
|
+
"sha256": "b9c2dad7ca32d32b9860e56c2e14141827955a50b52a54c8088760d9756e1285"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"authored_here": {
|
|
26
|
+
"$comment": "Authored and reviewed in this repository; not copied from another source. Harness-neutral and language-neutral, like v1.",
|
|
27
|
+
"contract_ids": [
|
|
28
|
+
"admitted_launch_envelope.v2"
|
|
29
|
+
],
|
|
30
|
+
"files": {
|
|
31
|
+
"admitted-launch-envelope.v2.schema.json": "6d6b2f89c55d160c2c132c29b3aa330a0a91c40ab017707040478a60b469194f",
|
|
32
|
+
"conformance/README.v2.md": "c6ab5d9da4707adf5dad9602b483b201a2dfe89f638ecba84129e0c477d72637",
|
|
33
|
+
"conformance/envelope.v2.vectors.json": "e742d2774d410c2508405eaffed84575b992483da68c07f28591097d6ec5bc2f",
|
|
34
|
+
"conformance/envelope.v2.canonical.vectors.json": "f7f11c7667d12b0c876102781fdd5773074f5301f152a6d18be509894bc0e8f8",
|
|
35
|
+
"conformance/envelope.v2.apply.vectors.json": "57e0fd4d2e88c75bb8dfbab94448431ca3c752f6444febf1bd492323b044c078"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"distributed": {
|
|
39
|
+
"root": "core/supervised-run",
|
|
40
|
+
"files": {
|
|
41
|
+
"admitted-launch-envelope.schema.json": "0273f7a5d80eab95ee84660cd657445e881431bca3b8f91cec61015a5d39d41d",
|
|
42
|
+
"run-status.schema.json": "5118c1ab8604e85990150d66bf6b8c1af979dcc404fc84ee5a3c4ba4fead9a30",
|
|
43
|
+
"conformance/README.md": "2d5045245105af88f1f45f720aa8bc3f366efc95c25e25a9c50e402a175533ca",
|
|
44
|
+
"conformance/envelope.vectors.json": "876d322c313b444e49d7a95ee8f7ca39eef13c45864c67a0b3877235e1db6d7f",
|
|
45
|
+
"conformance/run-status.vectors.json": "5bf9dfbf65805f7340290586d546038fc88659785e60e2f55532df4ac6696730",
|
|
46
|
+
"admitted-launch-envelope.v2.schema.json": "6d6b2f89c55d160c2c132c29b3aa330a0a91c40ab017707040478a60b469194f",
|
|
47
|
+
"conformance/README.v2.md": "c6ab5d9da4707adf5dad9602b483b201a2dfe89f638ecba84129e0c477d72637",
|
|
48
|
+
"conformance/envelope.v2.vectors.json": "e742d2774d410c2508405eaffed84575b992483da68c07f28591097d6ec5bc2f",
|
|
49
|
+
"conformance/envelope.v2.canonical.vectors.json": "f7f11c7667d12b0c876102781fdd5773074f5301f152a6d18be509894bc0e8f8",
|
|
50
|
+
"conformance/envelope.v2.apply.vectors.json": "57e0fd4d2e88c75bb8dfbab94448431ca3c752f6444febf1bd492323b044c078"
|
|
51
|
+
},
|
|
52
|
+
"manifest": {
|
|
53
|
+
"path": "conformance/SHA256SUMS",
|
|
54
|
+
"sha256": "48904c259e4a1c24d3e841f56b6c2a84ce2cff32014cf573b3e41b34fac1f1fc",
|
|
55
|
+
"v1_prefix": {
|
|
56
|
+
"lines": 5,
|
|
57
|
+
"sha256": "b9c2dad7ca32d32b9860e56c2e14141827955a50b52a54c8088760d9756e1285"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"schemas": {
|
|
61
|
+
"admitted_launch_envelope": {
|
|
62
|
+
"path": "core/supervised-run/admitted-launch-envelope.schema.json",
|
|
63
|
+
"schema_id": "urn:contract:admitted_launch_envelope.v1"
|
|
64
|
+
},
|
|
65
|
+
"supervised_run_status": {
|
|
66
|
+
"path": "core/supervised-run/run-status.schema.json",
|
|
67
|
+
"schema_id": "urn:contract:supervised_run_status.v1"
|
|
68
|
+
},
|
|
69
|
+
"admitted_launch_envelope_v2": {
|
|
70
|
+
"path": "core/supervised-run/admitted-launch-envelope.v2.schema.json",
|
|
71
|
+
"schema_id": "urn:contract:admitted_launch_envelope.v2"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"vectors": {
|
|
75
|
+
"admitted_launch_envelope": "core/supervised-run/conformance/envelope.vectors.json",
|
|
76
|
+
"supervised_run_status": "core/supervised-run/conformance/run-status.vectors.json",
|
|
77
|
+
"admitted_launch_envelope_v2": "core/supervised-run/conformance/envelope.v2.vectors.json",
|
|
78
|
+
"admitted_launch_envelope_v2_canonical": "core/supervised-run/conformance/envelope.v2.canonical.vectors.json",
|
|
79
|
+
"admitted_launch_envelope_v2_apply": "core/supervised-run/conformance/envelope.v2.apply.vectors.json"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"consumer_reconciliation": {
|
|
83
|
+
"$comment": "Attestation recorded at relocation. The contract is provisional: any change needs reconciliation with every consumer before it ships.",
|
|
84
|
+
"provisional_rule_additions": [
|
|
85
|
+
"attempt_evidence_copied"
|
|
86
|
+
],
|
|
87
|
+
"rule_location": "run-status.schema.json#/x-semantic-rules/attempt_evidence_copied",
|
|
88
|
+
"consumers_reconciled": true
|
|
89
|
+
},
|
|
90
|
+
"v2_consumer_reconciliation": {
|
|
91
|
+
"$comment": "v2 is additive and every v1 byte is unchanged, so existing v1 pins stay valid. Consumers reconcile v2 when they adopt it, against a published commit and per-file sha256.",
|
|
92
|
+
"status": "pending"
|
|
93
|
+
},
|
|
94
|
+
"verification_scope": {
|
|
95
|
+
"$comment": "What this package checks without a reader implementation. Full semantic evaluation of every x-semantic-rules diagnostic needs a conforming reader, which consuming harnesses provide.",
|
|
96
|
+
"checked": [
|
|
97
|
+
"every shipped byte matches the pinned sha256, and conformance/SHA256SUMS matches the shipped files",
|
|
98
|
+
"schema well-formedness: draft 2020-12, local $refs resolve, known keywords only, closed required sets",
|
|
99
|
+
"every expected diagnostic is defined in the matching schema's x-semantic-rules",
|
|
100
|
+
"every control and every patched negative is schema-valid",
|
|
101
|
+
"envelope_digest self-verifies exactly where envelope_digest_mismatch is not expected",
|
|
102
|
+
"journal segment chains of the controls verify",
|
|
103
|
+
"the v1 payload and the five-line v1 manifest prefix match digests pinned in the test suites independently of this file",
|
|
104
|
+
"v2: every control and semantic negative is schema-valid, and every schema_negative fails with exactly its expected (instance_path, keyword) set",
|
|
105
|
+
"v2: independently written Python and JS readings of x-semantic-rules and x-evaluation-order admit every control and refuse every negative with exactly its expected diagnostics and effect, recomputing every launch digest from the case's captured material",
|
|
106
|
+
"v2: RFC 8785 serialization against pinned serializer primitives (RFC 8785 Appendix B), and the v2 input boundary (safe integers through raw and in-memory paths, duplicate and __proto__ members, lone surrogates) against pinned documents, rejects and wrong preimages, identically in both readings",
|
|
107
|
+
"v2: source-tree capture against pinned manifests, unbindable and ancestor-inconsistent captures, and wrong-walk alternates",
|
|
108
|
+
"v2: the write_scope apply check against pinned outcomes and protected state, and runtime journals against the frozen run-status lifecycle",
|
|
109
|
+
"v2: every new launch field, every semantic rule and every review finding has a positive and a negative vector"
|
|
110
|
+
],
|
|
111
|
+
"not_checked": [
|
|
112
|
+
"the remaining semantic diagnostics and expected_effect, which need a conforming reader",
|
|
113
|
+
"v2: a harness's own capture of launch material, its qualification records and evidence, and its apply-time write_scope checker, which need a conforming harness and installed-route qualification"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|