@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/README.md
CHANGED
|
@@ -14,12 +14,47 @@ The Consiliency cross-repo **contract package** — the single, neutral rulebook
|
|
|
14
14
|
- **lease + inbox coordination (CS-0.10b)** — the `lease` (TTL + heartbeat + auto-expiry, soft/hard, repo/path-set/symbol scope), the append-only `lease_event` stream, the `lease_store` protocol (sole source of truth) and the `coordination_channel` inbox protocol (never authoritative)
|
|
15
15
|
- **projection discovery + git-discipline (Slice C0)** — the `projections.index.v1` schema (a deterministic pure-merge index of per-artifact projection manifests, no `generated_at`, so every driver reproduces byte-identical entries), the `git_discipline_protocol` (pipeline-owned ref classes, lease + write-footprint, merge policy, and the **NEVER-DELETE-HUMAN-REFS** invariant as a schema-level rule), and the `pipeline_ref_classes` registry both runtimes read to agree on ref ownership
|
|
16
16
|
- **interchangeability conformance (Slice X)** — `scripts/interchangeability/run_driver_equivalence.py` proves the pure-merge claim above isn't just asserted by this package's own reference mergers: it feeds the `projections-index-pure-merge-deterministic` vector through the real `spec-render/build_projections_index.py` producer and asserts byte-identical output, honestly scoped (see `scripts/interchangeability/README.md`)
|
|
17
|
-
- **authority-event contract core (XG-1 Slice 1)** — the single, cryptographically-authenticated `authority_event_protocol.v1` schema with the **core/chain signing split** (Portal signs the slot-independent `core`; spec appends `chain` OUTSIDE the signature and never re-signs), one **canonical-bytes algorithm** implementable in dependency-free JS on Node 20 (see [`docs/design/authority-event-canonical-bytes.md`](docs/design/authority-event-canonical-bytes.md)), the vendored digest-pinned `authority_key_registry.v1` **Ed25519 root of trust** (public keys only), an Ed25519 verify reference in both readers, and 13 conformance vectors — a valid event VERIFIES in both readers and every forgery class (bad/missing signature, unknown/attacker key_id, algorithm-confusion, signer↔approver mismatch, revoked/expired key, cert_digest mismatch) REJECTS
|
|
17
|
+
- **authority-event contract core (XG-1 Slice 1)** — the single, cryptographically-authenticated `authority_event_protocol.v1` schema with the **core/chain signing split** (Portal signs the slot-independent `core`; spec appends `chain` OUTSIDE the signature and never re-signs), one **canonical-bytes algorithm** implementable in dependency-free JS on Node 20 (see [`docs/design/authority-event-canonical-bytes.md`](docs/design/authority-event-canonical-bytes.md)), the vendored digest-pinned `authority_key_registry.v1` **Ed25519 root of trust** (public keys only), an Ed25519 verify reference in both readers, and 13 conformance vectors (replayed against the test-only `conformance/registries/authority-key-registry.test.json`, never the production registry) — a valid event VERIFIES in both readers and every forgery class (bad/missing signature, unknown/attacker key_id, algorithm-confusion, signer↔approver mismatch, revoked/expired key, cert_digest mismatch) REJECTS
|
|
18
18
|
- **the certified label rescope (CS-1.4, XG-1 Slice 5)** — splits the single `certified` evidence label into `parity-certified` (byte-reproducible parity cert, no authority event — what CS proj-S certification ships today) and `authority-certified` (parity PLUS a verified, human-ratified authority event — reserved until the XG-1 authority loop lands end-to-end); `certified` survives only as a deprecated alias of `parity-certified`, never `authority-certified`, so existing producers/consumers keep validating (see [`docs/design/CS-1.4-certified-label-rescope.md`](docs/design/CS-1.4-certified-label-rescope.md))
|
|
19
|
+
- **supervised-run status + admitted-launch envelope (provisional)** — a neutral (harness- and language-neutral) contract that harnesses consume later: `admitted_launch_envelope.v1` (what a harness receives after admission, its fixed enforcement tiers and the refusals that happen before any process starts) and `supervised_run_status.v1` (the per-attempt append-only run journal, its derived projection, bounded pages and the reader view, which keeps runtime state apart from work outcome and evidence). Both schemas and their golden control/negative conformance vectors live in [`core/supervised-run/`](core/supervised-run/), shipped byte-for-byte and digest-pinned in `core/supervised-run/provenance.json`; `conformance/SHA256SUMS` there is the contract's own manifest. See [`core/supervised-run/conformance/README.md`](core/supervised-run/conformance/README.md) for how to read a vector
|
|
20
|
+
- **admitted-launch envelope v2 (provisional)** — `admitted_launch_envelope.v2`, published alongside the frozen v1 (every v1 byte unchanged). It keeps every v1 field and adds a required, closed `launch` block that binds, by digest or logical locator, every input that determines the launch: instruction and ordered reference bytes from the workspace, a declared root or a descriptor; the argument vector of the outermost spawn (SHA-256 of its UTF-8 RFC 8785 array); the ordered wrapper-and-executable chain; the captured source tree (including overlays), the worker cwd and the target map; a credential-safe environment commitment (non-secret values plus secret names, never secret values); the trusted configuration, template and qualification digests; action, route and stdin delivery; the stopping policy (`timeout_seconds`, 1–3600); and optional grants, each with an explicit canonical form. Every launch-side commitment must agree with the captured material it describes. Admission needs exactly one validator-held qualification record for the route, and unqualified means refused. Interactive terminal delivery is out of scope. Conformance covers admission (including exact schema-error sets), RFC 8785 and source-tree capture, and the write_scope apply check with its runtime journals; see [`core/supervised-run/conformance/README.v2.md`](core/supervised-run/conformance/README.v2.md)
|
|
19
21
|
|
|
20
22
|
Dual-published: **npm** [`@consiliency/contract`](https://www.npmjs.com/package/@consiliency/contract) + **PyPI** [`consiliency-contract`](https://pypi.org/project/consiliency-contract/), from shared JSON data + conformance vectors so the two language readers stay byte-identical.
|
|
21
23
|
|
|
22
|
-
> **Status — `0.
|
|
24
|
+
> **Status — `0.7.1` retires the deterministic conformance fixture key from the
|
|
25
|
+
> production trust registry. `portal-authority-ed25519-v1` (and the other
|
|
26
|
+
> fixture key_ids) are now `revoked: true` in
|
|
27
|
+
> `core/registries/authority-key-registry.json`; the production signer
|
|
28
|
+
> `portal-authority-ed25519-prod-v1` is unchanged. The authority conformance
|
|
29
|
+
> vectors now verify against a separate test-only registry,
|
|
30
|
+
> `conformance/registries/authority-key-registry.test.json` (loaded with
|
|
31
|
+
> `loadConformanceRegistry` / `load_conformance_registry`, never a root of
|
|
32
|
+
> trust), and each vector's `input.registry` names `authority_key_registry_test`.
|
|
33
|
+
> Consumers that vendor the registry re-vendor it; consumers that replay the
|
|
34
|
+
> authority vectors verify them against the test-only registry. Replaying the
|
|
35
|
+
> vectors against the production registry now rejects the valid vector
|
|
36
|
+
> (`key_revoked`). No schema or
|
|
37
|
+
> verifier change; the version-skew window stays `>=0.7.0 <0.8.0`.
|
|
38
|
+
> `0.7.0` adds the provisional `admitted_launch_envelope.v2`
|
|
39
|
+
> (`core/supervised-run/admitted-launch-envelope.v2.schema.json`, with
|
|
40
|
+
> `conformance/envelope.v2.vectors.json` and `conformance/README.v2.md`) next to
|
|
41
|
+
> the frozen v1: no v1 schema, vector or README byte changes, and the v1
|
|
42
|
+
> manifest stays verbatim as the first five lines of `conformance/SHA256SUMS`.
|
|
43
|
+
> v2 binds every launch-determining input in a required `launch` block, keeps
|
|
44
|
+
> secret values out of every commitment, and states that a tier describes
|
|
45
|
+
> semantics, not installed-tool qualification.
|
|
46
|
+
> Minor bump: the version-skew compatibility window moves to `>=0.7.0 <0.8.0`.
|
|
47
|
+
> v2 consumers reconcile at adoption.
|
|
48
|
+
> `0.6.6` distributes the provisional supervised-run status and
|
|
49
|
+
> admitted-launch-envelope contract (`admitted_launch_envelope.v1`,
|
|
50
|
+
> `supervised_run_status.v1`) with its conformance vectors under
|
|
51
|
+
> `core/supervised-run/`, verbatim and digest-pinned, for harnesses to consume
|
|
52
|
+
> later. Additive only: no existing schema semantics change. Consumers were
|
|
53
|
+
> reconciled for the one provisional rule added before relocation
|
|
54
|
+
> (`attempt_evidence_copied`: a later attempt never repeats an earlier attempt's
|
|
55
|
+
> evidence-envelope digest). Any further change to this provisional contract
|
|
56
|
+
> needs reconciliation with every consumer.
|
|
57
|
+
> `0.6.5` defines the canonical `protected_source_category`
|
|
23
58
|
> vocabulary (the protocol's first producer↔consumer conformance boundary) as a
|
|
24
59
|
> two-level scheme: a required coarse `category` (seven execution-flow buckets —
|
|
25
60
|
> the pre-existing six plus a new `governance_contracts` bucket for producer-side
|
|
@@ -75,6 +110,7 @@ import {
|
|
|
75
110
|
CONTRACT,
|
|
76
111
|
CONTRACT_VERSION,
|
|
77
112
|
listVectors,
|
|
113
|
+
loadConformanceRegistry, // test-only registries for replaying vectors
|
|
78
114
|
loadContract,
|
|
79
115
|
loadRegistry,
|
|
80
116
|
loadSchema,
|
|
@@ -92,6 +128,7 @@ from consiliency_contract import (
|
|
|
92
128
|
CONTRACT,
|
|
93
129
|
CONTRACT_VERSION,
|
|
94
130
|
list_vectors,
|
|
131
|
+
load_conformance_registry, # test-only registries for replaying vectors
|
|
95
132
|
load_contract,
|
|
96
133
|
load_registry,
|
|
97
134
|
load_schema,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "consiliency.authority_key_registry.v1",
|
|
3
|
+
"$comment": "TEST-ONLY. The registry the authority conformance vectors verify against. It is NEVER a root of trust: no production verifier may load it. It holds only conformance fixture keys; the production root of trust is core/registries/authority-key-registry.json, which lists these key_ids as revoked.",
|
|
4
|
+
"test_only": true,
|
|
5
|
+
"rotation": {
|
|
6
|
+
"policy": "Add a new key_id with its own validity window; overlap windows to roll signers. Never reuse a retired key_id.",
|
|
7
|
+
"identity_binding": "A key_id is bound to exactly one approver identity; a signature verifies only if core.approver == the key's registered approver."
|
|
8
|
+
},
|
|
9
|
+
"revocation": {
|
|
10
|
+
"policy": "Set revoked:true (or let validity lapse) to retire a key_id. A revoked or out-of-window key fails verification regardless of an otherwise-valid signature.",
|
|
11
|
+
"irreversible": true
|
|
12
|
+
},
|
|
13
|
+
"keys": [
|
|
14
|
+
{
|
|
15
|
+
"key_id": "portal-authority-ed25519-v1",
|
|
16
|
+
"scheme": "ed25519",
|
|
17
|
+
"public_key": "119836c4adf9da9ad3049d42da2dc126f82a43d8a0c6da9189c536e8fa7f40d3",
|
|
18
|
+
"approver": "consiliency:portal:governance",
|
|
19
|
+
"validity": {
|
|
20
|
+
"not_before": "2026-01-01T00:00:00Z",
|
|
21
|
+
"not_after": "2027-01-01T00:00:00Z"
|
|
22
|
+
},
|
|
23
|
+
"revoked": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key_id": "portal-authority-ed25519-rotated-out",
|
|
27
|
+
"scheme": "ed25519",
|
|
28
|
+
"public_key": "525ca9174d568e5ac9f1209de27e0483dcf3eb766dc9ce3ba123ff538508a17d",
|
|
29
|
+
"approver": "consiliency:portal:governance",
|
|
30
|
+
"validity": {
|
|
31
|
+
"not_before": "2026-01-01T00:00:00Z",
|
|
32
|
+
"not_after": "2027-01-01T00:00:00Z"
|
|
33
|
+
},
|
|
34
|
+
"revoked": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key_id": "portal-authority-ed25519-expired",
|
|
38
|
+
"scheme": "ed25519",
|
|
39
|
+
"public_key": "6db198ca668218d6c0782ba4baccfed834b4c7805bd6e205d4b0747ef0327e9a",
|
|
40
|
+
"approver": "consiliency:portal:governance",
|
|
41
|
+
"validity": {
|
|
42
|
+
"not_before": "2025-01-01T00:00:00Z",
|
|
43
|
+
"not_after": "2025-06-01T00:00:00Z"
|
|
44
|
+
},
|
|
45
|
+
"revoked": false
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "The event self-declares signature.scheme=hmac-sha256 while the registry key is ed25519 -> REJECT (algorithm_confusion). Verification trusts the REGISTRY scheme, never the event's. Schema-invalid (signature.scheme const is ed25519).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A well-formed event whose signature bytes were altered -> REJECT (bad_signature).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A valid event for one cert must NOT ratify a DIFFERENT cert (N4). core.cert_digest is validly signed, but the presented cert's digest differs -> REJECT (cert_digest_mismatch).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "a6191cebaa8e6ab6dc938c3d981befaa15c4f21295bc1fa493b56efd4f51369a",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "The SAME valid event with spec's ledger `chain` block appended (entry/previous/root digests + inclusion proof). Because the signature covers only the core, the appended chain does NOT invalidate it -> still VERIFIES. Separation-of-powers: spec appends without re-signing.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A valid signature by a current key, but the event's own validity window ended before `now` -> REJECT (core_validity_expired).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032352d30362d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032352d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "THE EXPLOIT: an attacker mints an event with their own key_id, own approver, own decision_id, and signs it with their own key (zero Portal). The keyless digest stack ACCEPTED this; the real signature stack REJECTs it because attacker-key-001 is not in the pinned registry (unknown_key_id).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a2261747461636b65723a73656c662d617070726f766564222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2261747461636b65722d6465636973696f6e2d39393939222c226576656e745f74797065223a22726174696679222c226b65795f6964223a2261747461636b65722d6b65792d303031222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A valid signature by a key whose registry validity window ended before `now` -> REJECT (key_expired).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d65787069726564222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A valid signature by a key the registry marks revoked:true -> REJECT (key_revoked) despite the signature verifying.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d726f74617465642d6f7574222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "An event with no signature block -> REJECT (missing_signature). Schema-invalid (signature required).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A cryptographically-valid signature by the real portal key, but core.approver does not match the approver the key is registered to -> REJECT (signer_approver_mismatch). Amendment #4: signer==approver is a key-binding-in-registry check.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a2261747461636b65723a73656c662d617070726f766564222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "core.key_id references a key that is not present in the registry -> REJECT (unknown_key_id).",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7639222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A Portal-signed authority event with a valid Ed25519 signature over the canonical core, in-window, approver bound to the signing key, and cert_digest matching the cert -> VERIFIES.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "core.key_id names a real registered key, but the signature was produced by a DIFFERENT (attacker) private key -> REJECT (bad_signature): the registry pubkey does not verify the attacker signature.",
|
|
4
4
|
"input": {
|
|
5
5
|
"schema": "consiliency.authority_verification_scenario.v1",
|
|
6
|
-
"registry": "
|
|
6
|
+
"registry": "authority_key_registry_test",
|
|
7
7
|
"now": "2026-07-03T12:00:00Z",
|
|
8
8
|
"expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
|
|
9
9
|
"canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"canon_version": "spec-canon:v2",
|
|
5
5
|
"normative_source": {
|
|
6
6
|
"repo": "spec",
|
|
7
|
-
"spec_commit": "
|
|
7
|
+
"spec_commit": "a18a55495c80cb4d1f8693c1261130ed5a4d5bc1",
|
|
8
8
|
"files": {
|
|
9
9
|
"canon/py/canon.py": "c07bbe85508f36ce53d0d859dce42f607382b3ccacca138d07389dc8fe1765c1",
|
|
10
10
|
"canon/ts/canon.ts": "0ccfb5b3fda31afd8bf887648bd0181916d138c1acec6bc5e912b3cfb155fa21",
|
package/core/contract.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contract_id": "consiliency.contract.v1",
|
|
3
|
-
"contract_version": "0.
|
|
3
|
+
"contract_version": "0.7.1",
|
|
4
4
|
"package_names": {
|
|
5
5
|
"npm": "@consiliency/contract",
|
|
6
6
|
"pypi": "consiliency-contract"
|
|
@@ -39,7 +39,10 @@
|
|
|
39
39
|
"authority_event_protocol": "core/schemas/authority-event-protocol.schema.json",
|
|
40
40
|
"certificate": "core/schemas/certificate.schema.json",
|
|
41
41
|
"result_state": "core/schemas/result-state.schema.json",
|
|
42
|
-
"protected_source_category": "core/schemas/protected-source-category.schema.json"
|
|
42
|
+
"protected_source_category": "core/schemas/protected-source-category.schema.json",
|
|
43
|
+
"admitted_launch_envelope": "core/supervised-run/admitted-launch-envelope.schema.json",
|
|
44
|
+
"supervised_run_status": "core/supervised-run/run-status.schema.json",
|
|
45
|
+
"admitted_launch_envelope_v2": "core/supervised-run/admitted-launch-envelope.v2.schema.json"
|
|
43
46
|
},
|
|
44
47
|
"registries": {
|
|
45
48
|
"document_classes": "core/registries/document-classes.json",
|
|
@@ -70,8 +73,23 @@
|
|
|
70
73
|
"spec_parity": {
|
|
71
74
|
"provenance": "core/spec-parity/provenance.json"
|
|
72
75
|
},
|
|
76
|
+
"supervised_run": {
|
|
77
|
+
"provenance": "core/supervised-run/provenance.json",
|
|
78
|
+
"conformance_root": "core/supervised-run/conformance",
|
|
79
|
+
"manifest": "core/supervised-run/conformance/SHA256SUMS",
|
|
80
|
+
"vectors": {
|
|
81
|
+
"admitted_launch_envelope": "core/supervised-run/conformance/envelope.vectors.json",
|
|
82
|
+
"supervised_run_status": "core/supervised-run/conformance/run-status.vectors.json",
|
|
83
|
+
"admitted_launch_envelope_v2": "core/supervised-run/conformance/envelope.v2.vectors.json",
|
|
84
|
+
"admitted_launch_envelope_v2_canonical": "core/supervised-run/conformance/envelope.v2.canonical.vectors.json",
|
|
85
|
+
"admitted_launch_envelope_v2_apply": "core/supervised-run/conformance/envelope.v2.apply.vectors.json"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
73
88
|
"conformance": {
|
|
74
89
|
"vector_root": "conformance/vectors",
|
|
75
|
-
"decision_schema": "core/schemas/decision.schema.json"
|
|
90
|
+
"decision_schema": "core/schemas/decision.schema.json",
|
|
91
|
+
"registries": {
|
|
92
|
+
"authority_key_registry_test": "conformance/registries/authority-key-registry.test.json"
|
|
93
|
+
}
|
|
76
94
|
}
|
|
77
95
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "consiliency.authority_key_registry.v1",
|
|
3
|
-
"$comment": "The vendored, digest-pinned root of trust. This registry living IN the contract repo — gated by the repo's merge gate — IS the physical root of trust; there is deliberately no live-fetch/Portal-served option (panel amendment #2). Verification selects a key by the SIGNED core's key_id and takes scheme + public_key + approver + validity + revoked FROM HERE, never from the event. Only PUBLIC keys live here; the Portal holds the private key.",
|
|
3
|
+
"$comment": "The vendored, digest-pinned root of trust. This registry living IN the contract repo — gated by the repo's merge gate — IS the physical root of trust; there is deliberately no live-fetch/Portal-served option (panel amendment #2). Verification selects a key by the SIGNED core's key_id and takes scheme + public_key + approver + validity + revoked FROM HERE, never from the event. Only PUBLIC keys live here; the Portal holds the private key. The conformance fixture key_ids are retired here (revoked:true); the conformance vectors verify against the test-only registry conformance/registries/authority-key-registry.test.json, never against this one.",
|
|
4
4
|
"rotation": {
|
|
5
5
|
"policy": "Add a new key_id with its own validity window; overlap windows to roll signers. Never reuse a retired key_id.",
|
|
6
6
|
"identity_binding": "A key_id is bound to exactly one approver identity; a signature verifies only if core.approver == the key's registered approver."
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"not_before": "2026-01-01T00:00:00Z",
|
|
20
20
|
"not_after": "2027-01-01T00:00:00Z"
|
|
21
21
|
},
|
|
22
|
-
"revoked":
|
|
22
|
+
"revoked": true
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"key_id": "portal-authority-ed25519-rotated-out",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"not_before": "2025-01-01T00:00:00Z",
|
|
42
42
|
"not_after": "2025-06-01T00:00:00Z"
|
|
43
43
|
},
|
|
44
|
-
"revoked":
|
|
44
|
+
"revoked": true
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"key_id": "portal-authority-ed25519-prod-v1",
|
|
@@ -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.
|
|
21
|
+
"contract_version": {"const": "0.7.1"},
|
|
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,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.7.1"},
|
|
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.7.0 <0.8.0"},
|
|
17
|
+
"package": {"const": ">=0.7.0 <0.8.0"}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"prerelease_policy": {"enum": ["reject-by-default"]},
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:contract:admitted_launch_envelope.v1",
|
|
4
|
+
"title": "admitted_launch_envelope.v1 (provisional)",
|
|
5
|
+
"description": "What a harness receives after admission. Harness-neutral and language-neutral. Every digest is lowercase hex SHA-256. The harness treats assignment_digest, snapshot_ref, crosswalk_ref, obligation digests and caller_context as opaque. Field types, required fields and closed enums are defined here; the semantic rules a schema cannot establish are listed under x-semantic-rules. Status: provisional until the owning contract revision completes; a change needs reconciliation with every consumer.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schema",
|
|
10
|
+
"envelope_digest",
|
|
11
|
+
"assignment_digest",
|
|
12
|
+
"units",
|
|
13
|
+
"workspace",
|
|
14
|
+
"enforcement",
|
|
15
|
+
"obligations",
|
|
16
|
+
"executable_dependencies",
|
|
17
|
+
"caller_context",
|
|
18
|
+
"redaction_posture"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema": {
|
|
22
|
+
"const": "admitted_launch_envelope.v1"
|
|
23
|
+
},
|
|
24
|
+
"envelope_digest": {
|
|
25
|
+
"$ref": "#/$defs/sha256",
|
|
26
|
+
"description": "SHA-256 of the RFC 8785 (JCS) serialization of this object with envelope_digest removed."
|
|
27
|
+
},
|
|
28
|
+
"assignment_digest": {
|
|
29
|
+
"$ref": "#/$defs/sha256"
|
|
30
|
+
},
|
|
31
|
+
"units": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": [
|
|
35
|
+
"target_unit_ids",
|
|
36
|
+
"readonly_neighbor_unit_ids",
|
|
37
|
+
"snapshot_ref",
|
|
38
|
+
"crosswalk_ref"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"target_unit_ids": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"minItems": 1,
|
|
44
|
+
"items": {
|
|
45
|
+
"$ref": "#/$defs/unit_id"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"readonly_neighbor_unit_ids": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"$ref": "#/$defs/unit_id"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"snapshot_ref": {
|
|
55
|
+
"$ref": "#/$defs/sha256"
|
|
56
|
+
},
|
|
57
|
+
"crosswalk_ref": {
|
|
58
|
+
"$ref": "#/$defs/sha256",
|
|
59
|
+
"description": "Opaque reference to the reviewed correspondence of the subject project at the snapshot; identifies the project."
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"workspace": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"kind",
|
|
68
|
+
"repo_relative_locators"
|
|
69
|
+
],
|
|
70
|
+
"properties": {
|
|
71
|
+
"kind": {
|
|
72
|
+
"enum": [
|
|
73
|
+
"separate_clone",
|
|
74
|
+
"separate_copy",
|
|
75
|
+
"git_worktree_of_protected",
|
|
76
|
+
"in_place"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"repo_relative_locators": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"enforcement": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": [
|
|
91
|
+
"tier",
|
|
92
|
+
"required_constraints"
|
|
93
|
+
],
|
|
94
|
+
"properties": {
|
|
95
|
+
"tier": {
|
|
96
|
+
"enum": [
|
|
97
|
+
"provider_readonly_patch_return_audit",
|
|
98
|
+
"post_write_audit_only",
|
|
99
|
+
"os_enforced"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"required_constraints": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"uniqueItems": true,
|
|
105
|
+
"items": {
|
|
106
|
+
"enum": [
|
|
107
|
+
"write_scope",
|
|
108
|
+
"command_denial",
|
|
109
|
+
"network_denial"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"obligations": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": [
|
|
119
|
+
"definition_digests"
|
|
120
|
+
],
|
|
121
|
+
"properties": {
|
|
122
|
+
"definition_digests": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"$ref": "#/$defs/sha256"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"executable_dependencies": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": [
|
|
134
|
+
"declared",
|
|
135
|
+
"admitted_dependency_digest"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"declared": {
|
|
139
|
+
"type": "boolean"
|
|
140
|
+
},
|
|
141
|
+
"admitted_dependency_digest": {
|
|
142
|
+
"anyOf": [
|
|
143
|
+
{
|
|
144
|
+
"$ref": "#/$defs/sha256"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"type": "null"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"caller_context": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"description": "Opaque. Echoed back byte-for-byte (JCS) in every record that carries it; never interpreted by the harness or the workbench reader."
|
|
156
|
+
},
|
|
157
|
+
"redaction_posture": {
|
|
158
|
+
"const": "digests_and_repo_relative_locators_only"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"$defs": {
|
|
162
|
+
"sha256": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
165
|
+
},
|
|
166
|
+
"unit_id": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1,
|
|
169
|
+
"maxLength": 200
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"x-canonicalization": "RFC 8785 (JCS). Vectors use ASCII object keys and integers only, so code-point and UTF-16 key orders coincide.",
|
|
173
|
+
"x-enforcement-tiers": {
|
|
174
|
+
"provider_readonly_patch_return_audit": {
|
|
175
|
+
"qualified": true,
|
|
176
|
+
"workspace_kinds": [
|
|
177
|
+
"separate_clone",
|
|
178
|
+
"separate_copy"
|
|
179
|
+
],
|
|
180
|
+
"constraints": {
|
|
181
|
+
"write_scope": "checked_before_apply",
|
|
182
|
+
"command_denial": "not_enforced",
|
|
183
|
+
"network_denial": "not_enforced"
|
|
184
|
+
},
|
|
185
|
+
"limits": "The provider is asked to run read-only; that is the provider's own enforcement, not operating-system confinement. Changes return as proposal bytes that are checked before apply, followed by a post-run audit. A tool-action refusal is detection, not prevention. Network cannot be denied. A same-login process is not contained."
|
|
186
|
+
},
|
|
187
|
+
"post_write_audit_only": {
|
|
188
|
+
"qualified": true,
|
|
189
|
+
"workspace_kinds": [
|
|
190
|
+
"separate_clone",
|
|
191
|
+
"separate_copy",
|
|
192
|
+
"git_worktree_of_protected",
|
|
193
|
+
"in_place"
|
|
194
|
+
],
|
|
195
|
+
"constraints": {
|
|
196
|
+
"write_scope": "not_enforced",
|
|
197
|
+
"command_denial": "not_enforced",
|
|
198
|
+
"network_denial": "not_enforced"
|
|
199
|
+
},
|
|
200
|
+
"limits": "Detects after the write only. Applies when the workspace is not a separate clone or copy, for example a git worktree of the protected repository, which shares its object store and refs."
|
|
201
|
+
},
|
|
202
|
+
"os_enforced": {
|
|
203
|
+
"qualified": false,
|
|
204
|
+
"workspace_kinds": [],
|
|
205
|
+
"constraints": {
|
|
206
|
+
"write_scope": "not_enforced",
|
|
207
|
+
"command_denial": "not_enforced",
|
|
208
|
+
"network_denial": "not_enforced"
|
|
209
|
+
},
|
|
210
|
+
"limits": "Reserved and unqualified. An envelope that requires it is refused."
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"x-semantic-rules": {
|
|
214
|
+
"envelope_digest_mismatch": "envelope_digest does not equal the JCS SHA-256 of the envelope without envelope_digest.",
|
|
215
|
+
"authority_foreign": "assignment_digest or units.crosswalk_ref differs from the injected validator's independently expected values (another assignment, repository or project), even when the envelope self-verifies.",
|
|
216
|
+
"authority_baseline_stale": "units.snapshot_ref differs from the independently expected snapshot while assignment and crosswalk match, even when the envelope self-verifies.",
|
|
217
|
+
"tier_unqualified": "the tier is reserved or unqualified.",
|
|
218
|
+
"constraint_unsupported": "a required constraint maps to not_enforced under the declared tier; refused with {constraint, tier}, never silently weakened.",
|
|
219
|
+
"workspace_not_separate_copy": "the workspace kind is not permitted for the declared tier.",
|
|
220
|
+
"locator_not_repo_relative": "a locator is empty, absolute, contains a '..' segment or a backslash.",
|
|
221
|
+
"dependency_digest_required": "executable dependencies are declared without an admitted dependency digest.",
|
|
222
|
+
"raw_output_in_record": "a string outside caller_context contains a line break or control character, or exceeds 512 characters.",
|
|
223
|
+
"caller_context_interpreted": "an echoed caller_context differs from the envelope's caller_context.",
|
|
224
|
+
"refusal_zero_invocations": "every refusal above is recorded before any process starts, as state refused with worker_invocations 0."
|
|
225
|
+
}
|
|
226
|
+
}
|