@consiliency/contract 0.6.5 → 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 +39 -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 +21 -3
- package/core/registries/authority-key-registry.json +3 -3
- package/core/schemas/git-discipline-protocol.schema.json +1 -1
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@consiliency/contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
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,9 +1,11 @@
|
|
|
1
1
|
export declare const CONTRACT_PACKAGE: "@consiliency/contract";
|
|
2
|
-
export declare const CONTRACT_VERSION: "0.
|
|
2
|
+
export declare const CONTRACT_VERSION: "0.7.1";
|
|
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>;
|
|
6
6
|
export declare function loadRegistry(name: string): Record<string, unknown>;
|
|
7
|
+
/** TEST-ONLY registries for replaying conformance vectors; never a root of trust. */
|
|
8
|
+
export declare function loadConformanceRegistry(name: string): Record<string, unknown>;
|
|
7
9
|
export declare function listVectors(): string[];
|
|
8
10
|
export declare function loadVector(name: string): Record<string, unknown>;
|
|
9
11
|
|
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.7.1";
|
|
7
7
|
|
|
8
8
|
export {
|
|
9
9
|
AuthorityCanonicalError,
|
|
@@ -41,6 +41,13 @@ export function loadRegistry(name) {
|
|
|
41
41
|
return readJson(assertKnown(CONTRACT.registries, name, "registry"));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
// TEST-ONLY registries that conformance vectors verify against
|
|
45
|
+
// (contract.json `conformance.registries`). Never a root of trust, and
|
|
46
|
+
// deliberately unreachable through loadRegistry.
|
|
47
|
+
export function loadConformanceRegistry(name) {
|
|
48
|
+
return readJson(assertKnown(CONTRACT.conformance.registries || {}, name, "conformance registry"));
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
export function listVectors() {
|
|
45
52
|
return readdirSync(join(packageRoot, CONTRACT.conformance.vector_root))
|
|
46
53
|
.filter((name) => name.endsWith(".json"))
|