@consiliency/contract 0.2.2 → 0.6.0

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 (40) hide show
  1. package/README.md +41 -1
  2. package/conformance/vectors/authority-algorithm-confusion.json +62 -0
  3. package/conformance/vectors/authority-bad-signature.json +62 -0
  4. package/conformance/vectors/authority-cert-digest-mismatch.json +62 -0
  5. package/conformance/vectors/authority-chain-appended-still-verifies.json +72 -0
  6. package/conformance/vectors/authority-core-validity-expired.json +62 -0
  7. package/conformance/vectors/authority-forged-self-minted.json +62 -0
  8. package/conformance/vectors/authority-key-expired.json +62 -0
  9. package/conformance/vectors/authority-key-revoked.json +62 -0
  10. package/conformance/vectors/authority-missing-signature.json +57 -0
  11. package/conformance/vectors/authority-signer-approver-mismatch.json +62 -0
  12. package/conformance/vectors/authority-unknown-key-id.json +62 -0
  13. package/conformance/vectors/authority-valid.json +62 -0
  14. package/conformance/vectors/authority-wrong-key-valid-id.json +62 -0
  15. package/conformance/vectors/git-discipline-never-delete-human-refs.json +38 -0
  16. package/conformance/vectors/manifest-invalid-absolute-path.json +1 -1
  17. package/conformance/vectors/manifest-invalid-certified-maturity.json +2 -2
  18. package/conformance/vectors/manifest-invalid-path-and-ref.json +1 -1
  19. package/conformance/vectors/manifest-invalid-unknown-archetype.json +1 -1
  20. package/conformance/vectors/manifest-valid-baseline-only.json +7 -2
  21. package/conformance/vectors/manifest-valid-product.json +1 -1
  22. package/conformance/vectors/projections-index-pure-merge-deterministic.json +167 -0
  23. package/conformance/vectors/version-skew-compatible.json +3 -3
  24. package/conformance/vectors/version-skew-incompatible-warns.json +2 -2
  25. package/core/authority-canon/provenance.json +23 -0
  26. package/core/contract.json +14 -4
  27. package/core/registries/authority-key-registry.json +58 -0
  28. package/core/registries/maturity-labels.json +15 -3
  29. package/core/registries/pipeline-ref-classes.json +57 -0
  30. package/core/registries/required-documents.json +31 -15
  31. package/core/schemas/authority-event-protocol.schema.json +142 -0
  32. package/core/schemas/contract-version-status.schema.json +2 -2
  33. package/core/schemas/git-discipline-protocol.schema.json +150 -0
  34. package/core/schemas/manifest.schema.json +2 -2
  35. package/core/schemas/projections-index-v1.schema.json +226 -0
  36. package/core/schemas/version-skew-protocol.schema.json +3 -3
  37. package/package.json +1 -1
  38. package/src/authority.js +192 -0
  39. package/src/index.d.ts +15 -1
  40. package/src/index.js +9 -1
@@ -0,0 +1,57 @@
1
+ {
2
+ "id": "authority-missing-signature",
3
+ "description": "An event with no signature block -> REJECT (missing_signature). Schema-invalid (signature required).",
4
+ "input": {
5
+ "schema": "consiliency.authority_verification_scenario.v1",
6
+ "registry": "authority_key_registry",
7
+ "now": "2026-07-03T12:00:00Z",
8
+ "expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
9
+ "canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
10
+ "event": {
11
+ "schema": "consiliency.authority_event_protocol.v1",
12
+ "core": {
13
+ "authority_event_version": "1",
14
+ "event_type": "ratify",
15
+ "decision_id": "d1f0c0de-0000-4000-8000-000000000001",
16
+ "audience": {
17
+ "repo": "governed-pipeline",
18
+ "env": "pilot",
19
+ "lineage": "main",
20
+ "policy_epoch": "2026Q3",
21
+ "canon_version": "v2",
22
+ "phase": "XG1",
23
+ "subgraph": "graphbase.bundle.deterministic-export"
24
+ },
25
+ "cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
26
+ "approver": "consiliency:portal:governance",
27
+ "key_id": "portal-authority-ed25519-v1",
28
+ "validity": {
29
+ "not_before": "2026-01-01T00:00:00Z",
30
+ "not_after": "2027-01-01T00:00:00Z"
31
+ },
32
+ "custody_binding": {
33
+ "phase_loop_driver_allowed": false
34
+ },
35
+ "proposal_ref": "portal:proposal:0001",
36
+ "ratify_ref": "portal:ratify:0001"
37
+ }
38
+ }
39
+ },
40
+ "decision": {
41
+ "schema": "consiliency.conformance_decision.v1",
42
+ "status": "rejected",
43
+ "maturity": "presence-only",
44
+ "findings": [
45
+ {
46
+ "code": "authority.missing_signature",
47
+ "severity": "block",
48
+ "message": "No signature present."
49
+ }
50
+ ]
51
+ },
52
+ "expected": {
53
+ "verifies": false,
54
+ "reason": "missing_signature",
55
+ "schema_valid": false
56
+ }
57
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "id": "authority-signer-approver-mismatch",
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
+ "input": {
5
+ "schema": "consiliency.authority_verification_scenario.v1",
6
+ "registry": "authority_key_registry",
7
+ "now": "2026-07-03T12:00:00Z",
8
+ "expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
9
+ "canon_core_v2_bytes": "7b22617070726f766572223a2261747461636b65723a73656c662d617070726f766564222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
10
+ "event": {
11
+ "schema": "consiliency.authority_event_protocol.v1",
12
+ "core": {
13
+ "authority_event_version": "1",
14
+ "event_type": "ratify",
15
+ "decision_id": "d1f0c0de-0000-4000-8000-000000000001",
16
+ "audience": {
17
+ "repo": "governed-pipeline",
18
+ "env": "pilot",
19
+ "lineage": "main",
20
+ "policy_epoch": "2026Q3",
21
+ "canon_version": "v2",
22
+ "phase": "XG1",
23
+ "subgraph": "graphbase.bundle.deterministic-export"
24
+ },
25
+ "cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
26
+ "approver": "attacker:self-approved",
27
+ "key_id": "portal-authority-ed25519-v1",
28
+ "validity": {
29
+ "not_before": "2026-01-01T00:00:00Z",
30
+ "not_after": "2027-01-01T00:00:00Z"
31
+ },
32
+ "custody_binding": {
33
+ "phase_loop_driver_allowed": false
34
+ },
35
+ "proposal_ref": "portal:proposal:0001",
36
+ "ratify_ref": "portal:ratify:0001"
37
+ },
38
+ "signature": {
39
+ "scheme": "ed25519",
40
+ "key_id": "portal-authority-ed25519-v1",
41
+ "signature": "4d1b356f03c09c7c7699ed12496c052e7a8d5c8d50371f89d27be55289f793de5ae0b8d7f1b3b8d63f75dfa6cec8e49f84b99fa1f7a92ee533eaf9f32e0a370b"
42
+ }
43
+ }
44
+ },
45
+ "decision": {
46
+ "schema": "consiliency.conformance_decision.v1",
47
+ "status": "rejected",
48
+ "maturity": "presence-only",
49
+ "findings": [
50
+ {
51
+ "code": "authority.signer_approver_mismatch",
52
+ "severity": "block",
53
+ "message": "Signing key is not registered to the core's approver."
54
+ }
55
+ ]
56
+ },
57
+ "expected": {
58
+ "verifies": false,
59
+ "reason": "signer_approver_mismatch",
60
+ "schema_valid": true
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "id": "authority-unknown-key-id",
3
+ "description": "core.key_id references a key that is not present in the registry -> REJECT (unknown_key_id).",
4
+ "input": {
5
+ "schema": "consiliency.authority_verification_scenario.v1",
6
+ "registry": "authority_key_registry",
7
+ "now": "2026-07-03T12:00:00Z",
8
+ "expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
9
+ "canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7639222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
10
+ "event": {
11
+ "schema": "consiliency.authority_event_protocol.v1",
12
+ "core": {
13
+ "authority_event_version": "1",
14
+ "event_type": "ratify",
15
+ "decision_id": "d1f0c0de-0000-4000-8000-000000000001",
16
+ "audience": {
17
+ "repo": "governed-pipeline",
18
+ "env": "pilot",
19
+ "lineage": "main",
20
+ "policy_epoch": "2026Q3",
21
+ "canon_version": "v2",
22
+ "phase": "XG1",
23
+ "subgraph": "graphbase.bundle.deterministic-export"
24
+ },
25
+ "cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
26
+ "approver": "consiliency:portal:governance",
27
+ "key_id": "portal-authority-ed25519-v9",
28
+ "validity": {
29
+ "not_before": "2026-01-01T00:00:00Z",
30
+ "not_after": "2027-01-01T00:00:00Z"
31
+ },
32
+ "custody_binding": {
33
+ "phase_loop_driver_allowed": false
34
+ },
35
+ "proposal_ref": "portal:proposal:0001",
36
+ "ratify_ref": "portal:ratify:0001"
37
+ },
38
+ "signature": {
39
+ "scheme": "ed25519",
40
+ "key_id": "portal-authority-ed25519-v9",
41
+ "signature": "3152f73919f59f2aef345c1b65973c0ce0f1d2d05635941e9c5e7b4a24d7c2a29d3312de33e78f7dc221e3d3fffd8424af4a06ed15e4f148abe2a0f605f9c508"
42
+ }
43
+ }
44
+ },
45
+ "decision": {
46
+ "schema": "consiliency.conformance_decision.v1",
47
+ "status": "rejected",
48
+ "maturity": "presence-only",
49
+ "findings": [
50
+ {
51
+ "code": "authority.unknown_key_id",
52
+ "severity": "block",
53
+ "message": "Signing key_id is not in the pinned authority-key registry."
54
+ }
55
+ ]
56
+ },
57
+ "expected": {
58
+ "verifies": false,
59
+ "reason": "unknown_key_id",
60
+ "schema_valid": true
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "id": "authority-valid",
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
+ "input": {
5
+ "schema": "consiliency.authority_verification_scenario.v1",
6
+ "registry": "authority_key_registry",
7
+ "now": "2026-07-03T12:00:00Z",
8
+ "expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
9
+ "canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
10
+ "event": {
11
+ "schema": "consiliency.authority_event_protocol.v1",
12
+ "core": {
13
+ "authority_event_version": "1",
14
+ "event_type": "ratify",
15
+ "decision_id": "d1f0c0de-0000-4000-8000-000000000001",
16
+ "audience": {
17
+ "repo": "governed-pipeline",
18
+ "env": "pilot",
19
+ "lineage": "main",
20
+ "policy_epoch": "2026Q3",
21
+ "canon_version": "v2",
22
+ "phase": "XG1",
23
+ "subgraph": "graphbase.bundle.deterministic-export"
24
+ },
25
+ "cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
26
+ "approver": "consiliency:portal:governance",
27
+ "key_id": "portal-authority-ed25519-v1",
28
+ "validity": {
29
+ "not_before": "2026-01-01T00:00:00Z",
30
+ "not_after": "2027-01-01T00:00:00Z"
31
+ },
32
+ "custody_binding": {
33
+ "phase_loop_driver_allowed": false
34
+ },
35
+ "proposal_ref": "portal:proposal:0001",
36
+ "ratify_ref": "portal:ratify:0001"
37
+ },
38
+ "signature": {
39
+ "scheme": "ed25519",
40
+ "key_id": "portal-authority-ed25519-v1",
41
+ "signature": "2e8a2de52db96b1d9f32406aee6b00ccea030fb495c2493720285ba176047d7ff2c73e29e85486d98f23cae4fedd6dd2ae71cdb627c803c2ad1ac3bee56de704"
42
+ }
43
+ }
44
+ },
45
+ "decision": {
46
+ "schema": "consiliency.conformance_decision.v1",
47
+ "status": "accepted",
48
+ "maturity": "presence-only",
49
+ "findings": [
50
+ {
51
+ "code": "authority.verified",
52
+ "severity": "info",
53
+ "message": "Valid Ed25519-signed authority event."
54
+ }
55
+ ]
56
+ },
57
+ "expected": {
58
+ "verifies": true,
59
+ "reason": "verified",
60
+ "schema_valid": true
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "id": "authority-wrong-key-valid-id",
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
+ "input": {
5
+ "schema": "consiliency.authority_verification_scenario.v1",
6
+ "registry": "authority_key_registry",
7
+ "now": "2026-07-03T12:00:00Z",
8
+ "expected_cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
9
+ "canon_core_v2_bytes": "7b22617070726f766572223a22636f6e73696c69656e63793a706f7274616c3a676f7665726e616e6365222c2261756469656e6365223a7b2263616e6f6e5f76657273696f6e223a227632222c22656e76223a2270696c6f74222c226c696e65616765223a226d61696e222c227068617365223a22584731222c22706f6c6963795f65706f6368223a22323032365133222c227265706f223a22676f7665726e65642d706970656c696e65222c227375626772617068223a226772617068626173652e62756e646c652e64657465726d696e69737469632d6578706f7274227d2c22617574686f726974795f6576656e745f76657273696f6e223a2231222c22636572745f646967657374223a2231313038616164333662316531303864643266326135643838616466663562396461353936343761383263303039613533643732363061393537653362396465222c22637573746f64795f62696e64696e67223a7b2270686173655f6c6f6f705f6472697665725f616c6c6f776564223a66616c73657d2c226465636973696f6e5f6964223a2264316630633064652d303030302d343030302d383030302d303030303030303030303031222c226576656e745f74797065223a22726174696679222c226b65795f6964223a22706f7274616c2d617574686f726974792d656432353531392d7631222c2270726f706f73616c5f726566223a22706f7274616c3a70726f706f73616c3a30303031222c227261746966795f726566223a22706f7274616c3a7261746966793a30303031222c2276616c6964697479223a7b226e6f745f6166746572223a22323032372d30312d30315430303a30303a30305a222c226e6f745f6265666f7265223a22323032362d30312d30315430303a30303a30305a227d7d",
10
+ "event": {
11
+ "schema": "consiliency.authority_event_protocol.v1",
12
+ "core": {
13
+ "authority_event_version": "1",
14
+ "event_type": "ratify",
15
+ "decision_id": "d1f0c0de-0000-4000-8000-000000000001",
16
+ "audience": {
17
+ "repo": "governed-pipeline",
18
+ "env": "pilot",
19
+ "lineage": "main",
20
+ "policy_epoch": "2026Q3",
21
+ "canon_version": "v2",
22
+ "phase": "XG1",
23
+ "subgraph": "graphbase.bundle.deterministic-export"
24
+ },
25
+ "cert_digest": "1108aad36b1e108dd2f2a5d88adff5b9da59647a82c009a53d7260a957e3b9de",
26
+ "approver": "consiliency:portal:governance",
27
+ "key_id": "portal-authority-ed25519-v1",
28
+ "validity": {
29
+ "not_before": "2026-01-01T00:00:00Z",
30
+ "not_after": "2027-01-01T00:00:00Z"
31
+ },
32
+ "custody_binding": {
33
+ "phase_loop_driver_allowed": false
34
+ },
35
+ "proposal_ref": "portal:proposal:0001",
36
+ "ratify_ref": "portal:ratify:0001"
37
+ },
38
+ "signature": {
39
+ "scheme": "ed25519",
40
+ "key_id": "portal-authority-ed25519-v1",
41
+ "signature": "4c19f15cce0ec3b227f52d22bfc4143ef67fc5a0c8600744446c749ba052e003d0a6a1aca4864a2655115fcf431a2e8a6400fc94b5da5bbd199ccf1bf96b8b05"
42
+ }
43
+ }
44
+ },
45
+ "decision": {
46
+ "schema": "consiliency.conformance_decision.v1",
47
+ "status": "rejected",
48
+ "maturity": "presence-only",
49
+ "findings": [
50
+ {
51
+ "code": "authority.bad_signature",
52
+ "severity": "block",
53
+ "message": "Registry public key does not verify the signature."
54
+ }
55
+ ]
56
+ },
57
+ "expected": {
58
+ "verifies": false,
59
+ "reason": "bad_signature",
60
+ "schema_valid": true
61
+ }
62
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "id": "git-discipline-never-delete-human-refs",
3
+ "description": "Top-of-loop self-heal reconciles ONLY leased, pipeline-owned refs in a deletable class. Human refs (default branch + feature branches) and unleased or non-deletable pipeline refs are never auto-deleted — the NEVER-DELETE-HUMAN-REFS invariant (DESIGN §11.1/§11.3).",
4
+ "input": {
5
+ "schema": "consiliency.git_discipline_scenario.v1",
6
+ "self_heal": true,
7
+ "refs": [
8
+ {"name": "consiliency/pipeline/v0.4", "leased": true, "merged": false},
9
+ {"name": "consiliency/pipeline/v0.3", "leased": false, "merged": true},
10
+ {"name": "phase-loop/sched/main/PHASE_A", "leased": true, "merged": true},
11
+ {"name": "pipeline/impl-node3", "leased": true, "merged": true},
12
+ {"name": "pipeline/impl-node9", "leased": false, "merged": true},
13
+ {"name": "main", "leased": false, "merged": false},
14
+ {"name": "feature/my-wip", "leased": true, "merged": false}
15
+ ]
16
+ },
17
+ "decision": {
18
+ "schema": "consiliency.conformance_decision.v1",
19
+ "status": "accepted",
20
+ "maturity": "presence-only",
21
+ "findings": [
22
+ {"code": "git_discipline.self_heal_bounded", "severity": "info", "message": "Self-heal deletion is bounded to leased pipeline-owned refs in a deletable class; all human and unleased refs are protected."}
23
+ ]
24
+ },
25
+ "expected": {
26
+ "deletable_by_self_heal": ["phase-loop/sched/main/PHASE_A", "pipeline/impl-node3"],
27
+ "protected": ["consiliency/pipeline/v0.4", "consiliency/pipeline/v0.3", "pipeline/impl-node9", "main", "feature/my-wip"],
28
+ "human_refs": ["main", "feature/my-wip"],
29
+ "never_deleted_human_refs": ["main", "feature/my-wip"],
30
+ "protected_reasons": {
31
+ "consiliency/pipeline/v0.4": "pipeline working branch — non-deletable class (reconcile rebases, never deletes)",
32
+ "consiliency/pipeline/v0.3": "pipeline working branch — non-deletable class; also unleased",
33
+ "pipeline/impl-node9": "pipeline phase-node in a deletable class but UNLEASED — self-heal needs a lease",
34
+ "main": "human ref (default branch) — never auto-deleted",
35
+ "feature/my-wip": "human ref — never auto-deleted even though leased by a human"
36
+ }
37
+ }
38
+ }
@@ -3,7 +3,7 @@
3
3
  "description": "Host absolute paths are rejected from public package data.",
4
4
  "input": {
5
5
  "schema": "consiliency.manifest.v1",
6
- "contract_version": "0.2.0",
6
+ "contract_version": "0.4.2",
7
7
  "repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
8
8
  "declaration": {"mode": "baseline-only"},
9
9
  "documents": [
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "id": "manifest-invalid-certified-maturity",
3
- "description": "Phase 0 vectors must not claim certified maturity.",
3
+ "description": "Phase 0 vectors must not claim certified maturity. Structural, not just semantic: manifest.schema.json's document.maturity enum is [presence-only, hash-checked, realized-edge-observed] and has never included any certified-tier value, so this also rejects the two CS-1.4 tiers (parity-certified, authority-certified) the same way — a document declaration cannot claim any of them at Phase 0, by construction. This vector keeps exercising the bare 'certified' id as the representative case; the phase0_disallowed set in maturity-labels.json now lists all three ids for the semantic layer's benefit.",
4
4
  "input": {
5
5
  "schema": "consiliency.manifest.v1",
6
- "contract_version": "0.2.0",
6
+ "contract_version": "0.4.2",
7
7
  "repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
8
8
  "declaration": {"mode": "baseline-only"},
9
9
  "documents": [
@@ -3,7 +3,7 @@
3
3
  "description": "A document declaration must use exactly one of path or ref.",
4
4
  "input": {
5
5
  "schema": "consiliency.manifest.v1",
6
- "contract_version": "0.2.0",
6
+ "contract_version": "0.4.2",
7
7
  "repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
8
8
  "declaration": {"mode": "baseline-only"},
9
9
  "documents": [
@@ -3,7 +3,7 @@
3
3
  "description": "Unknown archetypes are rejected.",
4
4
  "input": {
5
5
  "schema": "consiliency.manifest.v1",
6
- "contract_version": "0.2.0",
6
+ "contract_version": "0.4.2",
7
7
  "repo": {"id": "bad", "display_name": "Bad", "default_branch": "main"},
8
8
  "declaration": {"mode": "archetyped", "archetypes": ["website"], "modifiers": []},
9
9
  "documents": [],
@@ -3,11 +3,16 @@
3
3
  "description": "A baseline-only declaration is legal and carries no archetype list.",
4
4
  "input": {
5
5
  "schema": "consiliency.manifest.v1",
6
- "contract_version": "0.2.0",
6
+ "contract_version": "0.4.2",
7
7
  "repo": {"id": "notes", "display_name": "Notes", "default_branch": "main"},
8
8
  "declaration": {"mode": "baseline-only"},
9
9
  "documents": [
10
- {"id": "readme", "class": "index", "path": "README.md", "maturity": "presence-only", "target_level": "L0", "required": true}
10
+ {"id": "readme", "class": "index", "path": "README.md", "maturity": "presence-only", "target_level": "L0", "required": true},
11
+ {"id": "doc-contract-index", "class": "index", "path": "docs/CONTRACT_INDEX.md", "maturity": "presence-only", "target_level": "L0", "required": true},
12
+ {"id": "contract-version-status", "class": "index", "path": ".consiliency/status.json", "maturity": "presence-only", "target_level": "L0", "required": true},
13
+ {"id": "glossary", "class": "proj-S", "path": "docs/glossary.html", "maturity": "presence-only", "target_level": "L0", "required": true},
14
+ {"id": "interface-declaration", "class": "index", "path": "docs/INTERFACES.md", "maturity": "presence-only", "target_level": "L0", "required": true},
15
+ {"id": "codeowners", "class": "index", "path": "CODEOWNERS", "maturity": "presence-only", "target_level": "L0", "required": true}
11
16
  ],
12
17
  "interfaces": ".consiliency/interfaces.json"
13
18
  },
@@ -3,7 +3,7 @@
3
3
  "description": "An archetyped product manifest with repo-relative documents is accepted at L0.",
4
4
  "input": {
5
5
  "schema": "consiliency.manifest.v1",
6
- "contract_version": "0.2.0",
6
+ "contract_version": "0.4.2",
7
7
  "repo": {"id": "portal", "display_name": "Consiliency Portal", "default_branch": "main"},
8
8
  "declaration": {"mode": "archetyped", "archetypes": ["product"], "modifiers": ["user-facing"]},
9
9
  "documents": [
@@ -0,0 +1,167 @@
1
+ {
2
+ "id": "projections-index-pure-merge-deterministic",
3
+ "description": "The projections index is a deterministic pure merge of the per-artifact manifests (+ refresh sidecars): field-copy, no generated_at, entries sorted by (repo, kind, predicate). Manifests are supplied out of sort order to prove the merge sorts; a stale refresh sidecar merges into its entry without touching the manifest. Any driver (Portal+pipeline, harness standalone, headless gp) must reproduce expected.index byte-for-byte (DESIGN §2.2/§2.3/§12.3). v0.4.1: also exercises a proj-S-certified entry (source_S_digest pin, no code pin) — the kind-coverage gap that let the flat-required v0.4.0 schema ship. v0.6.0 (CS-1.4): the graphbase entry is re-labeled parity-certified (it has a parity cert, no authority event — the honest label per the CS-1.4 rescope) and a second proj-S-certified entry on the same repo demonstrates authority-certified is a distinct, independently valid tier; proj-code entries stay at hash-checked, proving the two-sided cap still excludes both certified tiers.",
4
+ "input": {
5
+ "schema": "consiliency.projections_index_scenario.v1",
6
+ "manifests": [
7
+ {
8
+ "schema": "proj_code_sbom_manifest.v1",
9
+ "target": "portal",
10
+ "kind": "proj-code-sbom",
11
+ "predicate": "proj-code-sbom",
12
+ "code_head_sha": "2fc4333400000000000000000000000000000000",
13
+ "body_digest": "78f74f4caaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
14
+ "body_digest_domain": "raw-sha256",
15
+ "facts_digest": "39ce6785bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
16
+ "facts_path": "spec-render/projcode/portal/portal-code-ec.json",
17
+ "output_path": "spec-render/projcode/portal/portal-sbom.md",
18
+ "manifest_path": "spec-render/projcode/portal/portal-sbom.manifest.json",
19
+ "body_content_type": "text/markdown",
20
+ "maturity_label": "hash-checked",
21
+ "gate_verdict": {
22
+ "state": "pass"
23
+ }
24
+ },
25
+ {
26
+ "schema": "proj_code_api_manifest.v1",
27
+ "target": "gp",
28
+ "kind": "proj-code-api",
29
+ "predicate": "proj-code-api",
30
+ "code_head_sha": "aa11bb2200000000000000000000000000000000",
31
+ "body_digest": "5cad1290cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
32
+ "body_digest_domain": "raw-sha256",
33
+ "facts_digest": "1e2d3c4bdddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
34
+ "facts_path": "spec-render/projcode/gp/gp-api-surface-facts.json",
35
+ "output_path": "spec-render/projcode/gp/gp-api-surface.md",
36
+ "manifest_path": "spec-render/projcode/gp/gp-api-surface.manifest.json",
37
+ "body_content_type": "text/markdown",
38
+ "maturity_label": "hash-checked",
39
+ "gate_verdict": {
40
+ "state": "pass"
41
+ }
42
+ },
43
+ {
44
+ "schema": "certified_projection_manifest.v1",
45
+ "target": "graphbase",
46
+ "kind": "proj-S-certified",
47
+ "predicate": "certified-projection",
48
+ "source_S_digest": "d19bbc75eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
49
+ "body_digest": "c03e9d9cffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
50
+ "body_digest_domain": "spec-render:html:v1",
51
+ "output_path": "spec-render/certified/graphbase/graphbase.c4.html",
52
+ "manifest_path": "spec-render/certified/graphbase/graphbase.manifest.json",
53
+ "body_content_type": "text/html",
54
+ "maturity_label": "parity-certified",
55
+ "gate_verdict": {
56
+ "state": "pass"
57
+ },
58
+ "display_route": "/specs/graphbase/c4"
59
+ },
60
+ {
61
+ "schema": "certified_projection_manifest.v1",
62
+ "target": "graphbase",
63
+ "kind": "proj-S-certified",
64
+ "predicate": "certified-projection-authority-pilot",
65
+ "source_S_digest": "d19bbc75eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
66
+ "body_digest": "a11ce59100000000000000000000000000000000000000000000000000000000",
67
+ "body_digest_domain": "spec-render:html:v1",
68
+ "output_path": "spec-render/certified/graphbase/graphbase.xg1-pilot.c4.html",
69
+ "manifest_path": "spec-render/certified/graphbase/graphbase.xg1-pilot.manifest.json",
70
+ "body_content_type": "text/html",
71
+ "maturity_label": "authority-certified",
72
+ "gate_verdict": {
73
+ "state": "pass"
74
+ },
75
+ "display_route": "/specs/graphbase/xg1-pilot"
76
+ }
77
+ ],
78
+ "refresh_sidecars": [
79
+ {
80
+ "manifest_path": "spec-render/projcode/portal/portal-sbom.manifest.json",
81
+ "refresh_status": "stale",
82
+ "refresh_failure_class": "gate_g4_not_evaluated",
83
+ "attempted_code_head_sha": "99ee88ff00000000000000000000000000000000"
84
+ }
85
+ ]
86
+ },
87
+ "decision": {
88
+ "schema": "consiliency.conformance_decision.v1",
89
+ "status": "accepted",
90
+ "maturity": "hash-checked",
91
+ "findings": [
92
+ {
93
+ "code": "projections_index.pure_merge",
94
+ "severity": "info",
95
+ "message": "Index entries are a pure field-copy of the manifests plus sidecar refresh state, deterministically sorted, with no generated_at."
96
+ }
97
+ ]
98
+ },
99
+ "expected": {
100
+ "index": {
101
+ "schema": "projections.index.v1",
102
+ "entries": [
103
+ {
104
+ "repo": "gp",
105
+ "kind": "proj-code-api",
106
+ "predicate": "proj-code-api",
107
+ "body_path": "spec-render/projcode/gp/gp-api-surface.md",
108
+ "body_content_type": "text/markdown",
109
+ "facts_path": "spec-render/projcode/gp/gp-api-surface-facts.json",
110
+ "manifest_path": "spec-render/projcode/gp/gp-api-surface.manifest.json",
111
+ "body_digest": "5cad1290cccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
112
+ "body_digest_domain": "raw-sha256",
113
+ "facts_digest": "1e2d3c4bdddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
114
+ "pinned_commit": "aa11bb2200000000000000000000000000000000",
115
+ "maturity_label": "hash-checked",
116
+ "gate_state": "pass"
117
+ },
118
+ {
119
+ "repo": "graphbase",
120
+ "kind": "proj-S-certified",
121
+ "predicate": "certified-projection",
122
+ "body_path": "spec-render/certified/graphbase/graphbase.c4.html",
123
+ "body_content_type": "text/html",
124
+ "manifest_path": "spec-render/certified/graphbase/graphbase.manifest.json",
125
+ "body_digest": "c03e9d9cffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
126
+ "body_digest_domain": "spec-render:html:v1",
127
+ "source_S_digest": "d19bbc75eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
128
+ "maturity_label": "parity-certified",
129
+ "gate_state": "pass",
130
+ "display_route": "/specs/graphbase/c4"
131
+ },
132
+ {
133
+ "repo": "graphbase",
134
+ "kind": "proj-S-certified",
135
+ "predicate": "certified-projection-authority-pilot",
136
+ "body_path": "spec-render/certified/graphbase/graphbase.xg1-pilot.c4.html",
137
+ "body_content_type": "text/html",
138
+ "manifest_path": "spec-render/certified/graphbase/graphbase.xg1-pilot.manifest.json",
139
+ "body_digest": "a11ce59100000000000000000000000000000000000000000000000000000000",
140
+ "body_digest_domain": "spec-render:html:v1",
141
+ "source_S_digest": "d19bbc75eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
142
+ "maturity_label": "authority-certified",
143
+ "gate_state": "pass",
144
+ "display_route": "/specs/graphbase/xg1-pilot"
145
+ },
146
+ {
147
+ "repo": "portal",
148
+ "kind": "proj-code-sbom",
149
+ "predicate": "proj-code-sbom",
150
+ "body_path": "spec-render/projcode/portal/portal-sbom.md",
151
+ "body_content_type": "text/markdown",
152
+ "facts_path": "spec-render/projcode/portal/portal-code-ec.json",
153
+ "manifest_path": "spec-render/projcode/portal/portal-sbom.manifest.json",
154
+ "body_digest": "78f74f4caaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
155
+ "body_digest_domain": "raw-sha256",
156
+ "facts_digest": "39ce6785bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
157
+ "pinned_commit": "2fc4333400000000000000000000000000000000",
158
+ "maturity_label": "hash-checked",
159
+ "gate_state": "pass",
160
+ "refresh_status": "stale",
161
+ "refresh_failure_class": "gate_g4_not_evaluated",
162
+ "attempted_code_head_sha": "99ee88ff00000000000000000000000000000000"
163
+ }
164
+ ]
165
+ }
166
+ }
167
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "id": "version-skew-compatible",
3
- "description": "Contract and package versions in the 0.2 range are compatible.",
3
+ "description": "Contract and package versions in the 0.4 range are compatible.",
4
4
  "input": {
5
5
  "schema": "consiliency.version_skew_scenario.v1",
6
- "contract_version": "0.2.0",
7
- "package_version": "0.2.0"
6
+ "contract_version": "0.4.2",
7
+ "package_version": "0.4.2"
8
8
  },
9
9
  "decision": {
10
10
  "schema": "consiliency.conformance_decision.v1",
@@ -3,8 +3,8 @@
3
3
  "description": "Version skew emits a warning by default during Phase 0.",
4
4
  "input": {
5
5
  "schema": "consiliency.version_skew_scenario.v1",
6
- "contract_version": "0.1.0",
7
- "package_version": "0.2.0"
6
+ "contract_version": "0.2.0",
7
+ "package_version": "0.4.2"
8
8
  },
9
9
  "decision": {
10
10
  "schema": "consiliency.conformance_decision.v1",