@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.
Files changed (37) hide show
  1. package/README.md +50 -2
  2. package/conformance/registries/authority-key-registry.test.json +48 -0
  3. package/conformance/vectors/authority-algorithm-confusion.json +1 -1
  4. package/conformance/vectors/authority-bad-signature.json +1 -1
  5. package/conformance/vectors/authority-cert-digest-mismatch.json +1 -1
  6. package/conformance/vectors/authority-chain-appended-still-verifies.json +1 -1
  7. package/conformance/vectors/authority-core-validity-expired.json +1 -1
  8. package/conformance/vectors/authority-forged-self-minted.json +1 -1
  9. package/conformance/vectors/authority-key-expired.json +1 -1
  10. package/conformance/vectors/authority-key-revoked.json +1 -1
  11. package/conformance/vectors/authority-missing-signature.json +1 -1
  12. package/conformance/vectors/authority-signer-approver-mismatch.json +1 -1
  13. package/conformance/vectors/authority-unknown-key-id.json +1 -1
  14. package/conformance/vectors/authority-valid.json +1 -1
  15. package/conformance/vectors/authority-wrong-key-valid-id.json +1 -1
  16. package/core/authority-canon/provenance.json +1 -1
  17. package/core/contract.json +24 -4
  18. package/core/registries/authority-key-registry.json +3 -3
  19. package/core/registries/protected-source-categories.json +86 -0
  20. package/core/schemas/git-discipline-protocol.schema.json +1 -1
  21. package/core/schemas/protected-source-category.schema.json +29 -0
  22. package/core/schemas/version-skew-protocol.schema.json +3 -3
  23. package/core/supervised-run/admitted-launch-envelope.schema.json +226 -0
  24. package/core/supervised-run/admitted-launch-envelope.v2.schema.json +880 -0
  25. package/core/supervised-run/conformance/README.md +55 -0
  26. package/core/supervised-run/conformance/README.v2.md +297 -0
  27. package/core/supervised-run/conformance/SHA256SUMS +10 -0
  28. package/core/supervised-run/conformance/envelope.v2.apply.vectors.json +1938 -0
  29. package/core/supervised-run/conformance/envelope.v2.canonical.vectors.json +2088 -0
  30. package/core/supervised-run/conformance/envelope.v2.vectors.json +16359 -0
  31. package/core/supervised-run/conformance/envelope.vectors.json +557 -0
  32. package/core/supervised-run/conformance/run-status.vectors.json +2150 -0
  33. package/core/supervised-run/provenance.json +116 -0
  34. package/core/supervised-run/run-status.schema.json +768 -0
  35. package/package.json +1 -1
  36. package/src/index.d.ts +3 -1
  37. package/src/index.js +8 -1
package/README.md CHANGED
@@ -14,12 +14,58 @@ 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.6.4` distributes the frozen parity `certificate` schema and
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`
58
+ > vocabulary (the protocol's first producer↔consumer conformance boundary) as a
59
+ > two-level scheme: a required coarse `category` (seven execution-flow buckets —
60
+ > the pre-existing six plus a new `governance_contracts` bucket for producer-side
61
+ > governance sources) plus an optional free-form `subtype` carrying the
62
+ > producer's fine granularity. The `protected_source_categories` registry pins
63
+ > the coarse enum, the registered fine set, and the canonical fine→coarse map
64
+ > for all ~14 governed-pipeline fine categories; the
65
+ > `protected_source_category` schema validates a `{category, subtype}`
66
+ > descriptor. SoT definition only — additive, no existing schema semantics
67
+ > change; governed-pipeline and phase-loop conform in later phases.
68
+ > `0.6.4` distributes the frozen parity `certificate` schema and
23
69
  > its `result-state` `$ref` closure (verbatim from spec, digest-pinned in
24
70
  > `core/spec-parity/provenance.json`) so external consumers (e.g. greenfield
25
71
  > XG-6) validate against the real parity-cert schema instead of a hand-rolled,
@@ -64,6 +110,7 @@ import {
64
110
  CONTRACT,
65
111
  CONTRACT_VERSION,
66
112
  listVectors,
113
+ loadConformanceRegistry, // test-only registries for replaying vectors
67
114
  loadContract,
68
115
  loadRegistry,
69
116
  loadSchema,
@@ -81,6 +128,7 @@ from consiliency_contract import (
81
128
  CONTRACT,
82
129
  CONTRACT_VERSION,
83
130
  list_vectors,
131
+ load_conformance_registry, # test-only registries for replaying vectors
84
132
  load_contract,
85
133
  load_registry,
86
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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "authority_key_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": "8b7903ac3f688f66afe082a910e566964ae08e75",
7
+ "spec_commit": "a18a55495c80cb4d1f8693c1261130ed5a4d5bc1",
8
8
  "files": {
9
9
  "canon/py/canon.py": "c07bbe85508f36ce53d0d859dce42f607382b3ccacca138d07389dc8fe1765c1",
10
10
  "canon/ts/canon.ts": "0ccfb5b3fda31afd8bf887648bd0181916d138c1acec6bc5e912b3cfb155fa21",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "contract_id": "consiliency.contract.v1",
3
- "contract_version": "0.6.4",
3
+ "contract_version": "0.7.1",
4
4
  "package_names": {
5
5
  "npm": "@consiliency/contract",
6
6
  "pypi": "consiliency-contract"
@@ -38,7 +38,11 @@
38
38
  "git_discipline_protocol": "core/schemas/git-discipline-protocol.schema.json",
39
39
  "authority_event_protocol": "core/schemas/authority-event-protocol.schema.json",
40
40
  "certificate": "core/schemas/certificate.schema.json",
41
- "result_state": "core/schemas/result-state.schema.json"
41
+ "result_state": "core/schemas/result-state.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"
42
46
  },
43
47
  "registries": {
44
48
  "document_classes": "core/registries/document-classes.json",
@@ -48,7 +52,8 @@
48
52
  "default_ignore_set": "core/registries/default-ignore-set.json",
49
53
  "pipeline_ref_classes": "core/registries/pipeline-ref-classes.json",
50
54
  "authority_key_registry": "core/registries/authority-key-registry.json",
51
- "gate_posture_registry": "core/registries/gate-posture-registry.json"
55
+ "gate_posture_registry": "core/registries/gate-posture-registry.json",
56
+ "protected_source_categories": "core/registries/protected-source-categories.json"
52
57
  },
53
58
  "protocols": {
54
59
  "loop_gate": "core/schemas/loop-gate-protocol.schema.json",
@@ -68,8 +73,23 @@
68
73
  "spec_parity": {
69
74
  "provenance": "core/spec-parity/provenance.json"
70
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
+ },
71
88
  "conformance": {
72
89
  "vector_root": "conformance/vectors",
73
- "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
+ }
74
94
  }
75
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": false
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": false
44
+ "revoked": true
45
45
  },
46
46
  {
47
47
  "key_id": "portal-authority-ed25519-prod-v1",
@@ -0,0 +1,86 @@
1
+ {
2
+ "schema": "consiliency.protected_source_categories.v1",
3
+ "$comment": "The canonical protected_source_category vocabulary -- the protocol's FIRST producer<->consumer conformance boundary. A TWO-LEVEL scheme: a COARSE required category (the consumer's execution-flow bucket, what phase-loop keys its protected-source handling on) plus an OPTIONAL fine `subtype` (the producer's governance granularity, what governed-pipeline emits). Both governed-pipeline (producer) and phase-loop (consumer) validate against THIS distributed registry -- they conform to the contract, not to each other, so the vocabulary is never defined implicitly in a codebase (the 'conform to each other, not the contract' anti-pattern the open protocol exists to eliminate). SoT ONLY at this version: gp emits coarse+subtype and phase-loop validates against `coarse_categories` in LATER phases (PSCAT-GP / PSCAT-PL); this version neither changes gp's emit nor phase-loop's accept. WHY coarse is the hard contract and subtype is free-form: the coarse enum is the cross-repo agreement both runtimes gate on; enum-gating the FINE level in the distributed schema would re-couple the fine granularity across repos -- the exact anti-pattern this boundary avoids. The registered fine set below is therefore a DATA map (fine -> coarse), not a schema-enforced enum; a later boundary validator MAY check an emitted subtype against `fine_subtypes` as a soft/warn signal, never a schema hard-fail. Resolves #155; unblocks the R2 bake (#146).",
4
+ "level_scheme": {
5
+ "coarse": {
6
+ "role": "required",
7
+ "owner": "consumer",
8
+ "description": "The execution-flow bucket the consumer (phase-loop) keys its protected-source handling on. Every emitted protected_source_category MUST carry one of these coarse ids."
9
+ },
10
+ "subtype": {
11
+ "role": "optional",
12
+ "owner": "producer",
13
+ "value_space": "free-form string",
14
+ "description": "The producer's (governed-pipeline's) fine governance granularity, carried alongside the coarse category. Free-form at the schema level (any string) so the fine vocabulary is NOT re-coupled across repos; the `fine_subtypes` registered set + `fine_to_coarse` map below are the canonical fine names for tooling/diagnostics, checkable by a later validator as a soft signal only."
15
+ }
16
+ },
17
+ "coarse_categories": [
18
+ {
19
+ "id": "specs",
20
+ "pre_existing": true,
21
+ "description": "Canonical specification sources and their archive/mirror manifests -- the spec surface the loop treats as protected input."
22
+ },
23
+ {
24
+ "id": "diagrams",
25
+ "pre_existing": true,
26
+ "description": "Diagram sources treated as protected input to the loop."
27
+ },
28
+ {
29
+ "id": "adapter_config",
30
+ "pre_existing": true,
31
+ "description": "Runtime adapter configuration and execution profiles that parameterize how the loop runs."
32
+ },
33
+ {
34
+ "id": "definition_files",
35
+ "pre_existing": true,
36
+ "description": "Pipeline/definition source files (e.g. the pipeline definition JSON and the code that validates it)."
37
+ },
38
+ {
39
+ "id": "portal_contracts",
40
+ "pre_existing": true,
41
+ "description": "Portal-facing contract surfaces the loop treats as protected input."
42
+ },
43
+ {
44
+ "id": "phase_artifacts",
45
+ "pre_existing": true,
46
+ "description": "Per-phase artifacts (current-phase source bundle) the loop protects across iterations."
47
+ },
48
+ {
49
+ "id": "governance_contracts",
50
+ "pre_existing": false,
51
+ "description": "NEW coarse bucket (0.6.5) for producer-side governance sources that do not map onto any of the six execution-flow buckets above: adoption contracts, the phase-loop bridge contract files, skill manifests, and instruction surfaces. These are governance-of-the-loop inputs rather than spec/definition/adapter/portal/phase-artifact inputs; the panel chose a SINGLE minimal coarse bucket (rather than splitting) and lets `subtype` carry the fine distinction, keeping coarse growth minimal."
52
+ }
53
+ ],
54
+ "fine_subtypes": [
55
+ "active_canonical_specs",
56
+ "canonical_specs",
57
+ "canonical_spec_archive_manifests",
58
+ "canonical_spec_mirror_manifests",
59
+ "adoption_contracts",
60
+ "current_phase_artifacts",
61
+ "definition_validation_code",
62
+ "execution_profiles",
63
+ "phase_loop_bridge_contract_files",
64
+ "pipeline_definition_json",
65
+ "portal_contracts",
66
+ "runtime_adapter_config",
67
+ "skill_manifests",
68
+ "instruction_surfaces"
69
+ ],
70
+ "fine_to_coarse": {
71
+ "active_canonical_specs": { "coarse": "specs", "subtype": "active_canonical_specs" },
72
+ "canonical_specs": { "coarse": "specs", "subtype": "canonical_specs" },
73
+ "canonical_spec_archive_manifests": { "coarse": "specs", "subtype": "canonical_spec_archive_manifests" },
74
+ "canonical_spec_mirror_manifests": { "coarse": "specs", "subtype": "canonical_spec_mirror_manifests" },
75
+ "runtime_adapter_config": { "coarse": "adapter_config", "subtype": "runtime_adapter_config" },
76
+ "execution_profiles": { "coarse": "adapter_config", "subtype": "execution_profiles" },
77
+ "pipeline_definition_json": { "coarse": "definition_files", "subtype": "pipeline_definition_json" },
78
+ "definition_validation_code": { "coarse": "definition_files", "subtype": "definition_validation_code" },
79
+ "current_phase_artifacts": { "coarse": "phase_artifacts", "subtype": "current_phase_artifacts" },
80
+ "portal_contracts": { "coarse": "portal_contracts", "subtype": "portal_contracts" },
81
+ "adoption_contracts": { "coarse": "governance_contracts", "subtype": "adoption_contracts" },
82
+ "phase_loop_bridge_contract_files": { "coarse": "governance_contracts", "subtype": "phase_loop_bridge_contract_files" },
83
+ "skill_manifests": { "coarse": "governance_contracts", "subtype": "skill_manifests" },
84
+ "instruction_surfaces": { "coarse": "governance_contracts", "subtype": "instruction_surfaces" }
85
+ }
86
+ }
@@ -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.4"},
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."
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://consiliency.io/contracts/protected-source-category.schema.json",
4
+ "title": "Consiliency protected_source_category descriptor",
5
+ "description": "Validates a two-level protected_source_category descriptor emitted by the producer (governed-pipeline) and validated by the consumer (phase-loop): a REQUIRED coarse `category` (one of the canonical execution-flow buckets) plus an OPTIONAL free-form `subtype` carrying the producer's fine governance granularity. The coarse enum below is the hard cross-repo contract; it MUST equal the ids in the `protected_source_categories` registry's `coarse_categories` (a contract test pins this so the two never drift). `subtype` is intentionally a free-form string here -- enum-gating the fine level in the distributed schema would re-couple the fine vocabulary across repos, the anti-pattern this boundary avoids; the registry's `fine_subtypes` list is the canonical fine set for tooling and a later soft/warn validator, not a schema hard-fail.",
6
+ "type": "object",
7
+ "required": ["category"],
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "category": {
11
+ "description": "The REQUIRED coarse execution-flow bucket. MUST equal one of the ids in loadRegistry('protected_source_categories').coarse_categories.",
12
+ "type": "string",
13
+ "enum": [
14
+ "specs",
15
+ "diagrams",
16
+ "adapter_config",
17
+ "definition_files",
18
+ "portal_contracts",
19
+ "phase_artifacts",
20
+ "governance_contracts"
21
+ ]
22
+ },
23
+ "subtype": {
24
+ "description": "OPTIONAL fine governance granularity from the producer. Free-form string (the registry's fine_subtypes list is the canonical set, checkable by a later validator as a soft signal only, not enforced here).",
25
+ "type": "string",
26
+ "minLength": 1
27
+ }
28
+ }
29
+ }
@@ -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.6.4"},
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.6.0 <0.7.0"},
17
- "package": {"const": ">=0.6.0 <0.7.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"]},