@riddledc/riddle-proof 0.8.83 → 0.8.85

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 (75) hide show
  1. package/README.md +247 -29
  2. package/capabilities.json +17 -0
  3. package/dist/advanced/engine-harness.js +2 -2
  4. package/dist/advanced/index.d.cts +1 -1
  5. package/dist/advanced/index.d.ts +1 -1
  6. package/dist/advanced/index.js +4 -4
  7. package/dist/advanced/proof-run-engine.d.cts +1 -1
  8. package/dist/advanced/proof-run-engine.d.ts +1 -1
  9. package/dist/advanced/runner.js +2 -2
  10. package/dist/change-proof.cjs +22 -260
  11. package/dist/change-proof.d.cts +1 -1
  12. package/dist/change-proof.d.ts +1 -1
  13. package/dist/change-proof.js +2 -2
  14. package/dist/checked-meaning.cjs +67 -0
  15. package/dist/checked-meaning.d.cts +2 -0
  16. package/dist/checked-meaning.d.ts +2 -0
  17. package/dist/checked-meaning.js +41 -0
  18. package/dist/{chunk-QYZ3GKCP.js → chunk-AFARUBE4.js} +12 -11
  19. package/dist/chunk-J2SIQGQI.js +71 -0
  20. package/dist/{chunk-7OAETQU3.js → chunk-JZKLCY5G.js} +1 -1
  21. package/dist/chunk-KB7FYRBG.js +46 -0
  22. package/dist/chunk-NWLKJ2WI.js +31 -0
  23. package/dist/{chunk-LR4UYJDY.js → chunk-O2AO726C.js} +1 -1
  24. package/dist/chunk-ODLGSEP2.js +43 -0
  25. package/dist/chunk-OHDNCXRM.js +17 -0
  26. package/dist/cli/index.js +7 -7
  27. package/dist/cli.cjs +265 -1122
  28. package/dist/cli.d.cts +0 -1
  29. package/dist/cli.d.ts +0 -1
  30. package/dist/cli.js +7 -7
  31. package/dist/engine-harness.js +2 -2
  32. package/dist/grounded-evidence.cjs +95 -0
  33. package/dist/grounded-evidence.d.cts +2 -0
  34. package/dist/grounded-evidence.d.ts +2 -0
  35. package/dist/grounded-evidence.js +69 -0
  36. package/dist/index.cjs +318 -1539
  37. package/dist/index.d.cts +9 -3
  38. package/dist/index.d.ts +9 -3
  39. package/dist/index.js +136 -16
  40. package/dist/pr-comment.cjs +17 -107
  41. package/dist/pr-comment.d.cts +1 -1
  42. package/dist/pr-comment.d.ts +1 -1
  43. package/dist/pr-comment.js +3 -3
  44. package/dist/{proof-run-engine-MiKZt9oY.d.ts → proof-run-engine-BqRoA3Do.d.ts} +3 -3
  45. package/dist/{proof-run-engine-Baiv6l3A.d.cts → proof-run-engine-DpChFR5H.d.cts} +3 -3
  46. package/dist/proof-run-engine.d.cts +1 -1
  47. package/dist/proof-run-engine.d.ts +1 -1
  48. package/dist/receipts.cjs +10 -255
  49. package/dist/receipts.d.cts +7 -115
  50. package/dist/receipts.d.ts +7 -115
  51. package/dist/receipts.js +1 -1
  52. package/dist/riddle-client.cjs +23 -695
  53. package/dist/riddle-client.d.cts +1 -188
  54. package/dist/riddle-client.d.ts +1 -188
  55. package/dist/riddle-client.js +5 -2
  56. package/dist/runner.js +2 -2
  57. package/dist/runtime/index.cjs +23 -695
  58. package/dist/runtime/index.d.cts +1 -5
  59. package/dist/runtime/index.d.ts +1 -5
  60. package/dist/runtime/index.js +5 -2
  61. package/dist/runtime/riddle-client.cjs +23 -695
  62. package/dist/runtime/riddle-client.d.cts +1 -5
  63. package/dist/runtime/riddle-client.d.ts +1 -5
  64. package/dist/runtime/riddle-client.js +5 -2
  65. package/dist/semantic-certificate.cjs +23 -582
  66. package/dist/semantic-certificate.d.cts +2 -191
  67. package/dist/semantic-certificate.d.ts +2 -191
  68. package/dist/semantic-certificate.js +15 -3
  69. package/package.json +28 -5
  70. package/runtime/lib/riddle_core_call.mjs +3 -806
  71. package/dist/chunk-5IFZSUPF.js +0 -644
  72. package/dist/chunk-DB5ZHRUP.js +0 -585
  73. package/dist/chunk-MEVVL4TI.js +0 -258
  74. package/dist/{chunk-WLUMLHII.js → chunk-BID7CKMM.js} +9 -9
  75. package/dist/{chunk-YH7ADFY4.js → chunk-IVSP24XI.js} +3 -3
@@ -1,191 +1,2 @@
1
- import { JsonValue } from './types.cjs';
2
- import './public-state.cjs';
3
-
4
- declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION: "riddle-proof.semantic-certificate.v0";
5
- interface RiddleProofSemanticScope {
6
- repository: string;
7
- revision: string;
8
- environment: string;
9
- target: string;
10
- proof_attempt: string;
11
- }
12
- interface RiddleProofSemanticClaimRef {
13
- claim_id: string;
14
- claim_version: string;
15
- parameters?: Record<string, JsonValue>;
16
- }
17
- interface RiddleProofSemanticClaim extends RiddleProofSemanticClaimRef {
18
- label: string;
19
- }
20
- interface RiddleProofSemanticClaimExpectation extends RiddleProofSemanticClaimRef {
21
- label?: string;
22
- }
23
- interface RiddleProofSemanticEvidenceRef {
24
- receipt_id: string;
25
- artifact_digest: string;
26
- role: string;
27
- artifact_url?: string;
28
- artifact_path?: string;
29
- }
30
- type RiddleProofSemanticEvidenceBundle = [
31
- RiddleProofSemanticEvidenceRef,
32
- ...RiddleProofSemanticEvidenceRef[]
33
- ];
34
- interface RiddleProofSemanticContractRef {
35
- contract_id: string;
36
- contract_version: string;
37
- label: string;
38
- }
39
- interface RiddleProofSemanticContract extends RiddleProofSemanticContractRef {
40
- claim: RiddleProofSemanticClaim;
41
- }
42
- interface RiddleProofSemanticRuntimeContract<Observation> extends RiddleProofSemanticContract {
43
- accepts: (scope: RiddleProofSemanticScope, observation: Observation) => boolean;
44
- }
45
- interface RiddleProofSemanticRule {
46
- rule_id: string;
47
- rule_version: string;
48
- label: string;
49
- premises: [RiddleProofSemanticClaimRef, ...RiddleProofSemanticClaimRef[]];
50
- conclusion: RiddleProofSemanticClaim;
51
- }
52
- type RiddleProofSemanticAssurance = "runtime_contract_accepted" | "declared_runtime_rule";
53
- interface RiddleProofSemanticPremise {
54
- certificate_id: string;
55
- derivation_kind: RiddleProofSemanticDerivation["kind"];
56
- assurance: RiddleProofSemanticAssurance;
57
- scope: RiddleProofSemanticScope;
58
- claim: RiddleProofSemanticClaim;
59
- evidence: RiddleProofSemanticEvidenceBundle;
60
- }
61
- interface RiddleProofSemanticContractDerivation {
62
- kind: "contract";
63
- assurance: "runtime_contract_accepted";
64
- contract: RiddleProofSemanticContract;
65
- }
66
- interface RiddleProofSemanticCompositionDerivation {
67
- kind: "composition";
68
- assurance: "declared_runtime_rule";
69
- rule: RiddleProofSemanticRule;
70
- premises: [RiddleProofSemanticPremise, ...RiddleProofSemanticPremise[]];
71
- }
72
- type RiddleProofSemanticDerivation = RiddleProofSemanticContractDerivation | RiddleProofSemanticCompositionDerivation;
73
- interface RiddleProofSemanticCertificate {
74
- version: typeof RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION;
75
- certificate_id: string;
76
- scope: RiddleProofSemanticScope;
77
- claim: RiddleProofSemanticClaim;
78
- evidence: RiddleProofSemanticEvidenceBundle;
79
- derivation: RiddleProofSemanticDerivation;
80
- issued_at: string;
81
- }
82
- interface CreateRiddleProofSemanticCertificateInput<Observation> {
83
- scope: RiddleProofSemanticScope;
84
- evidence: RiddleProofSemanticEvidenceBundle;
85
- observation: Observation;
86
- contract: RiddleProofSemanticRuntimeContract<Observation>;
87
- issued_at?: string;
88
- }
89
- interface RiddleProofSemanticContractRejected {
90
- code: "contract_rejected";
91
- contract: RiddleProofSemanticContractRef;
92
- message: string;
93
- }
94
- interface RiddleProofSemanticContractError {
95
- code: "contract_error";
96
- contract: RiddleProofSemanticContractRef;
97
- message: string;
98
- }
99
- type RiddleProofSemanticCertificationResult = {
100
- ok: true;
101
- certificate: RiddleProofSemanticCertificate;
102
- } | {
103
- ok: false;
104
- error: RiddleProofSemanticContractRejected | RiddleProofSemanticContractError;
105
- };
106
- interface ComposeRiddleProofSemanticCertificatesInput {
107
- rule: RiddleProofSemanticRule;
108
- certificates: [RiddleProofSemanticCertificate, ...RiddleProofSemanticCertificate[]];
109
- issued_at?: string;
110
- }
111
- type RiddleProofSemanticScopeField = keyof RiddleProofSemanticScope;
112
- interface RiddleProofSemanticScopeMismatch {
113
- code: "scope_mismatch";
114
- input_index: number;
115
- field: RiddleProofSemanticScopeField;
116
- expected: string;
117
- observed: string;
118
- message: string;
119
- }
120
- interface RiddleProofSemanticPremiseCountMismatch {
121
- code: "premise_count_mismatch";
122
- expected: number;
123
- observed: number;
124
- message: string;
125
- }
126
- interface RiddleProofSemanticPremiseMismatch {
127
- code: "premise_mismatch";
128
- input_index: number;
129
- expected: RiddleProofSemanticClaimRef;
130
- observed: RiddleProofSemanticClaimRef;
131
- message: string;
132
- }
133
- type RiddleProofSemanticCompositionError = RiddleProofSemanticScopeMismatch | RiddleProofSemanticPremiseCountMismatch | RiddleProofSemanticPremiseMismatch;
134
- type RiddleProofSemanticCompositionResult = {
135
- ok: true;
136
- certificate: RiddleProofSemanticCertificate;
137
- } | {
138
- ok: false;
139
- error: RiddleProofSemanticCompositionError;
140
- };
141
- interface MatchRiddleProofSemanticCertificateInput {
142
- certificate: unknown;
143
- expected_certificate_id: string;
144
- expected_scope: RiddleProofSemanticScope;
145
- expected_claim: RiddleProofSemanticClaimExpectation;
146
- expected_assurance: RiddleProofSemanticAssurance;
147
- }
148
- interface RiddleProofSemanticCertificateInvalid {
149
- code: "invalid_certificate";
150
- message: string;
151
- }
152
- interface RiddleProofSemanticCertificateIdMismatch {
153
- code: "certificate_id_mismatch";
154
- expected: string;
155
- observed: string;
156
- message: string;
157
- }
158
- interface RiddleProofSemanticCertificateMatchScopeMismatch {
159
- code: "scope_mismatch";
160
- field: RiddleProofSemanticScopeField;
161
- expected: string;
162
- observed: string;
163
- message: string;
164
- }
165
- interface RiddleProofSemanticCertificateClaimMismatch {
166
- code: "claim_mismatch";
167
- expected: RiddleProofSemanticClaimRef;
168
- observed: RiddleProofSemanticClaimRef;
169
- message: string;
170
- }
171
- interface RiddleProofSemanticCertificateAssuranceMismatch {
172
- code: "assurance_mismatch";
173
- expected: RiddleProofSemanticAssurance;
174
- observed: RiddleProofSemanticAssurance;
175
- message: string;
176
- }
177
- type RiddleProofSemanticCertificateMatchError = RiddleProofSemanticCertificateInvalid | RiddleProofSemanticCertificateIdMismatch | RiddleProofSemanticCertificateMatchScopeMismatch | RiddleProofSemanticCertificateClaimMismatch | RiddleProofSemanticCertificateAssuranceMismatch;
178
- type RiddleProofSemanticCertificateMatchResult = {
179
- ok: true;
180
- certificate: RiddleProofSemanticCertificate;
181
- } | {
182
- ok: false;
183
- error: RiddleProofSemanticCertificateMatchError;
184
- };
185
- declare function riddleProofSemanticScopesEqual(left: RiddleProofSemanticScope, right: RiddleProofSemanticScope): boolean;
186
- declare function createRiddleProofSemanticCertificate<Observation>(input: CreateRiddleProofSemanticCertificateInput<Observation>): RiddleProofSemanticCertificationResult;
187
- declare function parseRiddleProofSemanticCertificate(value: unknown): RiddleProofSemanticCertificate;
188
- declare function matchRiddleProofSemanticCertificate(input: MatchRiddleProofSemanticCertificateInput): RiddleProofSemanticCertificateMatchResult;
189
- declare function composeRiddleProofSemanticCertificates(input: ComposeRiddleProofSemanticCertificatesInput): RiddleProofSemanticCompositionResult;
190
-
191
- export { type ComposeRiddleProofSemanticCertificatesInput, type CreateRiddleProofSemanticCertificateInput, type MatchRiddleProofSemanticCertificateInput, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, type RiddleProofSemanticAssurance, type RiddleProofSemanticCertificate, type RiddleProofSemanticCertificateAssuranceMismatch, type RiddleProofSemanticCertificateClaimMismatch, type RiddleProofSemanticCertificateIdMismatch, type RiddleProofSemanticCertificateInvalid, type RiddleProofSemanticCertificateMatchError, type RiddleProofSemanticCertificateMatchResult, type RiddleProofSemanticCertificateMatchScopeMismatch, type RiddleProofSemanticCertificationResult, type RiddleProofSemanticClaim, type RiddleProofSemanticClaimExpectation, type RiddleProofSemanticClaimRef, type RiddleProofSemanticCompositionDerivation, type RiddleProofSemanticCompositionError, type RiddleProofSemanticCompositionResult, type RiddleProofSemanticContract, type RiddleProofSemanticContractDerivation, type RiddleProofSemanticContractError, type RiddleProofSemanticContractRef, type RiddleProofSemanticContractRejected, type RiddleProofSemanticDerivation, type RiddleProofSemanticEvidenceBundle, type RiddleProofSemanticEvidenceRef, type RiddleProofSemanticPremise, type RiddleProofSemanticPremiseCountMismatch, type RiddleProofSemanticPremiseMismatch, type RiddleProofSemanticRule, type RiddleProofSemanticRuntimeContract, type RiddleProofSemanticScope, type RiddleProofSemanticScopeField, type RiddleProofSemanticScopeMismatch, composeRiddleProofSemanticCertificates, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual };
1
+ export * from '@riddledc/riddle-proof-core/semantic-certificate';
2
+ export { RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, composeRiddleProofSemanticCertificateClosures, composeRiddleProofSemanticCertificates, createRiddleProofSemanticAtomicCertificateClosure, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificateClosure, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual, validateRiddleProofSemanticCertificateClosure } from '@riddledc/riddle-proof-core/semantic-certificate';
@@ -1,191 +1,2 @@
1
- import { JsonValue } from './types.js';
2
- import './public-state.js';
3
-
4
- declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION: "riddle-proof.semantic-certificate.v0";
5
- interface RiddleProofSemanticScope {
6
- repository: string;
7
- revision: string;
8
- environment: string;
9
- target: string;
10
- proof_attempt: string;
11
- }
12
- interface RiddleProofSemanticClaimRef {
13
- claim_id: string;
14
- claim_version: string;
15
- parameters?: Record<string, JsonValue>;
16
- }
17
- interface RiddleProofSemanticClaim extends RiddleProofSemanticClaimRef {
18
- label: string;
19
- }
20
- interface RiddleProofSemanticClaimExpectation extends RiddleProofSemanticClaimRef {
21
- label?: string;
22
- }
23
- interface RiddleProofSemanticEvidenceRef {
24
- receipt_id: string;
25
- artifact_digest: string;
26
- role: string;
27
- artifact_url?: string;
28
- artifact_path?: string;
29
- }
30
- type RiddleProofSemanticEvidenceBundle = [
31
- RiddleProofSemanticEvidenceRef,
32
- ...RiddleProofSemanticEvidenceRef[]
33
- ];
34
- interface RiddleProofSemanticContractRef {
35
- contract_id: string;
36
- contract_version: string;
37
- label: string;
38
- }
39
- interface RiddleProofSemanticContract extends RiddleProofSemanticContractRef {
40
- claim: RiddleProofSemanticClaim;
41
- }
42
- interface RiddleProofSemanticRuntimeContract<Observation> extends RiddleProofSemanticContract {
43
- accepts: (scope: RiddleProofSemanticScope, observation: Observation) => boolean;
44
- }
45
- interface RiddleProofSemanticRule {
46
- rule_id: string;
47
- rule_version: string;
48
- label: string;
49
- premises: [RiddleProofSemanticClaimRef, ...RiddleProofSemanticClaimRef[]];
50
- conclusion: RiddleProofSemanticClaim;
51
- }
52
- type RiddleProofSemanticAssurance = "runtime_contract_accepted" | "declared_runtime_rule";
53
- interface RiddleProofSemanticPremise {
54
- certificate_id: string;
55
- derivation_kind: RiddleProofSemanticDerivation["kind"];
56
- assurance: RiddleProofSemanticAssurance;
57
- scope: RiddleProofSemanticScope;
58
- claim: RiddleProofSemanticClaim;
59
- evidence: RiddleProofSemanticEvidenceBundle;
60
- }
61
- interface RiddleProofSemanticContractDerivation {
62
- kind: "contract";
63
- assurance: "runtime_contract_accepted";
64
- contract: RiddleProofSemanticContract;
65
- }
66
- interface RiddleProofSemanticCompositionDerivation {
67
- kind: "composition";
68
- assurance: "declared_runtime_rule";
69
- rule: RiddleProofSemanticRule;
70
- premises: [RiddleProofSemanticPremise, ...RiddleProofSemanticPremise[]];
71
- }
72
- type RiddleProofSemanticDerivation = RiddleProofSemanticContractDerivation | RiddleProofSemanticCompositionDerivation;
73
- interface RiddleProofSemanticCertificate {
74
- version: typeof RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION;
75
- certificate_id: string;
76
- scope: RiddleProofSemanticScope;
77
- claim: RiddleProofSemanticClaim;
78
- evidence: RiddleProofSemanticEvidenceBundle;
79
- derivation: RiddleProofSemanticDerivation;
80
- issued_at: string;
81
- }
82
- interface CreateRiddleProofSemanticCertificateInput<Observation> {
83
- scope: RiddleProofSemanticScope;
84
- evidence: RiddleProofSemanticEvidenceBundle;
85
- observation: Observation;
86
- contract: RiddleProofSemanticRuntimeContract<Observation>;
87
- issued_at?: string;
88
- }
89
- interface RiddleProofSemanticContractRejected {
90
- code: "contract_rejected";
91
- contract: RiddleProofSemanticContractRef;
92
- message: string;
93
- }
94
- interface RiddleProofSemanticContractError {
95
- code: "contract_error";
96
- contract: RiddleProofSemanticContractRef;
97
- message: string;
98
- }
99
- type RiddleProofSemanticCertificationResult = {
100
- ok: true;
101
- certificate: RiddleProofSemanticCertificate;
102
- } | {
103
- ok: false;
104
- error: RiddleProofSemanticContractRejected | RiddleProofSemanticContractError;
105
- };
106
- interface ComposeRiddleProofSemanticCertificatesInput {
107
- rule: RiddleProofSemanticRule;
108
- certificates: [RiddleProofSemanticCertificate, ...RiddleProofSemanticCertificate[]];
109
- issued_at?: string;
110
- }
111
- type RiddleProofSemanticScopeField = keyof RiddleProofSemanticScope;
112
- interface RiddleProofSemanticScopeMismatch {
113
- code: "scope_mismatch";
114
- input_index: number;
115
- field: RiddleProofSemanticScopeField;
116
- expected: string;
117
- observed: string;
118
- message: string;
119
- }
120
- interface RiddleProofSemanticPremiseCountMismatch {
121
- code: "premise_count_mismatch";
122
- expected: number;
123
- observed: number;
124
- message: string;
125
- }
126
- interface RiddleProofSemanticPremiseMismatch {
127
- code: "premise_mismatch";
128
- input_index: number;
129
- expected: RiddleProofSemanticClaimRef;
130
- observed: RiddleProofSemanticClaimRef;
131
- message: string;
132
- }
133
- type RiddleProofSemanticCompositionError = RiddleProofSemanticScopeMismatch | RiddleProofSemanticPremiseCountMismatch | RiddleProofSemanticPremiseMismatch;
134
- type RiddleProofSemanticCompositionResult = {
135
- ok: true;
136
- certificate: RiddleProofSemanticCertificate;
137
- } | {
138
- ok: false;
139
- error: RiddleProofSemanticCompositionError;
140
- };
141
- interface MatchRiddleProofSemanticCertificateInput {
142
- certificate: unknown;
143
- expected_certificate_id: string;
144
- expected_scope: RiddleProofSemanticScope;
145
- expected_claim: RiddleProofSemanticClaimExpectation;
146
- expected_assurance: RiddleProofSemanticAssurance;
147
- }
148
- interface RiddleProofSemanticCertificateInvalid {
149
- code: "invalid_certificate";
150
- message: string;
151
- }
152
- interface RiddleProofSemanticCertificateIdMismatch {
153
- code: "certificate_id_mismatch";
154
- expected: string;
155
- observed: string;
156
- message: string;
157
- }
158
- interface RiddleProofSemanticCertificateMatchScopeMismatch {
159
- code: "scope_mismatch";
160
- field: RiddleProofSemanticScopeField;
161
- expected: string;
162
- observed: string;
163
- message: string;
164
- }
165
- interface RiddleProofSemanticCertificateClaimMismatch {
166
- code: "claim_mismatch";
167
- expected: RiddleProofSemanticClaimRef;
168
- observed: RiddleProofSemanticClaimRef;
169
- message: string;
170
- }
171
- interface RiddleProofSemanticCertificateAssuranceMismatch {
172
- code: "assurance_mismatch";
173
- expected: RiddleProofSemanticAssurance;
174
- observed: RiddleProofSemanticAssurance;
175
- message: string;
176
- }
177
- type RiddleProofSemanticCertificateMatchError = RiddleProofSemanticCertificateInvalid | RiddleProofSemanticCertificateIdMismatch | RiddleProofSemanticCertificateMatchScopeMismatch | RiddleProofSemanticCertificateClaimMismatch | RiddleProofSemanticCertificateAssuranceMismatch;
178
- type RiddleProofSemanticCertificateMatchResult = {
179
- ok: true;
180
- certificate: RiddleProofSemanticCertificate;
181
- } | {
182
- ok: false;
183
- error: RiddleProofSemanticCertificateMatchError;
184
- };
185
- declare function riddleProofSemanticScopesEqual(left: RiddleProofSemanticScope, right: RiddleProofSemanticScope): boolean;
186
- declare function createRiddleProofSemanticCertificate<Observation>(input: CreateRiddleProofSemanticCertificateInput<Observation>): RiddleProofSemanticCertificationResult;
187
- declare function parseRiddleProofSemanticCertificate(value: unknown): RiddleProofSemanticCertificate;
188
- declare function matchRiddleProofSemanticCertificate(input: MatchRiddleProofSemanticCertificateInput): RiddleProofSemanticCertificateMatchResult;
189
- declare function composeRiddleProofSemanticCertificates(input: ComposeRiddleProofSemanticCertificatesInput): RiddleProofSemanticCompositionResult;
190
-
191
- export { type ComposeRiddleProofSemanticCertificatesInput, type CreateRiddleProofSemanticCertificateInput, type MatchRiddleProofSemanticCertificateInput, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, type RiddleProofSemanticAssurance, type RiddleProofSemanticCertificate, type RiddleProofSemanticCertificateAssuranceMismatch, type RiddleProofSemanticCertificateClaimMismatch, type RiddleProofSemanticCertificateIdMismatch, type RiddleProofSemanticCertificateInvalid, type RiddleProofSemanticCertificateMatchError, type RiddleProofSemanticCertificateMatchResult, type RiddleProofSemanticCertificateMatchScopeMismatch, type RiddleProofSemanticCertificationResult, type RiddleProofSemanticClaim, type RiddleProofSemanticClaimExpectation, type RiddleProofSemanticClaimRef, type RiddleProofSemanticCompositionDerivation, type RiddleProofSemanticCompositionError, type RiddleProofSemanticCompositionResult, type RiddleProofSemanticContract, type RiddleProofSemanticContractDerivation, type RiddleProofSemanticContractError, type RiddleProofSemanticContractRef, type RiddleProofSemanticContractRejected, type RiddleProofSemanticDerivation, type RiddleProofSemanticEvidenceBundle, type RiddleProofSemanticEvidenceRef, type RiddleProofSemanticPremise, type RiddleProofSemanticPremiseCountMismatch, type RiddleProofSemanticPremiseMismatch, type RiddleProofSemanticRule, type RiddleProofSemanticRuntimeContract, type RiddleProofSemanticScope, type RiddleProofSemanticScopeField, type RiddleProofSemanticScopeMismatch, composeRiddleProofSemanticCertificates, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual };
1
+ export * from '@riddledc/riddle-proof-core/semantic-certificate';
2
+ export { RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, composeRiddleProofSemanticCertificateClosures, composeRiddleProofSemanticCertificates, createRiddleProofSemanticAtomicCertificateClosure, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificateClosure, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual, validateRiddleProofSemanticCertificateClosure } from '@riddledc/riddle-proof-core/semantic-certificate';
@@ -1,17 +1,29 @@
1
1
  import {
2
+ RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES,
3
+ RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION,
2
4
  RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION,
5
+ composeRiddleProofSemanticCertificateClosures,
3
6
  composeRiddleProofSemanticCertificates,
7
+ createRiddleProofSemanticAtomicCertificateClosure,
4
8
  createRiddleProofSemanticCertificate,
5
9
  matchRiddleProofSemanticCertificate,
10
+ matchRiddleProofSemanticCertificateClosure,
6
11
  parseRiddleProofSemanticCertificate,
7
- riddleProofSemanticScopesEqual
8
- } from "./chunk-DB5ZHRUP.js";
12
+ riddleProofSemanticScopesEqual,
13
+ validateRiddleProofSemanticCertificateClosure
14
+ } from "./chunk-NWLKJ2WI.js";
9
15
  import "./chunk-MLKGABMK.js";
10
16
  export {
17
+ RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES,
18
+ RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION,
11
19
  RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION,
20
+ composeRiddleProofSemanticCertificateClosures,
12
21
  composeRiddleProofSemanticCertificates,
22
+ createRiddleProofSemanticAtomicCertificateClosure,
13
23
  createRiddleProofSemanticCertificate,
14
24
  matchRiddleProofSemanticCertificate,
25
+ matchRiddleProofSemanticCertificateClosure,
15
26
  parseRiddleProofSemanticCertificate,
16
- riddleProofSemanticScopesEqual
27
+ riddleProofSemanticScopesEqual,
28
+ validateRiddleProofSemanticCertificateClosure
17
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.8.83",
3
+ "version": "0.8.85",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",
@@ -144,6 +144,16 @@
144
144
  "import": "./dist/semantic-certificate.js",
145
145
  "require": "./dist/semantic-certificate.cjs"
146
146
  },
147
+ "./grounded-evidence": {
148
+ "types": "./dist/grounded-evidence.d.ts",
149
+ "import": "./dist/grounded-evidence.js",
150
+ "require": "./dist/grounded-evidence.cjs"
151
+ },
152
+ "./checked-meaning": {
153
+ "types": "./dist/checked-meaning.d.ts",
154
+ "import": "./dist/checked-meaning.js",
155
+ "require": "./dist/checked-meaning.cjs"
156
+ },
147
157
  "./change-proof": {
148
158
  "types": "./dist/change-proof.d.ts",
149
159
  "import": "./dist/change-proof.js",
@@ -233,13 +243,15 @@
233
243
  "types": "./dist/app-contract/index.d.ts",
234
244
  "import": "./dist/app-contract/index.js",
235
245
  "require": "./dist/app-contract/index.cjs"
236
- }
246
+ },
247
+ "./capabilities": "./capabilities.json"
237
248
  },
238
249
  "bin": {
239
250
  "riddle-proof-loop": "./dist/cli.js"
240
251
  },
241
252
  "files": [
242
253
  "dist",
254
+ "capabilities.json",
243
255
  "examples",
244
256
  "lib",
245
257
  "runtime",
@@ -247,11 +259,22 @@
247
259
  "LICENSE"
248
260
  ],
249
261
  "sideEffects": false,
262
+ "riddleProofCapabilities": {
263
+ "network": true,
264
+ "filesystem": true,
265
+ "browser": true,
266
+ "subprocess": true,
267
+ "hostedRiddle": true,
268
+ "cryptography": true,
269
+ "ambientClock": true
270
+ },
250
271
  "engines": {
251
272
  "node": ">=18"
252
273
  },
253
274
  "dependencies": {
254
- "@riddledc/riddle-proof-app-contract": "^0.4.1"
275
+ "@riddledc/riddle-proof-app-contract": "^0.4.1",
276
+ "@riddledc/riddle-proof-core": "^0.1.0",
277
+ "@riddledc/riddle-proof-riddle-client": "^0.4.3"
255
278
  },
256
279
  "devDependencies": {
257
280
  "@types/node": "^22.0.0",
@@ -259,9 +282,9 @@
259
282
  "typescript": "^5.4.5"
260
283
  },
261
284
  "scripts": {
262
- "build": "npm --workspace @riddledc/riddle-proof-app-contract run build --if-present && tsup src/index.ts src/types.ts src/result.ts src/state.ts src/checkpoint.ts src/run-card.ts src/public-state.ts src/runner.ts src/engine-harness.ts src/codex-exec-agent.ts src/local-agent.ts src/cli.ts src/cli/index.ts src/diagnostics.ts src/proof-session.ts src/playability.ts src/basic-gameplay.ts src/profile.ts src/profile/index.ts src/profile-suggestions.ts src/receipts.ts src/semantic-certificate.ts src/change-proof.ts src/pr-comment.ts src/openclaw.ts src/proof-run-core.ts src/proof-run-engine.ts src/riddle-client.ts src/runtime/riddle-client.ts src/spec/index.ts src/spec/types.ts src/spec/result.ts src/spec/state.ts src/spec/checkpoint.ts src/spec/run-card.ts src/spec/public-state.ts src/runtime/index.ts src/app-contract/index.ts src/advanced/index.ts src/advanced/runner.ts src/advanced/engine-harness.ts src/advanced/proof-run-core.ts src/advanced/proof-run-engine.ts src/adapters/openclaw.ts src/adapters/local-agent.ts src/adapters/codex-exec-agent.ts src/adapters/codex.ts --format cjs,esm --dts --out-dir dist --clean",
285
+ "build": "npm --workspace @riddledc/riddle-proof-app-contract run build --if-present && tsup src/index.ts src/types.ts src/result.ts src/state.ts src/checkpoint.ts src/run-card.ts src/public-state.ts src/runner.ts src/engine-harness.ts src/codex-exec-agent.ts src/local-agent.ts src/cli.ts src/cli/index.ts src/diagnostics.ts src/proof-session.ts src/playability.ts src/basic-gameplay.ts src/profile.ts src/profile/index.ts src/profile-suggestions.ts src/receipts.ts src/semantic-certificate.ts src/grounded-evidence.ts src/checked-meaning.ts src/change-proof.ts src/pr-comment.ts src/openclaw.ts src/proof-run-core.ts src/proof-run-engine.ts src/riddle-client.ts src/runtime/riddle-client.ts src/spec/index.ts src/spec/types.ts src/spec/result.ts src/spec/state.ts src/spec/checkpoint.ts src/spec/run-card.ts src/spec/public-state.ts src/runtime/index.ts src/app-contract/index.ts src/advanced/index.ts src/advanced/runner.ts src/advanced/engine-harness.ts src/advanced/proof-run-core.ts src/advanced/proof-run-engine.ts src/adapters/openclaw.ts src/adapters/local-agent.ts src/adapters/codex-exec-agent.ts src/adapters/codex.ts --format cjs,esm --dts --out-dir dist --clean",
263
286
  "clean": "rm -rf dist",
264
287
  "lint": "echo 'lint: (not configured)'",
265
- "test": "npm run build && node test.js && node semantic-certificate.test.js && node proof-run.test.js && node formal-conformance.test.js && node trust-boundary.test.js && node regression-packs.test.js && node story-matrix.test.js && python3 runtime/tests/trust_boundary_regression.py && python3 runtime/tests/ship_artifact_publication.py && (python3 runtime/tests/recon_verify_smoke.py >/tmp/riddle-proof-recon-verify-smoke.json || (tail -120 /tmp/riddle-proof-recon-verify-smoke.json; exit 1))"
288
+ "test": "npm run build && node test.js && node semantic-certificate.test.js && node grounded-evidence.test.js && node grounded-semantic-closure.test.js && node checked-meaning-compatibility.test.js && node hosted-client-compatibility.test.js && node proof-run.test.js && node formal-conformance.test.js && node trust-boundary.test.js && node regression-packs.test.js && node story-matrix.test.js && python3 runtime/tests/trust_boundary_regression.py && python3 runtime/tests/ship_artifact_publication.py && (python3 runtime/tests/recon_verify_smoke.py >/tmp/riddle-proof-recon-verify-smoke.json || (tail -120 /tmp/riddle-proof-recon-verify-smoke.json; exit 1))"
266
289
  }
267
290
  }