@disclosureos/schema 1.1.0 → 2.0.0-beta.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.
- package/CHANGELOG.md +57 -0
- package/README.md +92 -0
- package/dist/experimental/v2/index.d.ts +1602 -0
- package/dist/experimental/v2/index.js +4532 -0
- package/dist/experimental/v2/index.js.map +1 -0
- package/package.json +45 -7
- package/schema/experimental/acquisition-bindings-0.1.0.schema.json +127 -0
- package/schema/experimental/dataset-release-0.1.0.schema.json +279 -0
- package/schema/experimental/historical-testimony-selection-0.1.0.schema.json +102 -0
- package/schema/experimental/instrument-research-review-0.1.0.schema.json +627 -0
- package/schema/experimental/measurement-bindings-0.1.0.schema.json +199 -0
- package/schema/experimental/migration-compatibility-0.1.0.schema.json +189 -0
- package/schema/experimental/migration-legacy-scores-0.1.0.schema.json +116 -0
- package/schema/experimental/migration-resolution-0.1.0.schema.json +120 -0
- package/schema/experimental/migration-review-0.1.0.schema.json +223 -0
- package/schema/experimental/physical-sample-selection-0.1.0.schema.json +278 -0
- package/schema/experimental/profile-evaluation-0.1.0.schema.json +231 -0
- package/schema/experimental/profile-preparation-0.1.0.schema.json +177 -0
- package/schema/experimental/released-document-selection-0.1.0.schema.json +102 -0
- package/schema/experimental/reproduction-packet-0.1.0.schema.json +252 -0
- package/schema/experimental/research-evaluation-0.1.0.schema.json +174 -0
- package/schema/experimental/source-intake-0.1.0.schema.json +497 -0
|
@@ -0,0 +1,1602 @@
|
|
|
1
|
+
import { ClaimHistoryIssueCode, parseExperimentalClaimHistory, ClaimSubject } from '@disclosureos/records/experimental/v2';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { parseAcquisitionContext, AcquisitionContextIssueCode } from '@disclosureos/instruments/experimental/v2';
|
|
4
|
+
|
|
5
|
+
declare const ASSESSMENT_DOCUMENTATION_PROFILE: Readonly<{
|
|
6
|
+
readonly id: "urn:disclosureos:experimental:profile:assessment-documentation";
|
|
7
|
+
readonly version: "0.1.0";
|
|
8
|
+
readonly scope: "documentary_only";
|
|
9
|
+
}>;
|
|
10
|
+
type Status$b = 'passed' | 'failed' | 'not_checked';
|
|
11
|
+
type DocumentationIssueCode = ClaimHistoryIssueCode | 'PROFILE.NO_ASSESSMENTS' | 'PROFILE.UNASSESSED' | 'PROFILE.INPUTS_REQUIRED' | 'PROFILE.METHOD_CONTEXT' | 'PROFILE.LOCATOR_REQUIRED' | 'PROFILE.DIGEST_REQUIRED' | 'PROFILE.MEASUREMENT_REQUIRED' | 'PROFILE.MEASUREMENT_UNCERTAINTY' | 'PROFILE.INSTRUMENT_PRODUCT_REQUIRED' | 'PROFILE.EVENT_TIME' | 'PROFILE.FRAME_CONTEXT' | 'EXTERNAL.ASSET_UNAVAILABLE' | 'EXTERNAL.DIGEST_MISMATCH' | 'EXTERNAL.HASH_UNAVAILABLE' | 'EXTERNAL.EMPTY_ASSET';
|
|
12
|
+
interface DocumentationIssue {
|
|
13
|
+
code: DocumentationIssueCode;
|
|
14
|
+
stage: 'structural' | 'semantic' | 'profile' | 'external';
|
|
15
|
+
severity: 'error' | 'warning';
|
|
16
|
+
pointer: string;
|
|
17
|
+
message: string;
|
|
18
|
+
}
|
|
19
|
+
interface AssetCheck {
|
|
20
|
+
ref: string;
|
|
21
|
+
status: Status$b;
|
|
22
|
+
expectedSha256?: string;
|
|
23
|
+
actualSha256?: string;
|
|
24
|
+
}
|
|
25
|
+
interface AssessmentDocumentation {
|
|
26
|
+
claimRef: string;
|
|
27
|
+
status: Status$b;
|
|
28
|
+
inputRefs: string[];
|
|
29
|
+
sourceRefs: string[];
|
|
30
|
+
productRefs: string[];
|
|
31
|
+
measurementRefs: string[];
|
|
32
|
+
assets: AssetCheck[];
|
|
33
|
+
issues: DocumentationIssue[];
|
|
34
|
+
}
|
|
35
|
+
interface DocumentationOptions {
|
|
36
|
+
/** Exact complete bytes keyed by source:/product: reference. No URLs are fetched. */
|
|
37
|
+
assets?: ReadonlyMap<string, Uint8Array>;
|
|
38
|
+
}
|
|
39
|
+
interface DocumentationResult {
|
|
40
|
+
success: boolean;
|
|
41
|
+
profile: typeof ASSESSMENT_DOCUMENTATION_PROFILE;
|
|
42
|
+
contract: ReturnType<typeof parseExperimentalClaimHistory>['contract'];
|
|
43
|
+
checks: {
|
|
44
|
+
structural: Status$b;
|
|
45
|
+
semantic: Status$b;
|
|
46
|
+
profile: Status$b;
|
|
47
|
+
external: Status$b;
|
|
48
|
+
};
|
|
49
|
+
scientific: 'not_checked';
|
|
50
|
+
locatorContents: 'not_checked';
|
|
51
|
+
methodExecution: 'not_checked';
|
|
52
|
+
assessments: AssessmentDocumentation[];
|
|
53
|
+
issues: DocumentationIssue[];
|
|
54
|
+
}
|
|
55
|
+
/** Documentary preflight plus local byte integrity, not scientific or locator-content verification. */
|
|
56
|
+
declare function evaluateAssessmentDocumentation(input: unknown, options?: DocumentationOptions): Promise<DocumentationResult>;
|
|
57
|
+
|
|
58
|
+
declare const ACQUISITION_BINDINGS_SCHEMA_ID = "urn:disclosureos:experimental:acquisition-bindings:0.1.0";
|
|
59
|
+
declare const AcquisitionBindingsSchema: z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"acquisition_bindings">;
|
|
61
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
historyId: z.ZodString;
|
|
64
|
+
observationId: z.ZodString;
|
|
65
|
+
contextId: z.ZodString;
|
|
66
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
67
|
+
sourceRef: z.ZodString;
|
|
68
|
+
instrumentRef: z.ZodString;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
products: z.ZodArray<z.ZodObject<{
|
|
71
|
+
observationProductRef: z.ZodString;
|
|
72
|
+
contextProductRef: z.ZodString;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
type AcquisitionBindings = z.infer<typeof AcquisitionBindingsSchema>;
|
|
77
|
+
declare function acquisitionBindingsJsonSchema(): Record<string, unknown>;
|
|
78
|
+
|
|
79
|
+
declare const ACQUISITION_BINDINGS_PROFILE: Readonly<{
|
|
80
|
+
readonly id: "urn:disclosureos:experimental:profile:acquisition-bindings";
|
|
81
|
+
readonly version: "0.1.0";
|
|
82
|
+
readonly scope: "product_identity_and_declared_context";
|
|
83
|
+
}>;
|
|
84
|
+
type Status$a = 'passed' | 'failed' | 'not_checked';
|
|
85
|
+
type BindingIssueCode = ClaimHistoryIssueCode | AcquisitionContextIssueCode | 'BINDING.DOCUMENT_ID' | 'BINDING.SOURCE_KIND' | 'BINDING.RAW_REQUIRED' | 'BINDING.DIGEST_MISMATCH' | 'BINDING.FORMAT_MISMATCH' | 'BINDING.SOURCE_IDENTITY' | 'BINDING.PRODUCT_REQUIRED' | 'BINDING.SOURCE_REQUIRED' | 'BINDING.DIGEST_REQUIRED' | 'BINDING.CONTEXT_INCOMPLETE' | 'BINDING.NO_INSTRUMENT_PRODUCTS' | 'EXTERNAL.ASSET_UNAVAILABLE' | 'EXTERNAL.DIGEST_MISMATCH' | 'EXTERNAL.SIZE_MISMATCH' | 'EXTERNAL.HASH_UNAVAILABLE' | 'EXTERNAL.EMPTY_ASSET';
|
|
86
|
+
interface BindingIssue {
|
|
87
|
+
code: BindingIssueCode;
|
|
88
|
+
stage: 'structural' | 'semantic' | 'profile' | 'external';
|
|
89
|
+
severity: 'error' | 'warning';
|
|
90
|
+
pointer: string;
|
|
91
|
+
message: string;
|
|
92
|
+
}
|
|
93
|
+
interface BindingAssetCheck {
|
|
94
|
+
ref: string;
|
|
95
|
+
status: Status$a;
|
|
96
|
+
pointer: string;
|
|
97
|
+
expectedSha256: string;
|
|
98
|
+
expectedByteLength: number;
|
|
99
|
+
actualSha256?: string;
|
|
100
|
+
actualByteLength?: number;
|
|
101
|
+
}
|
|
102
|
+
interface ProductBindingCheck {
|
|
103
|
+
observationProductRef: string;
|
|
104
|
+
contextProductRef: string;
|
|
105
|
+
acquisitionRef: string;
|
|
106
|
+
instrumentRef: string;
|
|
107
|
+
assetRefs: string[];
|
|
108
|
+
status: Status$a;
|
|
109
|
+
issues: BindingIssue[];
|
|
110
|
+
}
|
|
111
|
+
interface AcquisitionBindingOptions {
|
|
112
|
+
/** Context-scoped keys: product:ID, manifest:ID, calibration:ID/report, calibration:ID/review. */
|
|
113
|
+
assets?: ReadonlyMap<string, Uint8Array>;
|
|
114
|
+
}
|
|
115
|
+
interface AcquisitionBindingResult {
|
|
116
|
+
success: boolean;
|
|
117
|
+
profile: typeof ACQUISITION_BINDINGS_PROFILE;
|
|
118
|
+
contracts: {
|
|
119
|
+
history: ReturnType<typeof parseExperimentalClaimHistory>['contract'];
|
|
120
|
+
context: ReturnType<typeof parseAcquisitionContext>['contract'];
|
|
121
|
+
bindings: {
|
|
122
|
+
schemaId: typeof ACQUISITION_BINDINGS_SCHEMA_ID;
|
|
123
|
+
rulesetVersion: '0.1.0';
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
checks: {
|
|
127
|
+
structural: Status$a;
|
|
128
|
+
semantic: Status$a;
|
|
129
|
+
profile: Status$a;
|
|
130
|
+
external: Status$a;
|
|
131
|
+
};
|
|
132
|
+
scientific: 'not_checked';
|
|
133
|
+
identityAuthenticity: 'not_checked';
|
|
134
|
+
artifactContents: 'not_checked';
|
|
135
|
+
bindings: ProductBindingCheck[];
|
|
136
|
+
assets: BindingAssetCheck[];
|
|
137
|
+
issues: BindingIssue[];
|
|
138
|
+
}
|
|
139
|
+
/** Explicit cross-document links and local byte identity. Does not authenticate an instrument or calibrate a measurement. */
|
|
140
|
+
declare function evaluateAcquisitionBindings(historyInput: unknown, contextInput: unknown, bindingsInput: unknown, options?: AcquisitionBindingOptions): Promise<AcquisitionBindingResult>;
|
|
141
|
+
|
|
142
|
+
declare const MEASUREMENT_BINDINGS_SCHEMA_ID = "urn:disclosureos:experimental:measurement-bindings:0.1.0";
|
|
143
|
+
declare const MEASUREMENT_BINDINGS_PROFILE: Readonly<{
|
|
144
|
+
readonly id: "urn:disclosureos:experimental:profile:measurement-bindings";
|
|
145
|
+
readonly version: "0.1.0";
|
|
146
|
+
readonly scope: "single_channel_declared_capture";
|
|
147
|
+
}>;
|
|
148
|
+
declare const MeasurementBindingsSchema: z.ZodObject<{
|
|
149
|
+
kind: z.ZodLiteral<"measurement_bindings">;
|
|
150
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
historyId: z.ZodString;
|
|
153
|
+
observationId: z.ZodString;
|
|
154
|
+
contextId: z.ZodString;
|
|
155
|
+
acquisitionBindingsId: z.ZodString;
|
|
156
|
+
measurements: z.ZodArray<z.ZodObject<{
|
|
157
|
+
measurementRef: z.ZodString;
|
|
158
|
+
observationProductRef: z.ZodString;
|
|
159
|
+
channelId: z.ZodString;
|
|
160
|
+
time: z.ZodUnion<readonly [z.ZodObject<{
|
|
161
|
+
state: z.ZodLiteral<"unknown">;
|
|
162
|
+
reason: z.ZodString;
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
state: z.ZodLiteral<"known">;
|
|
165
|
+
kind: z.ZodLiteral<"instant">;
|
|
166
|
+
value: z.ZodString;
|
|
167
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
168
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
169
|
+
state: z.ZodLiteral<"known">;
|
|
170
|
+
kind: z.ZodLiteral<"interval">;
|
|
171
|
+
start: z.ZodString;
|
|
172
|
+
end: z.ZodString;
|
|
173
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
174
|
+
}, z.core.$strict>]>;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
type MeasurementBindings = z.infer<typeof MeasurementBindingsSchema>;
|
|
179
|
+
declare function measurementBindingsJsonSchema(): Record<string, unknown>;
|
|
180
|
+
type Status$9 = "passed" | "failed" | "not_checked";
|
|
181
|
+
interface MeasurementBindingIssue {
|
|
182
|
+
code: string;
|
|
183
|
+
stage: "structural" | "semantic" | "profile" | "external";
|
|
184
|
+
severity: "error" | "warning";
|
|
185
|
+
pointer: string;
|
|
186
|
+
message: string;
|
|
187
|
+
}
|
|
188
|
+
interface MeasurementBindingResult {
|
|
189
|
+
success: boolean;
|
|
190
|
+
profile: typeof MEASUREMENT_BINDINGS_PROFILE;
|
|
191
|
+
contract: {
|
|
192
|
+
schemaId: typeof MEASUREMENT_BINDINGS_SCHEMA_ID;
|
|
193
|
+
rulesetVersion: "0.1.0";
|
|
194
|
+
};
|
|
195
|
+
checks: {
|
|
196
|
+
structural: Status$9;
|
|
197
|
+
semantic: Status$9;
|
|
198
|
+
profile: Status$9;
|
|
199
|
+
external: Status$9;
|
|
200
|
+
};
|
|
201
|
+
issues: MeasurementBindingIssue[];
|
|
202
|
+
acquisition: AcquisitionBindingResult | null;
|
|
203
|
+
scientific: "not_checked";
|
|
204
|
+
clockUncertainty: "not_checked";
|
|
205
|
+
artifactContents: "not_checked";
|
|
206
|
+
}
|
|
207
|
+
/** Checks declared single-channel support and nominal capture containment, then verifies local acquisition bytes. */
|
|
208
|
+
declare function evaluateMeasurementBindings(historyInput: unknown, contextInput: unknown, acquisitionBindingsInput: unknown, measurementBindingsInput: unknown, options?: AcquisitionBindingOptions): Promise<MeasurementBindingResult>;
|
|
209
|
+
|
|
210
|
+
declare const INSTRUMENT_RESEARCH_REVIEW_SCHEMA_ID = "urn:disclosureos:experimental:instrument-research-review:0.1.0";
|
|
211
|
+
declare const INSTRUMENT_RESEARCH_PREREQUISITES_PROFILE: Readonly<{
|
|
212
|
+
readonly id: "urn:disclosureos:experimental:profile:instrument-research-prerequisites";
|
|
213
|
+
readonly version: "0.1.0";
|
|
214
|
+
readonly scope: "reviewed_declared_inputs";
|
|
215
|
+
}>;
|
|
216
|
+
declare const InstrumentResearchReviewSchema: z.ZodObject<{
|
|
217
|
+
kind: z.ZodLiteral<"instrument_research_review">;
|
|
218
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
historyId: z.ZodString;
|
|
221
|
+
observationId: z.ZodString;
|
|
222
|
+
contextId: z.ZodString;
|
|
223
|
+
acquisitionBindingsId: z.ZodString;
|
|
224
|
+
measurementBindingsId: z.ZodString;
|
|
225
|
+
purpose: z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
version: z.ZodString;
|
|
228
|
+
description: z.ZodString;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
measurements: z.ZodArray<z.ZodObject<{
|
|
231
|
+
measurementRef: z.ZodString;
|
|
232
|
+
calibrationRef: z.ZodString;
|
|
233
|
+
calibrationUse: z.ZodUnion<readonly [z.ZodObject<{
|
|
234
|
+
state: z.ZodLiteral<"unreviewed">;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
state: z.ZodLiteral<"reviewed">;
|
|
237
|
+
reviewedBy: z.ZodString;
|
|
238
|
+
reviewedAt: z.ZodString;
|
|
239
|
+
outcome: z.ZodEnum<{
|
|
240
|
+
inconclusive: "inconclusive";
|
|
241
|
+
accepted: "accepted";
|
|
242
|
+
rejected: "rejected";
|
|
243
|
+
}>;
|
|
244
|
+
rationale: z.ZodString;
|
|
245
|
+
method: z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
version: z.ZodString;
|
|
248
|
+
description: z.ZodString;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
report: z.ZodObject<{
|
|
251
|
+
digest: z.ZodObject<{
|
|
252
|
+
algorithm: z.ZodLiteral<"sha256">;
|
|
253
|
+
value: z.ZodString;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
mediaType: z.ZodString;
|
|
256
|
+
byteLength: z.ZodNumber;
|
|
257
|
+
}, z.core.$strict>;
|
|
258
|
+
}, z.core.$strict>]>;
|
|
259
|
+
timing: z.ZodUnion<readonly [z.ZodObject<{
|
|
260
|
+
kind: z.ZodLiteral<"unknown">;
|
|
261
|
+
reason: z.ZodString;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
lower: z.ZodString;
|
|
264
|
+
upper: z.ZodString;
|
|
265
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
266
|
+
assumptions: z.ZodArray<z.ZodString>;
|
|
267
|
+
review: z.ZodUnion<readonly [z.ZodObject<{
|
|
268
|
+
state: z.ZodLiteral<"unreviewed">;
|
|
269
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
270
|
+
state: z.ZodLiteral<"reviewed">;
|
|
271
|
+
reviewedBy: z.ZodString;
|
|
272
|
+
reviewedAt: z.ZodString;
|
|
273
|
+
outcome: z.ZodEnum<{
|
|
274
|
+
inconclusive: "inconclusive";
|
|
275
|
+
accepted: "accepted";
|
|
276
|
+
rejected: "rejected";
|
|
277
|
+
}>;
|
|
278
|
+
rationale: z.ZodString;
|
|
279
|
+
method: z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
version: z.ZodString;
|
|
282
|
+
description: z.ZodString;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
report: z.ZodObject<{
|
|
285
|
+
digest: z.ZodObject<{
|
|
286
|
+
algorithm: z.ZodLiteral<"sha256">;
|
|
287
|
+
value: z.ZodString;
|
|
288
|
+
}, z.core.$strict>;
|
|
289
|
+
mediaType: z.ZodString;
|
|
290
|
+
byteLength: z.ZodNumber;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
}, z.core.$strict>]>;
|
|
293
|
+
kind: z.ZodLiteral<"bound">;
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
295
|
+
coverageProbability: z.ZodNumber;
|
|
296
|
+
lower: z.ZodString;
|
|
297
|
+
upper: z.ZodString;
|
|
298
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
299
|
+
assumptions: z.ZodArray<z.ZodString>;
|
|
300
|
+
review: z.ZodUnion<readonly [z.ZodObject<{
|
|
301
|
+
state: z.ZodLiteral<"unreviewed">;
|
|
302
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
303
|
+
state: z.ZodLiteral<"reviewed">;
|
|
304
|
+
reviewedBy: z.ZodString;
|
|
305
|
+
reviewedAt: z.ZodString;
|
|
306
|
+
outcome: z.ZodEnum<{
|
|
307
|
+
inconclusive: "inconclusive";
|
|
308
|
+
accepted: "accepted";
|
|
309
|
+
rejected: "rejected";
|
|
310
|
+
}>;
|
|
311
|
+
rationale: z.ZodString;
|
|
312
|
+
method: z.ZodObject<{
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
version: z.ZodString;
|
|
315
|
+
description: z.ZodString;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
report: z.ZodObject<{
|
|
318
|
+
digest: z.ZodObject<{
|
|
319
|
+
algorithm: z.ZodLiteral<"sha256">;
|
|
320
|
+
value: z.ZodString;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
mediaType: z.ZodString;
|
|
323
|
+
byteLength: z.ZodNumber;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
}, z.core.$strict>]>;
|
|
326
|
+
kind: z.ZodLiteral<"coverage_interval">;
|
|
327
|
+
}, z.core.$strict>]>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
330
|
+
}, z.core.$strict>;
|
|
331
|
+
type InstrumentResearchReview = z.infer<typeof InstrumentResearchReviewSchema>;
|
|
332
|
+
declare function instrumentResearchReviewJsonSchema(): Record<string, unknown>;
|
|
333
|
+
type Status$8 = "passed" | "failed" | "not_checked";
|
|
334
|
+
interface InstrumentResearchOptions {
|
|
335
|
+
observationAssets?: ReadonlyMap<string, Uint8Array>;
|
|
336
|
+
contextAssets?: ReadonlyMap<string, Uint8Array>;
|
|
337
|
+
/** Separate namespace: measurement:ID/calibration-use and measurement:ID/timing. */
|
|
338
|
+
reviewAssets?: ReadonlyMap<string, Uint8Array>;
|
|
339
|
+
}
|
|
340
|
+
interface ResearchReviewAssetCheck {
|
|
341
|
+
ref: string;
|
|
342
|
+
status: Status$8;
|
|
343
|
+
expectedSha256: string;
|
|
344
|
+
expectedByteLength: number;
|
|
345
|
+
actualSha256?: string;
|
|
346
|
+
actualByteLength?: number;
|
|
347
|
+
}
|
|
348
|
+
interface InstrumentResearchResult {
|
|
349
|
+
success: boolean;
|
|
350
|
+
profile: typeof INSTRUMENT_RESEARCH_PREREQUISITES_PROFILE;
|
|
351
|
+
contract: {
|
|
352
|
+
schemaId: typeof INSTRUMENT_RESEARCH_REVIEW_SCHEMA_ID;
|
|
353
|
+
rulesetVersion: "0.1.0";
|
|
354
|
+
};
|
|
355
|
+
checks: {
|
|
356
|
+
structural: Status$8;
|
|
357
|
+
semantic: Status$8;
|
|
358
|
+
profile: Status$8;
|
|
359
|
+
external: Status$8;
|
|
360
|
+
};
|
|
361
|
+
review: {
|
|
362
|
+
id: string;
|
|
363
|
+
purpose: InstrumentResearchReview["purpose"];
|
|
364
|
+
} | null;
|
|
365
|
+
issues: MeasurementBindingIssue[];
|
|
366
|
+
documentation: DocumentationResult | null;
|
|
367
|
+
measurements: MeasurementBindingResult | null;
|
|
368
|
+
reviewAssets: ResearchReviewAssetCheck[];
|
|
369
|
+
scientificEligibility: "not_checked";
|
|
370
|
+
calibrationAdequacy: "not_checked";
|
|
371
|
+
timingModel: "not_checked";
|
|
372
|
+
reviewerAuthenticity: "not_checked";
|
|
373
|
+
}
|
|
374
|
+
/** Assesses documented prerequisites, not scientific validity or reviewer competence. */
|
|
375
|
+
declare function evaluateInstrumentResearchPrerequisites(historyInput: unknown, contextInput: unknown, acquisitionBindingsInput: unknown, measurementBindingsInput: unknown, reviewInput: unknown, options?: InstrumentResearchOptions): Promise<InstrumentResearchResult>;
|
|
376
|
+
|
|
377
|
+
declare const REPRODUCTION_PACKET_SCHEMA_ID = "urn:disclosureos:experimental:reproduction-packet:0.1.0";
|
|
378
|
+
declare const REPRODUCTION_PACKET_PROFILE: Readonly<{
|
|
379
|
+
readonly id: "urn:disclosureos:experimental:profile:reproduction-packet";
|
|
380
|
+
readonly version: "0.1.0";
|
|
381
|
+
readonly scope: "exact_bytes_and_research_prerequisites";
|
|
382
|
+
}>;
|
|
383
|
+
declare const ReproductionPacketSchema: z.ZodObject<{
|
|
384
|
+
kind: z.ZodLiteral<"reproduction_packet">;
|
|
385
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
researchProfile: z.ZodLiteral<"urn:disclosureos:experimental:profile:instrument-research-prerequisites:0.1.0">;
|
|
388
|
+
files: z.ZodArray<z.ZodObject<{
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
sha256: z.ZodString;
|
|
391
|
+
byteLength: z.ZodNumber;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
documents: z.ZodObject<{
|
|
394
|
+
history: z.ZodString;
|
|
395
|
+
context: z.ZodString;
|
|
396
|
+
acquisitionBindings: z.ZodString;
|
|
397
|
+
measurementBindings: z.ZodString;
|
|
398
|
+
review: z.ZodString;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
assets: z.ZodObject<{
|
|
401
|
+
observation: z.ZodArray<z.ZodObject<{
|
|
402
|
+
ref: z.ZodString;
|
|
403
|
+
fileRef: z.ZodString;
|
|
404
|
+
}, z.core.$strict>>;
|
|
405
|
+
context: z.ZodArray<z.ZodObject<{
|
|
406
|
+
ref: z.ZodString;
|
|
407
|
+
fileRef: z.ZodString;
|
|
408
|
+
}, z.core.$strict>>;
|
|
409
|
+
review: z.ZodArray<z.ZodObject<{
|
|
410
|
+
ref: z.ZodString;
|
|
411
|
+
fileRef: z.ZodString;
|
|
412
|
+
}, z.core.$strict>>;
|
|
413
|
+
}, z.core.$strict>;
|
|
414
|
+
method: z.ZodObject<{
|
|
415
|
+
id: z.ZodString;
|
|
416
|
+
version: z.ZodString;
|
|
417
|
+
description: z.ZodString;
|
|
418
|
+
inputRef: z.ZodString;
|
|
419
|
+
expectedOutputRef: z.ZodString;
|
|
420
|
+
measurementRef: z.ZodString;
|
|
421
|
+
unit: z.ZodString;
|
|
422
|
+
absoluteTolerance: z.ZodNumber;
|
|
423
|
+
implementations: z.ZodArray<z.ZodObject<{
|
|
424
|
+
id: z.ZodString;
|
|
425
|
+
artifactRef: z.ZodString;
|
|
426
|
+
environmentRef: z.ZodString;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
}, z.core.$strict>;
|
|
430
|
+
type ReproductionPacket = z.infer<typeof ReproductionPacketSchema>;
|
|
431
|
+
declare function reproductionPacketJsonSchema(): Record<string, unknown>;
|
|
432
|
+
type Status$7 = "passed" | "failed" | "not_checked";
|
|
433
|
+
interface ReproductionFileCheck {
|
|
434
|
+
id: string;
|
|
435
|
+
status: Status$7;
|
|
436
|
+
expectedSha256: string;
|
|
437
|
+
expectedByteLength: number;
|
|
438
|
+
actualSha256?: string;
|
|
439
|
+
actualByteLength?: number;
|
|
440
|
+
}
|
|
441
|
+
interface ReproductionPacketResult {
|
|
442
|
+
success: boolean;
|
|
443
|
+
profile: typeof REPRODUCTION_PACKET_PROFILE;
|
|
444
|
+
contract: {
|
|
445
|
+
schemaId: typeof REPRODUCTION_PACKET_SCHEMA_ID;
|
|
446
|
+
rulesetVersion: "0.1.0";
|
|
447
|
+
};
|
|
448
|
+
checks: {
|
|
449
|
+
structural: Status$7;
|
|
450
|
+
semantic: Status$7;
|
|
451
|
+
profile: Status$7;
|
|
452
|
+
external: Status$7;
|
|
453
|
+
};
|
|
454
|
+
packetId?: string;
|
|
455
|
+
method?: ReproductionPacket["method"];
|
|
456
|
+
files: ReproductionFileCheck[];
|
|
457
|
+
issues: {
|
|
458
|
+
code: string;
|
|
459
|
+
pointer: string;
|
|
460
|
+
message: string;
|
|
461
|
+
}[];
|
|
462
|
+
research: InstrumentResearchResult | null;
|
|
463
|
+
methodExecution: "not_checked";
|
|
464
|
+
environmentExecution: "not_checked";
|
|
465
|
+
scientificEligibility: "not_checked";
|
|
466
|
+
}
|
|
467
|
+
/** Pins exact supplied bytes and composes research prerequisites. Never fetches files or executes bundled code. */
|
|
468
|
+
declare function evaluateReproductionPacket(input: unknown, options?: {
|
|
469
|
+
files?: ReadonlyMap<string, Uint8Array>;
|
|
470
|
+
}): Promise<ReproductionPacketResult>;
|
|
471
|
+
|
|
472
|
+
declare const DATASET_RELEASE_SCHEMA_ID = "urn:disclosureos:experimental:dataset-release:0.1.0";
|
|
473
|
+
declare const DATASET_RELEASE_PROFILE: Readonly<{
|
|
474
|
+
readonly id: "urn:disclosureos:experimental:profile:dataset-release";
|
|
475
|
+
readonly version: "0.1.0";
|
|
476
|
+
readonly scope: "pinned_packets_and_nominal_session_membership";
|
|
477
|
+
}>;
|
|
478
|
+
declare const DatasetReleaseSchema: z.ZodObject<{
|
|
479
|
+
kind: z.ZodLiteral<"dataset_release">;
|
|
480
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
481
|
+
id: z.ZodString;
|
|
482
|
+
version: z.ZodString;
|
|
483
|
+
title: z.ZodString;
|
|
484
|
+
description: z.ZodString;
|
|
485
|
+
createdAt: z.ZodString;
|
|
486
|
+
access: z.ZodEnum<{
|
|
487
|
+
unknown: "unknown";
|
|
488
|
+
public: "public";
|
|
489
|
+
restricted: "restricted";
|
|
490
|
+
}>;
|
|
491
|
+
license: z.ZodUnion<readonly [z.ZodObject<{
|
|
492
|
+
state: z.ZodLiteral<"unknown">;
|
|
493
|
+
reason: z.ZodString;
|
|
494
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
495
|
+
state: z.ZodLiteral<"declared">;
|
|
496
|
+
identifier: z.ZodString;
|
|
497
|
+
}, z.core.$strict>]>;
|
|
498
|
+
packets: z.ZodArray<z.ZodObject<{
|
|
499
|
+
id: z.ZodString;
|
|
500
|
+
packetId: z.ZodString;
|
|
501
|
+
sha256: z.ZodString;
|
|
502
|
+
byteLength: z.ZodNumber;
|
|
503
|
+
}, z.core.$strict>>;
|
|
504
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
505
|
+
id: z.ZodString;
|
|
506
|
+
title: z.ZodString;
|
|
507
|
+
time: z.ZodUnion<readonly [z.ZodObject<{
|
|
508
|
+
state: z.ZodLiteral<"unknown">;
|
|
509
|
+
reason: z.ZodString;
|
|
510
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
511
|
+
state: z.ZodLiteral<"known">;
|
|
512
|
+
start: z.ZodString;
|
|
513
|
+
end: z.ZodString;
|
|
514
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
515
|
+
}, z.core.$strict>]>;
|
|
516
|
+
members: z.ZodArray<z.ZodObject<{
|
|
517
|
+
packetRef: z.ZodString;
|
|
518
|
+
acquisitionRef: z.ZodString;
|
|
519
|
+
}, z.core.$strict>>;
|
|
520
|
+
}, z.core.$strict>>;
|
|
521
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
522
|
+
}, z.core.$strict>;
|
|
523
|
+
type DatasetRelease = z.infer<typeof DatasetReleaseSchema>;
|
|
524
|
+
declare function datasetReleaseJsonSchema(): Record<string, unknown>;
|
|
525
|
+
interface DatasetPacketInput {
|
|
526
|
+
manifest: Uint8Array;
|
|
527
|
+
files: ReadonlyMap<string, Uint8Array>;
|
|
528
|
+
}
|
|
529
|
+
type Status$6 = "passed" | "failed" | "not_checked";
|
|
530
|
+
interface DatasetIssue {
|
|
531
|
+
code: string;
|
|
532
|
+
pointer: string;
|
|
533
|
+
message: string;
|
|
534
|
+
stage: "structural" | "semantic" | "profile" | "external";
|
|
535
|
+
}
|
|
536
|
+
interface DatasetReleaseResult {
|
|
537
|
+
success: boolean;
|
|
538
|
+
profile: typeof DATASET_RELEASE_PROFILE;
|
|
539
|
+
contract: {
|
|
540
|
+
schemaId: typeof DATASET_RELEASE_SCHEMA_ID;
|
|
541
|
+
rulesetVersion: "0.1.0";
|
|
542
|
+
};
|
|
543
|
+
checks: {
|
|
544
|
+
structural: Status$6;
|
|
545
|
+
semantic: Status$6;
|
|
546
|
+
profile: Status$6;
|
|
547
|
+
external: Status$6;
|
|
548
|
+
};
|
|
549
|
+
release?: {
|
|
550
|
+
id: string;
|
|
551
|
+
version: string;
|
|
552
|
+
};
|
|
553
|
+
issues: DatasetIssue[];
|
|
554
|
+
packets: {
|
|
555
|
+
packetRef: string;
|
|
556
|
+
manifestStatus: Status$6;
|
|
557
|
+
expectedSha256: string;
|
|
558
|
+
expectedByteLength: number;
|
|
559
|
+
actualSha256?: string;
|
|
560
|
+
actualByteLength?: number;
|
|
561
|
+
validation: ReproductionPacketResult | null;
|
|
562
|
+
}[];
|
|
563
|
+
sessions: {
|
|
564
|
+
sessionRef: string;
|
|
565
|
+
status: Status$6;
|
|
566
|
+
members: {
|
|
567
|
+
packetRef: string;
|
|
568
|
+
acquisitionRef: string;
|
|
569
|
+
classification?: string;
|
|
570
|
+
status: Status$6;
|
|
571
|
+
}[];
|
|
572
|
+
}[];
|
|
573
|
+
scientificEligibility: "not_checked";
|
|
574
|
+
authorization: "not_checked";
|
|
575
|
+
crossInstrumentIdentity: "not_checked";
|
|
576
|
+
}
|
|
577
|
+
/** Verifies exact packet manifests and explicit nominal session membership. Does not infer simultaneity or physical identity. */
|
|
578
|
+
declare function evaluateDatasetRelease(input: unknown, options?: {
|
|
579
|
+
packets?: ReadonlyMap<string, DatasetPacketInput>;
|
|
580
|
+
}): Promise<DatasetReleaseResult>;
|
|
581
|
+
|
|
582
|
+
declare const SOURCE_INTAKE_SCHEMA_ID = "urn:disclosureos:experimental:source-intake:0.1.0";
|
|
583
|
+
declare const SOURCE_INTAKE_PROFILE: Readonly<{
|
|
584
|
+
readonly id: "urn:disclosureos:experimental:profile:source-intake";
|
|
585
|
+
readonly version: "0.1.0";
|
|
586
|
+
readonly scope: "local_file_receipt_identity";
|
|
587
|
+
}>;
|
|
588
|
+
declare const SourceIntakeSchema: z.ZodObject<{
|
|
589
|
+
kind: z.ZodLiteral<"source_intake">;
|
|
590
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
591
|
+
id: z.ZodString;
|
|
592
|
+
receivedAt: z.ZodString;
|
|
593
|
+
source: z.ZodObject<{
|
|
594
|
+
publisher: z.ZodUnion<readonly [z.ZodObject<{
|
|
595
|
+
state: z.ZodLiteral<"unknown">;
|
|
596
|
+
reason: z.ZodString;
|
|
597
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
598
|
+
state: z.ZodLiteral<"declared">;
|
|
599
|
+
value: z.ZodString;
|
|
600
|
+
}, z.core.$strict>]>;
|
|
601
|
+
uri: z.ZodOptional<z.ZodURL>;
|
|
602
|
+
}, z.core.$strict>;
|
|
603
|
+
access: z.ZodEnum<{
|
|
604
|
+
unknown: "unknown";
|
|
605
|
+
public: "public";
|
|
606
|
+
restricted: "restricted";
|
|
607
|
+
}>;
|
|
608
|
+
license: z.ZodUnion<readonly [z.ZodObject<{
|
|
609
|
+
state: z.ZodLiteral<"unknown">;
|
|
610
|
+
reason: z.ZodString;
|
|
611
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
612
|
+
state: z.ZodLiteral<"declared">;
|
|
613
|
+
value: z.ZodString;
|
|
614
|
+
}, z.core.$strict>]>;
|
|
615
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
616
|
+
id: z.ZodString;
|
|
617
|
+
originalName: z.ZodString;
|
|
618
|
+
role: z.ZodEnum<{
|
|
619
|
+
unknown: "unknown";
|
|
620
|
+
derived: "derived";
|
|
621
|
+
documentation: "documentation";
|
|
622
|
+
native_raw: "native_raw";
|
|
623
|
+
source_export: "source_export";
|
|
624
|
+
}>;
|
|
625
|
+
format: z.ZodUnion<readonly [z.ZodObject<{
|
|
626
|
+
state: z.ZodLiteral<"unknown">;
|
|
627
|
+
reason: z.ZodString;
|
|
628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
629
|
+
state: z.ZodLiteral<"declared">;
|
|
630
|
+
value: z.ZodString;
|
|
631
|
+
}, z.core.$strict>]>;
|
|
632
|
+
sha256: z.ZodString;
|
|
633
|
+
byteLength: z.ZodNumber;
|
|
634
|
+
context: z.ZodObject<{
|
|
635
|
+
instrument: z.ZodUnion<readonly [z.ZodObject<{
|
|
636
|
+
state: z.ZodLiteral<"unknown">;
|
|
637
|
+
reason: z.ZodString;
|
|
638
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
639
|
+
state: z.ZodLiteral<"declared">;
|
|
640
|
+
value: z.ZodString;
|
|
641
|
+
}, z.core.$strict>]>;
|
|
642
|
+
calibration: z.ZodUnion<readonly [z.ZodObject<{
|
|
643
|
+
state: z.ZodLiteral<"unknown">;
|
|
644
|
+
reason: z.ZodString;
|
|
645
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
646
|
+
state: z.ZodLiteral<"declared">;
|
|
647
|
+
value: z.ZodString;
|
|
648
|
+
}, z.core.$strict>]>;
|
|
649
|
+
clock: z.ZodUnion<readonly [z.ZodObject<{
|
|
650
|
+
state: z.ZodLiteral<"unknown">;
|
|
651
|
+
reason: z.ZodString;
|
|
652
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
653
|
+
state: z.ZodLiteral<"declared">;
|
|
654
|
+
value: z.ZodString;
|
|
655
|
+
}, z.core.$strict>]>;
|
|
656
|
+
acquisitionTime: z.ZodUnion<readonly [z.ZodObject<{
|
|
657
|
+
state: z.ZodLiteral<"unknown">;
|
|
658
|
+
reason: z.ZodString;
|
|
659
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
660
|
+
state: z.ZodLiteral<"declared">;
|
|
661
|
+
kind: z.ZodLiteral<"instant">;
|
|
662
|
+
value: z.ZodString;
|
|
663
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
664
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
665
|
+
state: z.ZodLiteral<"declared">;
|
|
666
|
+
kind: z.ZodLiteral<"interval">;
|
|
667
|
+
start: z.ZodString;
|
|
668
|
+
end: z.ZodString;
|
|
669
|
+
timeScale: z.ZodLiteral<"UTC">;
|
|
670
|
+
}, z.core.$strict>]>;
|
|
671
|
+
}, z.core.$strict>;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
674
|
+
}, z.core.$strict>;
|
|
675
|
+
type SourceIntake = z.infer<typeof SourceIntakeSchema>;
|
|
676
|
+
declare function sourceIntakeJsonSchema(): Record<string, unknown>;
|
|
677
|
+
type Status$5 = "passed" | "failed" | "not_checked";
|
|
678
|
+
interface SourceIntakeResult {
|
|
679
|
+
success: boolean;
|
|
680
|
+
profile: typeof SOURCE_INTAKE_PROFILE;
|
|
681
|
+
contract: {
|
|
682
|
+
schemaId: typeof SOURCE_INTAKE_SCHEMA_ID;
|
|
683
|
+
rulesetVersion: "0.1.0";
|
|
684
|
+
};
|
|
685
|
+
checks: {
|
|
686
|
+
structural: Status$5;
|
|
687
|
+
semantic: Status$5;
|
|
688
|
+
profile: Status$5;
|
|
689
|
+
external: Status$5;
|
|
690
|
+
};
|
|
691
|
+
issues: {
|
|
692
|
+
code: string;
|
|
693
|
+
stage: "structural" | "semantic" | "external";
|
|
694
|
+
pointer: string;
|
|
695
|
+
message: string;
|
|
696
|
+
}[];
|
|
697
|
+
gaps: {
|
|
698
|
+
pointer: string;
|
|
699
|
+
reason: string;
|
|
700
|
+
nextAction: string;
|
|
701
|
+
}[];
|
|
702
|
+
files: {
|
|
703
|
+
id: string;
|
|
704
|
+
status: Status$5;
|
|
705
|
+
expectedSha256: string;
|
|
706
|
+
expectedByteLength: number;
|
|
707
|
+
actualSha256?: string;
|
|
708
|
+
actualByteLength?: number;
|
|
709
|
+
}[];
|
|
710
|
+
researchEligibility: "not_checked";
|
|
711
|
+
artifactContents: "not_checked";
|
|
712
|
+
authorization: "not_checked";
|
|
713
|
+
}
|
|
714
|
+
/** Receipt integrity only: missing context never requires fabricated observations or reviews. */
|
|
715
|
+
declare function evaluateSourceIntake(input: unknown, options?: {
|
|
716
|
+
files?: ReadonlyMap<string, Uint8Array>;
|
|
717
|
+
}): Promise<SourceIntakeResult>;
|
|
718
|
+
|
|
719
|
+
declare const DOCUMENTATION_COMPLETION_POLICY: Readonly<{
|
|
720
|
+
readonly id: "urn:disclosureos:experimental:policy:documentation-completion";
|
|
721
|
+
readonly version: "0.1.0";
|
|
722
|
+
readonly scope: "assessment_documentation_requirements";
|
|
723
|
+
}>;
|
|
724
|
+
declare const DOCUMENTATION_REQUIREMENTS: readonly Readonly<{
|
|
725
|
+
readonly id: "assessment";
|
|
726
|
+
readonly label: "Attributed evaluator assessment";
|
|
727
|
+
} | {
|
|
728
|
+
readonly id: "documentary_support";
|
|
729
|
+
readonly label: "Traceable support, method descriptions and passage locators";
|
|
730
|
+
} | {
|
|
731
|
+
readonly id: "content_digests";
|
|
732
|
+
readonly label: "Supporting content digests";
|
|
733
|
+
} | {
|
|
734
|
+
readonly id: "content_integrity";
|
|
735
|
+
readonly label: "Local supporting content verification";
|
|
736
|
+
} | {
|
|
737
|
+
readonly id: "measurement";
|
|
738
|
+
readonly label: "Measurement matching the confirmed subject";
|
|
739
|
+
} | {
|
|
740
|
+
readonly id: "event_time";
|
|
741
|
+
readonly label: "Supplied event time";
|
|
742
|
+
} | {
|
|
743
|
+
readonly id: "measurement_uncertainty";
|
|
744
|
+
readonly label: "Characterized measurement uncertainty";
|
|
745
|
+
} | {
|
|
746
|
+
readonly id: "raw_product_lineage";
|
|
747
|
+
readonly label: "Primary instrument product lineage";
|
|
748
|
+
} | {
|
|
749
|
+
readonly id: "reference_frames";
|
|
750
|
+
readonly label: "Declared measurement frame context";
|
|
751
|
+
}>[];
|
|
752
|
+
type DocumentationRequirementId = (typeof DOCUMENTATION_REQUIREMENTS)[number]["id"];
|
|
753
|
+
type CompletionStatus = "satisfied" | "missing" | "failed" | "not_checked" | "not_applicable";
|
|
754
|
+
interface DocumentationAction extends DocumentationIssue {
|
|
755
|
+
nextAction: string;
|
|
756
|
+
}
|
|
757
|
+
interface DocumentationRequirement {
|
|
758
|
+
id: DocumentationRequirementId;
|
|
759
|
+
label: string;
|
|
760
|
+
importance: "required";
|
|
761
|
+
applicability: "applicable" | "not_applicable" | "not_checked";
|
|
762
|
+
status: CompletionStatus;
|
|
763
|
+
reason: string;
|
|
764
|
+
actions: DocumentationAction[];
|
|
765
|
+
blockedBy: DocumentationRequirementId[];
|
|
766
|
+
}
|
|
767
|
+
interface AssessmentDocumentationCompletion {
|
|
768
|
+
claimRef: string;
|
|
769
|
+
topic: string;
|
|
770
|
+
subject: ClaimSubject;
|
|
771
|
+
/** The existing documentary profile remains authoritative. */
|
|
772
|
+
documentationStatus: "passed" | "failed" | "not_checked";
|
|
773
|
+
requirements: DocumentationRequirement[];
|
|
774
|
+
/** Counts of checklist groups, not evidence volume, percentages, weights or scores. */
|
|
775
|
+
counts: Record<CompletionStatus, number>;
|
|
776
|
+
}
|
|
777
|
+
interface DocumentationCompletionResult {
|
|
778
|
+
policy: typeof DOCUMENTATION_COMPLETION_POLICY;
|
|
779
|
+
applicability: {
|
|
780
|
+
state: "applicable" | "not_applicable" | "not_checked";
|
|
781
|
+
reason: string;
|
|
782
|
+
};
|
|
783
|
+
validation: DocumentationResult;
|
|
784
|
+
assessments: AssessmentDocumentationCompletion[];
|
|
785
|
+
actions: DocumentationAction[];
|
|
786
|
+
scientificEligibility: "not_checked";
|
|
787
|
+
artifactContents: "not_checked";
|
|
788
|
+
methodExecution: "not_checked";
|
|
789
|
+
}
|
|
790
|
+
/** Explain the existing documentary profile; never accept caller-asserted completion flags. */
|
|
791
|
+
declare function evaluateDocumentationCompletion(input: unknown, options?: DocumentationOptions): Promise<DocumentationCompletionResult>;
|
|
792
|
+
|
|
793
|
+
declare const INSTRUMENT_RESEARCH_COMPLETION_POLICY: Readonly<{
|
|
794
|
+
readonly id: "urn:disclosureos:experimental:policy:instrument-research-completion";
|
|
795
|
+
readonly version: "0.1.0";
|
|
796
|
+
readonly scope: "selected_instrument_research_prerequisites";
|
|
797
|
+
}>;
|
|
798
|
+
declare const INSTRUMENT_RESEARCH_REQUIREMENTS: readonly Readonly<{
|
|
799
|
+
readonly id: "input_consistency";
|
|
800
|
+
readonly label: "Reported structural and semantic consistency";
|
|
801
|
+
} | {
|
|
802
|
+
readonly id: "review_scope";
|
|
803
|
+
readonly label: "Nonempty mapped measurement review scope";
|
|
804
|
+
} | {
|
|
805
|
+
readonly id: "reviewed_context";
|
|
806
|
+
readonly label: "Calibration, uncertainty and interpreted timing prerequisites";
|
|
807
|
+
} | {
|
|
808
|
+
readonly id: "assessment_documentation";
|
|
809
|
+
readonly label: "Assessment documentation and supporting bytes";
|
|
810
|
+
} | {
|
|
811
|
+
readonly id: "measurement_acquisition";
|
|
812
|
+
readonly label: "Measurement and acquisition bindings with supporting bytes";
|
|
813
|
+
} | {
|
|
814
|
+
readonly id: "report_integrity";
|
|
815
|
+
readonly label: "Calibration-use and timing review report integrity";
|
|
816
|
+
}>[];
|
|
817
|
+
type ResearchRequirementId = (typeof INSTRUMENT_RESEARCH_REQUIREMENTS)[number]["id"];
|
|
818
|
+
type ResearchCompletionStatus = "satisfied" | "missing" | "failed" | "not_checked";
|
|
819
|
+
interface ResearchCompletionAction extends MeasurementBindingIssue {
|
|
820
|
+
nextAction: string;
|
|
821
|
+
measurementRef?: string;
|
|
822
|
+
}
|
|
823
|
+
interface ResearchCompletionRequirement {
|
|
824
|
+
id: ResearchRequirementId;
|
|
825
|
+
label: string;
|
|
826
|
+
importance: "required";
|
|
827
|
+
status: ResearchCompletionStatus;
|
|
828
|
+
reason: string;
|
|
829
|
+
blockedBy: ResearchRequirementId[];
|
|
830
|
+
actions: ResearchCompletionAction[];
|
|
831
|
+
}
|
|
832
|
+
interface InstrumentResearchCompletionResult {
|
|
833
|
+
policy: typeof INSTRUMENT_RESEARCH_COMPLETION_POLICY;
|
|
834
|
+
applicability: {
|
|
835
|
+
state: "selected";
|
|
836
|
+
reason: string;
|
|
837
|
+
};
|
|
838
|
+
validation: InstrumentResearchResult;
|
|
839
|
+
requirements: ResearchCompletionRequirement[];
|
|
840
|
+
counts: Record<ResearchCompletionStatus, number>;
|
|
841
|
+
actions: ResearchCompletionAction[];
|
|
842
|
+
scientificEligibility: "not_checked";
|
|
843
|
+
calibrationAdequacy: "not_checked";
|
|
844
|
+
timingModel: "not_checked";
|
|
845
|
+
reviewerAuthenticity: "not_checked";
|
|
846
|
+
}
|
|
847
|
+
/** Guidance for the explicitly selected profile. All validation is delegated, including early exits. */
|
|
848
|
+
declare function evaluateInstrumentResearchCompletion(historyInput: unknown, contextInput: unknown, acquisitionBindingsInput: unknown, measurementBindingsInput: unknown, reviewInput: unknown, options?: InstrumentResearchOptions): Promise<InstrumentResearchCompletionResult>;
|
|
849
|
+
|
|
850
|
+
declare const RESEARCH_EVALUATION_SCHEMA_ID = "urn:disclosureos:experimental:research-evaluation:0.1.0";
|
|
851
|
+
declare const RESEARCH_EVALUATION_POLICY: Readonly<{
|
|
852
|
+
readonly id: "urn:disclosureos:experimental:policy:research-evaluation";
|
|
853
|
+
readonly version: "0.1.0";
|
|
854
|
+
readonly scope: "local_byte_identity_and_computed_prerequisites";
|
|
855
|
+
}>;
|
|
856
|
+
declare const ResearchEvaluationSchema: z.ZodObject<{
|
|
857
|
+
kind: z.ZodLiteral<"research_evaluation">;
|
|
858
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
859
|
+
id: z.ZodString;
|
|
860
|
+
workflow: z.ZodLiteral<"research-completion:0.1.0">;
|
|
861
|
+
packet: z.ZodObject<{
|
|
862
|
+
sha256: z.ZodString;
|
|
863
|
+
byteLength: z.ZodNumber;
|
|
864
|
+
}, z.core.$strict>;
|
|
865
|
+
dependencies: z.ZodObject<{
|
|
866
|
+
vocabularies: z.ZodArray<z.ZodObject<{
|
|
867
|
+
sha256: z.ZodString;
|
|
868
|
+
byteLength: z.ZodNumber;
|
|
869
|
+
ref: z.ZodString;
|
|
870
|
+
id: z.ZodString;
|
|
871
|
+
version: z.ZodString;
|
|
872
|
+
}, z.core.$strict>>;
|
|
873
|
+
implementation: z.ZodObject<{
|
|
874
|
+
sha256: z.ZodString;
|
|
875
|
+
byteLength: z.ZodNumber;
|
|
876
|
+
ref: z.ZodString;
|
|
877
|
+
id: z.ZodString;
|
|
878
|
+
version: z.ZodString;
|
|
879
|
+
}, z.core.$strict>;
|
|
880
|
+
environment: z.ZodObject<{
|
|
881
|
+
sha256: z.ZodString;
|
|
882
|
+
byteLength: z.ZodNumber;
|
|
883
|
+
ref: z.ZodString;
|
|
884
|
+
id: z.ZodString;
|
|
885
|
+
version: z.ZodString;
|
|
886
|
+
}, z.core.$strict>;
|
|
887
|
+
}, z.core.$strict>;
|
|
888
|
+
}, z.core.$strict>;
|
|
889
|
+
type ResearchEvaluation = z.infer<typeof ResearchEvaluationSchema>;
|
|
890
|
+
declare function researchEvaluationJsonSchema(): Record<string, unknown>;
|
|
891
|
+
type Status$4 = "passed" | "failed" | "not_checked";
|
|
892
|
+
interface ResearchEvaluationOptions {
|
|
893
|
+
packetBytes?: Uint8Array;
|
|
894
|
+
files?: ReadonlyMap<string, Uint8Array>;
|
|
895
|
+
dependencyFiles?: ReadonlyMap<string, Uint8Array>;
|
|
896
|
+
}
|
|
897
|
+
interface ResearchEvaluationOutput {
|
|
898
|
+
packet: ReproductionPacketResult;
|
|
899
|
+
completion: InstrumentResearchCompletionResult;
|
|
900
|
+
}
|
|
901
|
+
interface ResearchEvaluationReceipt {
|
|
902
|
+
format: "disclosureos-research-evaluation-receipt:0.1.0";
|
|
903
|
+
serialization: "sorted-json-utf8:0.1.0";
|
|
904
|
+
request: {
|
|
905
|
+
sha256: string;
|
|
906
|
+
byteLength: number;
|
|
907
|
+
};
|
|
908
|
+
output: {
|
|
909
|
+
sha256: string;
|
|
910
|
+
byteLength: number;
|
|
911
|
+
};
|
|
912
|
+
/** These exact strings are hashed as UTF-8; no trailing newline is added. */
|
|
913
|
+
requestJson: string;
|
|
914
|
+
outputJson: string;
|
|
915
|
+
}
|
|
916
|
+
interface ResearchEvaluationResult {
|
|
917
|
+
success: boolean;
|
|
918
|
+
policy: typeof RESEARCH_EVALUATION_POLICY;
|
|
919
|
+
checks: {
|
|
920
|
+
structural: Status$4;
|
|
921
|
+
semantic: Status$4;
|
|
922
|
+
external: Status$4;
|
|
923
|
+
evaluation: Status$4;
|
|
924
|
+
receipt: Status$4;
|
|
925
|
+
};
|
|
926
|
+
issues: {
|
|
927
|
+
code: string;
|
|
928
|
+
pointer: string;
|
|
929
|
+
message: string;
|
|
930
|
+
}[];
|
|
931
|
+
files: ReproductionFileCheck[];
|
|
932
|
+
packetValidation: ReproductionPacketResult | null;
|
|
933
|
+
output: ResearchEvaluationOutput | null;
|
|
934
|
+
receipt: ResearchEvaluationReceipt | null;
|
|
935
|
+
implementationExecution: "not_attested";
|
|
936
|
+
environmentExecution: "not_attested";
|
|
937
|
+
vocabularyMembership: "not_checked";
|
|
938
|
+
scientificEligibility: "not_checked";
|
|
939
|
+
}
|
|
940
|
+
/** Executes only the fixed built-in workflow. Supplied artifacts are pinned, never fetched or executed. */
|
|
941
|
+
declare function evaluateResearchEvaluation(input: unknown, options?: ResearchEvaluationOptions): Promise<ResearchEvaluationResult>;
|
|
942
|
+
|
|
943
|
+
declare const RELEASED_DOCUMENT_SELECTION_SCHEMA_ID = "urn:disclosureos:experimental:released-document-selection:0.1.0";
|
|
944
|
+
declare const RELEASED_DOCUMENT_PROFILE: Readonly<{
|
|
945
|
+
readonly id: "urn:disclosureos:experimental:profile:released-document-provenance";
|
|
946
|
+
readonly version: "0.1.0";
|
|
947
|
+
readonly scope: "selected_document_sources_and_direct_extractions";
|
|
948
|
+
readonly maturity: "experimental";
|
|
949
|
+
}>;
|
|
950
|
+
declare const ReleasedDocumentSelectionSchema: z.ZodObject<{
|
|
951
|
+
kind: z.ZodLiteral<"released_document_selection">;
|
|
952
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
953
|
+
id: z.ZodString;
|
|
954
|
+
historyId: z.ZodString;
|
|
955
|
+
observationId: z.ZodString;
|
|
956
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
957
|
+
sourceRef: z.ZodString;
|
|
958
|
+
release: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
959
|
+
state: z.ZodLiteral<"known">;
|
|
960
|
+
releasedBy: z.ZodString;
|
|
961
|
+
reference: z.ZodString;
|
|
962
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
963
|
+
state: z.ZodLiteral<"unknown">;
|
|
964
|
+
reason: z.ZodString;
|
|
965
|
+
}, z.core.$strict>], "state">;
|
|
966
|
+
}, z.core.$strict>>;
|
|
967
|
+
}, z.core.$strict>;
|
|
968
|
+
type ReleasedDocumentSelection = z.infer<typeof ReleasedDocumentSelectionSchema>;
|
|
969
|
+
declare function releasedDocumentSelectionJsonSchema(): Record<string, unknown>;
|
|
970
|
+
declare const RELEASED_DOCUMENT_REQUIREMENTS: readonly Readonly<{
|
|
971
|
+
readonly id: "document_source";
|
|
972
|
+
readonly importance: "required";
|
|
973
|
+
readonly label: "Declared public document source";
|
|
974
|
+
} | {
|
|
975
|
+
readonly id: "release_citation";
|
|
976
|
+
readonly importance: "required";
|
|
977
|
+
readonly label: "Attributed release citation";
|
|
978
|
+
} | {
|
|
979
|
+
readonly id: "content_digest";
|
|
980
|
+
readonly importance: "required";
|
|
981
|
+
readonly label: "Declared document SHA-256";
|
|
982
|
+
} | {
|
|
983
|
+
readonly id: "content_integrity";
|
|
984
|
+
readonly importance: "required";
|
|
985
|
+
readonly label: "Exact local document bytes";
|
|
986
|
+
} | {
|
|
987
|
+
readonly id: "extraction_traceability";
|
|
988
|
+
readonly importance: "required";
|
|
989
|
+
readonly label: "Locators and extractor identities for supplied direct extractions";
|
|
990
|
+
} | {
|
|
991
|
+
readonly id: "source_title";
|
|
992
|
+
readonly importance: "recommended";
|
|
993
|
+
readonly label: "Human-readable source title";
|
|
994
|
+
} | {
|
|
995
|
+
readonly id: "source_uri";
|
|
996
|
+
readonly importance: "recommended";
|
|
997
|
+
readonly label: "Source retrieval reference";
|
|
998
|
+
} | {
|
|
999
|
+
readonly id: "source_attribution";
|
|
1000
|
+
readonly importance: "recommended";
|
|
1001
|
+
readonly label: "Source-side attribution for supplied direct extractions";
|
|
1002
|
+
}>[];
|
|
1003
|
+
type ReleasedDocumentRequirementId = (typeof RELEASED_DOCUMENT_REQUIREMENTS)[number]["id"];
|
|
1004
|
+
type Status$3 = "passed" | "failed" | "not_checked";
|
|
1005
|
+
type ReleasedDocumentCompletionStatus = "satisfied" | "missing" | "failed" | "not_checked" | "not_applicable";
|
|
1006
|
+
interface ReleasedDocumentIssue {
|
|
1007
|
+
code: string;
|
|
1008
|
+
stage: "structural" | "semantic" | "profile" | "external" | "recommendation";
|
|
1009
|
+
severity: "error" | "warning";
|
|
1010
|
+
pointer: string;
|
|
1011
|
+
message: string;
|
|
1012
|
+
nextAction: string;
|
|
1013
|
+
}
|
|
1014
|
+
interface ReleasedDocumentRequirement {
|
|
1015
|
+
id: ReleasedDocumentRequirementId;
|
|
1016
|
+
label: string;
|
|
1017
|
+
importance: "required" | "recommended";
|
|
1018
|
+
status: ReleasedDocumentCompletionStatus;
|
|
1019
|
+
reason: string;
|
|
1020
|
+
blockedBy: ReleasedDocumentRequirementId[];
|
|
1021
|
+
issues: ReleasedDocumentIssue[];
|
|
1022
|
+
}
|
|
1023
|
+
interface ReleasedDocumentReport {
|
|
1024
|
+
sourceRef: string;
|
|
1025
|
+
status: Status$3;
|
|
1026
|
+
requirements: ReleasedDocumentRequirement[];
|
|
1027
|
+
extractionRefs: string[];
|
|
1028
|
+
asset: {
|
|
1029
|
+
status: Status$3;
|
|
1030
|
+
expectedSha256?: string;
|
|
1031
|
+
actualSha256?: string;
|
|
1032
|
+
byteLength?: number;
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
interface ReleasedDocumentResult {
|
|
1036
|
+
success: boolean;
|
|
1037
|
+
profile: typeof RELEASED_DOCUMENT_PROFILE;
|
|
1038
|
+
selection: ReleasedDocumentSelection | null;
|
|
1039
|
+
validation: ReturnType<typeof parseExperimentalClaimHistory>;
|
|
1040
|
+
checks: {
|
|
1041
|
+
structural: Status$3;
|
|
1042
|
+
semantic: Status$3;
|
|
1043
|
+
profile: Status$3;
|
|
1044
|
+
external: Status$3;
|
|
1045
|
+
};
|
|
1046
|
+
documents: ReleasedDocumentReport[];
|
|
1047
|
+
issues: ReleasedDocumentIssue[];
|
|
1048
|
+
releaseAuthenticity: "not_checked";
|
|
1049
|
+
redistributionRights: "not_checked";
|
|
1050
|
+
locatorContents: "not_checked";
|
|
1051
|
+
extractionAccuracy: "not_checked";
|
|
1052
|
+
assessmentSupport: "not_checked";
|
|
1053
|
+
scientificEligibility: "not_checked";
|
|
1054
|
+
}
|
|
1055
|
+
/** Selected documentary provenance only. Assessments and scientific sufficiency are not evaluated. */
|
|
1056
|
+
declare function evaluateReleasedDocuments(historyInput: unknown, selectionInput: unknown, options?: {
|
|
1057
|
+
assets?: ReadonlyMap<string, Uint8Array>;
|
|
1058
|
+
}): Promise<ReleasedDocumentResult>;
|
|
1059
|
+
|
|
1060
|
+
declare const HISTORICAL_TESTIMONY_SELECTION_SCHEMA_ID = "urn:disclosureos:experimental:historical-testimony-selection:0.1.0";
|
|
1061
|
+
declare const HISTORICAL_TESTIMONY_PROFILE: Readonly<{
|
|
1062
|
+
readonly id: "urn:disclosureos:experimental:profile:historical-testimony-provenance";
|
|
1063
|
+
readonly version: "0.1.0";
|
|
1064
|
+
readonly scope: "selected_testimony_sources_and_direct_extractions";
|
|
1065
|
+
readonly maturity: "experimental";
|
|
1066
|
+
}>;
|
|
1067
|
+
declare const HistoricalTestimonySelectionSchema: z.ZodObject<{
|
|
1068
|
+
kind: z.ZodLiteral<"historical_testimony_selection">;
|
|
1069
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1070
|
+
id: z.ZodString;
|
|
1071
|
+
historyId: z.ZodString;
|
|
1072
|
+
observationId: z.ZodString;
|
|
1073
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
1074
|
+
sourceRef: z.ZodString;
|
|
1075
|
+
recording: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1076
|
+
state: z.ZodLiteral<"known">;
|
|
1077
|
+
recordedBy: z.ZodString;
|
|
1078
|
+
reference: z.ZodString;
|
|
1079
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1080
|
+
state: z.ZodLiteral<"unknown">;
|
|
1081
|
+
reason: z.ZodString;
|
|
1082
|
+
}, z.core.$strict>], "state">;
|
|
1083
|
+
}, z.core.$strict>>;
|
|
1084
|
+
}, z.core.$strict>;
|
|
1085
|
+
type HistoricalTestimonySelection = z.infer<typeof HistoricalTestimonySelectionSchema>;
|
|
1086
|
+
declare function historicalTestimonySelectionJsonSchema(): Record<string, unknown>;
|
|
1087
|
+
declare const HISTORICAL_TESTIMONY_REQUIREMENTS: readonly Readonly<{
|
|
1088
|
+
readonly id: "testimony_source";
|
|
1089
|
+
readonly importance: "required";
|
|
1090
|
+
readonly label: "Declared testimony source";
|
|
1091
|
+
} | {
|
|
1092
|
+
readonly id: "recording_citation";
|
|
1093
|
+
readonly importance: "required";
|
|
1094
|
+
readonly label: "Attributed recording citation";
|
|
1095
|
+
} | {
|
|
1096
|
+
readonly id: "content_digest";
|
|
1097
|
+
readonly importance: "required";
|
|
1098
|
+
readonly label: "Declared account SHA-256";
|
|
1099
|
+
} | {
|
|
1100
|
+
readonly id: "content_integrity";
|
|
1101
|
+
readonly importance: "required";
|
|
1102
|
+
readonly label: "Exact local account bytes";
|
|
1103
|
+
} | {
|
|
1104
|
+
readonly id: "extraction_traceability";
|
|
1105
|
+
readonly importance: "required";
|
|
1106
|
+
readonly label: "Locators, speaker attribution and extractor identities for supplied direct extractions";
|
|
1107
|
+
} | {
|
|
1108
|
+
readonly id: "source_title";
|
|
1109
|
+
readonly importance: "recommended";
|
|
1110
|
+
readonly label: "Human-readable source title";
|
|
1111
|
+
} | {
|
|
1112
|
+
readonly id: "source_uri";
|
|
1113
|
+
readonly importance: "recommended";
|
|
1114
|
+
readonly label: "Source retrieval reference";
|
|
1115
|
+
}>[];
|
|
1116
|
+
type HistoricalTestimonyRequirementId = (typeof HISTORICAL_TESTIMONY_REQUIREMENTS)[number]["id"];
|
|
1117
|
+
type Status$2 = "passed" | "failed" | "not_checked";
|
|
1118
|
+
type HistoricalTestimonyCompletionStatus = "satisfied" | "missing" | "failed" | "not_checked" | "not_applicable";
|
|
1119
|
+
interface HistoricalTestimonyIssue {
|
|
1120
|
+
code: string;
|
|
1121
|
+
stage: "structural" | "semantic" | "profile" | "external" | "recommendation";
|
|
1122
|
+
severity: "error" | "warning";
|
|
1123
|
+
pointer: string;
|
|
1124
|
+
message: string;
|
|
1125
|
+
nextAction: string;
|
|
1126
|
+
}
|
|
1127
|
+
interface HistoricalTestimonyRequirement {
|
|
1128
|
+
id: HistoricalTestimonyRequirementId;
|
|
1129
|
+
label: string;
|
|
1130
|
+
importance: "required" | "recommended";
|
|
1131
|
+
status: HistoricalTestimonyCompletionStatus;
|
|
1132
|
+
reason: string;
|
|
1133
|
+
blockedBy: HistoricalTestimonyRequirementId[];
|
|
1134
|
+
issues: HistoricalTestimonyIssue[];
|
|
1135
|
+
}
|
|
1136
|
+
interface HistoricalTestimonyReport {
|
|
1137
|
+
sourceRef: string;
|
|
1138
|
+
status: Status$2;
|
|
1139
|
+
requirements: HistoricalTestimonyRequirement[];
|
|
1140
|
+
extractionRefs: string[];
|
|
1141
|
+
asset: {
|
|
1142
|
+
status: Status$2;
|
|
1143
|
+
expectedSha256?: string;
|
|
1144
|
+
actualSha256?: string;
|
|
1145
|
+
byteLength?: number;
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
interface HistoricalTestimonyResult {
|
|
1149
|
+
success: boolean;
|
|
1150
|
+
profile: typeof HISTORICAL_TESTIMONY_PROFILE;
|
|
1151
|
+
selection: HistoricalTestimonySelection | null;
|
|
1152
|
+
validation: ReturnType<typeof parseExperimentalClaimHistory>;
|
|
1153
|
+
checks: {
|
|
1154
|
+
structural: Status$2;
|
|
1155
|
+
semantic: Status$2;
|
|
1156
|
+
profile: Status$2;
|
|
1157
|
+
external: Status$2;
|
|
1158
|
+
};
|
|
1159
|
+
accounts: HistoricalTestimonyReport[];
|
|
1160
|
+
issues: HistoricalTestimonyIssue[];
|
|
1161
|
+
recordingAuthenticity: "not_checked";
|
|
1162
|
+
speakerIdentity: "not_checked";
|
|
1163
|
+
accountAccuracy: "not_checked";
|
|
1164
|
+
firsthandKnowledge: "not_checked";
|
|
1165
|
+
witnessIndependence: "not_checked";
|
|
1166
|
+
redistributionRights: "not_checked";
|
|
1167
|
+
locatorContents: "not_checked";
|
|
1168
|
+
extractionAccuracy: "not_checked";
|
|
1169
|
+
assessmentSupport: "not_checked";
|
|
1170
|
+
scientificEligibility: "not_checked";
|
|
1171
|
+
}
|
|
1172
|
+
/** Selected testimony provenance only. Assessments and scientific sufficiency are not evaluated. */
|
|
1173
|
+
declare function evaluateHistoricalTestimony(historyInput: unknown, selectionInput: unknown, options?: {
|
|
1174
|
+
assets?: ReadonlyMap<string, Uint8Array>;
|
|
1175
|
+
}): Promise<HistoricalTestimonyResult>;
|
|
1176
|
+
|
|
1177
|
+
declare const PHYSICAL_SAMPLE_SELECTION_SCHEMA_ID = "urn:disclosureos:experimental:physical-sample-selection:0.1.0";
|
|
1178
|
+
declare const PHYSICAL_SAMPLE_PROFILE: Readonly<{
|
|
1179
|
+
readonly id: "urn:disclosureos:experimental:profile:physical-sample-provenance";
|
|
1180
|
+
readonly version: "0.1.0";
|
|
1181
|
+
readonly scope: "selected_collected_specimen_custody_declarations";
|
|
1182
|
+
readonly maturity: "experimental";
|
|
1183
|
+
}>;
|
|
1184
|
+
declare const PhysicalSampleSelectionSchema: z.ZodObject<{
|
|
1185
|
+
kind: z.ZodLiteral<"physical_sample_selection">;
|
|
1186
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1187
|
+
id: z.ZodString;
|
|
1188
|
+
historyId: z.ZodString;
|
|
1189
|
+
observationId: z.ZodString;
|
|
1190
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
1191
|
+
id: z.ZodString;
|
|
1192
|
+
lineage: z.ZodEnum<{
|
|
1193
|
+
unknown: "unknown";
|
|
1194
|
+
collected_specimen: "collected_specimen";
|
|
1195
|
+
derived_sample: "derived_sample";
|
|
1196
|
+
mixture: "mixture";
|
|
1197
|
+
}>;
|
|
1198
|
+
label: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1199
|
+
state: z.ZodLiteral<"known">;
|
|
1200
|
+
value: z.ZodString;
|
|
1201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1202
|
+
state: z.ZodLiteral<"unknown">;
|
|
1203
|
+
reason: z.ZodString;
|
|
1204
|
+
}, z.core.$strict>], "state">;
|
|
1205
|
+
collection: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1206
|
+
state: z.ZodLiteral<"known">;
|
|
1207
|
+
collectedBy: z.ZodString;
|
|
1208
|
+
recordRef: z.ZodString;
|
|
1209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1210
|
+
state: z.ZodLiteral<"unknown">;
|
|
1211
|
+
reason: z.ZodString;
|
|
1212
|
+
}, z.core.$strict>], "state">;
|
|
1213
|
+
custody: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1214
|
+
state: z.ZodLiteral<"documented">;
|
|
1215
|
+
transfers: z.ZodArray<z.ZodObject<{
|
|
1216
|
+
id: z.ZodString;
|
|
1217
|
+
from: z.ZodString;
|
|
1218
|
+
to: z.ZodString;
|
|
1219
|
+
recordRef: z.ZodString;
|
|
1220
|
+
}, z.core.$strict>>;
|
|
1221
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1222
|
+
state: z.ZodLiteral<"unknown">;
|
|
1223
|
+
reason: z.ZodString;
|
|
1224
|
+
}, z.core.$strict>], "state">;
|
|
1225
|
+
currentCustodian: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1226
|
+
state: z.ZodLiteral<"known">;
|
|
1227
|
+
holder: z.ZodString;
|
|
1228
|
+
recordRef: z.ZodString;
|
|
1229
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1230
|
+
state: z.ZodLiteral<"unknown">;
|
|
1231
|
+
reason: z.ZodString;
|
|
1232
|
+
}, z.core.$strict>], "state">;
|
|
1233
|
+
catalogIdentifier: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
}, z.core.$strict>>;
|
|
1235
|
+
}, z.core.$strict>;
|
|
1236
|
+
type PhysicalSampleSelection = z.infer<typeof PhysicalSampleSelectionSchema>;
|
|
1237
|
+
declare function physicalSampleSelectionJsonSchema(): Record<string, unknown>;
|
|
1238
|
+
declare const PHYSICAL_SAMPLE_REQUIREMENTS: readonly Readonly<{
|
|
1239
|
+
readonly id: "sample_scope";
|
|
1240
|
+
readonly importance: "required";
|
|
1241
|
+
readonly label: "Declared collected specimen";
|
|
1242
|
+
} | {
|
|
1243
|
+
readonly id: "sample_identity";
|
|
1244
|
+
readonly importance: "required";
|
|
1245
|
+
readonly label: "Recorded specimen label";
|
|
1246
|
+
} | {
|
|
1247
|
+
readonly id: "collection_record";
|
|
1248
|
+
readonly importance: "required";
|
|
1249
|
+
readonly label: "Attributed collection record";
|
|
1250
|
+
} | {
|
|
1251
|
+
readonly id: "custody_record";
|
|
1252
|
+
readonly importance: "required";
|
|
1253
|
+
readonly label: "Declared handoff continuity";
|
|
1254
|
+
} | {
|
|
1255
|
+
readonly id: "current_custodian";
|
|
1256
|
+
readonly importance: "required";
|
|
1257
|
+
readonly label: "Cited current custodian";
|
|
1258
|
+
} | {
|
|
1259
|
+
readonly id: "record_integrity";
|
|
1260
|
+
readonly importance: "required";
|
|
1261
|
+
readonly label: "Exact cited record bytes";
|
|
1262
|
+
} | {
|
|
1263
|
+
readonly id: "catalog_identifier";
|
|
1264
|
+
readonly importance: "recommended";
|
|
1265
|
+
readonly label: "External catalog identifier";
|
|
1266
|
+
}>[];
|
|
1267
|
+
type PhysicalSampleRequirementId = (typeof PHYSICAL_SAMPLE_REQUIREMENTS)[number]["id"];
|
|
1268
|
+
type Status$1 = "passed" | "failed" | "not_checked";
|
|
1269
|
+
interface PhysicalSampleIssue {
|
|
1270
|
+
code: string;
|
|
1271
|
+
stage: "structural" | "semantic" | "profile" | "external" | "recommendation";
|
|
1272
|
+
severity: "error" | "warning";
|
|
1273
|
+
pointer: string;
|
|
1274
|
+
message: string;
|
|
1275
|
+
nextAction: string;
|
|
1276
|
+
}
|
|
1277
|
+
interface PhysicalSampleRequirement {
|
|
1278
|
+
id: PhysicalSampleRequirementId;
|
|
1279
|
+
importance: "required" | "recommended";
|
|
1280
|
+
label: string;
|
|
1281
|
+
status: "satisfied" | "missing" | "failed" | "not_checked";
|
|
1282
|
+
reason: string;
|
|
1283
|
+
blockedBy: PhysicalSampleRequirementId[];
|
|
1284
|
+
issues: PhysicalSampleIssue[];
|
|
1285
|
+
}
|
|
1286
|
+
interface PhysicalSampleRecordCheck {
|
|
1287
|
+
sourceRef: string;
|
|
1288
|
+
status: Status$1;
|
|
1289
|
+
expectedSha256?: string;
|
|
1290
|
+
actualSha256?: string;
|
|
1291
|
+
byteLength?: number;
|
|
1292
|
+
}
|
|
1293
|
+
interface PhysicalSampleReport {
|
|
1294
|
+
sampleId: string;
|
|
1295
|
+
status: Status$1;
|
|
1296
|
+
requirements: PhysicalSampleRequirement[];
|
|
1297
|
+
records: PhysicalSampleRecordCheck[];
|
|
1298
|
+
}
|
|
1299
|
+
interface PhysicalSampleResult {
|
|
1300
|
+
success: boolean;
|
|
1301
|
+
profile: typeof PHYSICAL_SAMPLE_PROFILE;
|
|
1302
|
+
selection: PhysicalSampleSelection | null;
|
|
1303
|
+
validation: ReturnType<typeof parseExperimentalClaimHistory>;
|
|
1304
|
+
checks: {
|
|
1305
|
+
structural: Status$1;
|
|
1306
|
+
semantic: Status$1;
|
|
1307
|
+
profile: Status$1;
|
|
1308
|
+
external: Status$1;
|
|
1309
|
+
};
|
|
1310
|
+
samples: PhysicalSampleReport[];
|
|
1311
|
+
issues: PhysicalSampleIssue[];
|
|
1312
|
+
specimenIdentity: "not_checked";
|
|
1313
|
+
collectionAuthenticity: "not_checked";
|
|
1314
|
+
custodyAuthenticity: "not_checked";
|
|
1315
|
+
custodyCompleteness: "not_checked";
|
|
1316
|
+
custodyChronology: "not_checked";
|
|
1317
|
+
recordContents: "not_checked";
|
|
1318
|
+
contaminationControl: "not_checked";
|
|
1319
|
+
composition: "not_checked";
|
|
1320
|
+
origin: "not_checked";
|
|
1321
|
+
redistributionRights: "not_checked";
|
|
1322
|
+
assessmentSupport: "not_checked";
|
|
1323
|
+
scientificEligibility: "not_checked";
|
|
1324
|
+
}
|
|
1325
|
+
/** Documentary declarations only; never establishes physical identity, custody truth or origin. */
|
|
1326
|
+
declare function evaluatePhysicalSamples(historyInput: unknown, selectionInput: unknown, options?: {
|
|
1327
|
+
assets?: ReadonlyMap<string, Uint8Array>;
|
|
1328
|
+
}): Promise<PhysicalSampleResult>;
|
|
1329
|
+
|
|
1330
|
+
declare const PROFILE_EVALUATION_SCHEMA_ID = "urn:disclosureos:experimental:profile-evaluation:0.1.0";
|
|
1331
|
+
declare const PROFILE_EVALUATION_POLICY: Readonly<{
|
|
1332
|
+
readonly id: "urn:disclosureos:experimental:policy:profile-evaluation";
|
|
1333
|
+
readonly version: "0.1.0";
|
|
1334
|
+
readonly scope: "pinned_inputs_and_computed_provenance_profile";
|
|
1335
|
+
}>;
|
|
1336
|
+
declare const ProfileEvaluationSchema: z.ZodObject<{
|
|
1337
|
+
kind: z.ZodLiteral<"profile_evaluation">;
|
|
1338
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1339
|
+
id: z.ZodString;
|
|
1340
|
+
workflow: z.ZodEnum<{
|
|
1341
|
+
"released-documents:0.1.0": "released-documents:0.1.0";
|
|
1342
|
+
"historical-testimony:0.1.0": "historical-testimony:0.1.0";
|
|
1343
|
+
"physical-samples:0.1.0": "physical-samples:0.1.0";
|
|
1344
|
+
}>;
|
|
1345
|
+
history: z.ZodObject<{
|
|
1346
|
+
sha256: z.ZodString;
|
|
1347
|
+
byteLength: z.ZodNumber;
|
|
1348
|
+
}, z.core.$strict>;
|
|
1349
|
+
selection: z.ZodObject<{
|
|
1350
|
+
sha256: z.ZodString;
|
|
1351
|
+
byteLength: z.ZodNumber;
|
|
1352
|
+
}, z.core.$strict>;
|
|
1353
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
1354
|
+
sha256: z.ZodString;
|
|
1355
|
+
byteLength: z.ZodNumber;
|
|
1356
|
+
ref: z.ZodString;
|
|
1357
|
+
fileRef: z.ZodString;
|
|
1358
|
+
}, z.core.$strict>>;
|
|
1359
|
+
dependencies: z.ZodObject<{
|
|
1360
|
+
vocabularies: z.ZodArray<z.ZodObject<{
|
|
1361
|
+
sha256: z.ZodString;
|
|
1362
|
+
byteLength: z.ZodNumber;
|
|
1363
|
+
ref: z.ZodString;
|
|
1364
|
+
id: z.ZodString;
|
|
1365
|
+
version: z.ZodString;
|
|
1366
|
+
}, z.core.$strict>>;
|
|
1367
|
+
implementation: z.ZodObject<{
|
|
1368
|
+
sha256: z.ZodString;
|
|
1369
|
+
byteLength: z.ZodNumber;
|
|
1370
|
+
ref: z.ZodString;
|
|
1371
|
+
id: z.ZodString;
|
|
1372
|
+
version: z.ZodString;
|
|
1373
|
+
}, z.core.$strict>;
|
|
1374
|
+
environment: z.ZodObject<{
|
|
1375
|
+
sha256: z.ZodString;
|
|
1376
|
+
byteLength: z.ZodNumber;
|
|
1377
|
+
ref: z.ZodString;
|
|
1378
|
+
id: z.ZodString;
|
|
1379
|
+
version: z.ZodString;
|
|
1380
|
+
}, z.core.$strict>;
|
|
1381
|
+
}, z.core.$strict>;
|
|
1382
|
+
}, z.core.$strict>;
|
|
1383
|
+
type ProfileEvaluation = z.infer<typeof ProfileEvaluationSchema>;
|
|
1384
|
+
declare function profileEvaluationJsonSchema(): Record<string, unknown>;
|
|
1385
|
+
interface ProfileEvaluationOptions {
|
|
1386
|
+
historyBytes?: Uint8Array;
|
|
1387
|
+
selectionBytes?: Uint8Array;
|
|
1388
|
+
assetFiles?: ReadonlyMap<string, Uint8Array>;
|
|
1389
|
+
dependencyFiles?: ReadonlyMap<string, Uint8Array>;
|
|
1390
|
+
}
|
|
1391
|
+
type Status = "passed" | "failed" | "not_checked";
|
|
1392
|
+
interface ProfileEvaluationReceipt {
|
|
1393
|
+
format: "disclosureos-profile-evaluation-receipt:0.1.0";
|
|
1394
|
+
serialization: "sorted-json-utf8:0.1.0";
|
|
1395
|
+
request: {
|
|
1396
|
+
sha256: string;
|
|
1397
|
+
byteLength: number;
|
|
1398
|
+
};
|
|
1399
|
+
output: {
|
|
1400
|
+
sha256: string;
|
|
1401
|
+
byteLength: number;
|
|
1402
|
+
};
|
|
1403
|
+
requestJson: string;
|
|
1404
|
+
outputJson: string;
|
|
1405
|
+
}
|
|
1406
|
+
interface ProfileEvaluationResult {
|
|
1407
|
+
success: boolean;
|
|
1408
|
+
policy: typeof PROFILE_EVALUATION_POLICY;
|
|
1409
|
+
checks: {
|
|
1410
|
+
structural: Status;
|
|
1411
|
+
semantic: Status;
|
|
1412
|
+
external: Status;
|
|
1413
|
+
profile: Status;
|
|
1414
|
+
receipt: Status;
|
|
1415
|
+
};
|
|
1416
|
+
issues: {
|
|
1417
|
+
code: string;
|
|
1418
|
+
pointer: string;
|
|
1419
|
+
message: string;
|
|
1420
|
+
}[];
|
|
1421
|
+
files: {
|
|
1422
|
+
ref: string;
|
|
1423
|
+
status: Status;
|
|
1424
|
+
expectedSha256: string;
|
|
1425
|
+
expectedByteLength: number;
|
|
1426
|
+
actualSha256?: string;
|
|
1427
|
+
actualByteLength?: number;
|
|
1428
|
+
}[];
|
|
1429
|
+
profile: ReleasedDocumentResult | HistoricalTestimonyResult | PhysicalSampleResult | null;
|
|
1430
|
+
receipt: ProfileEvaluationReceipt | null;
|
|
1431
|
+
unselectedArtifactIntegrity: "not_checked";
|
|
1432
|
+
vocabularyMembership: "not_checked";
|
|
1433
|
+
scientificEligibility: "not_checked";
|
|
1434
|
+
statisticalIndependence: "not_checked";
|
|
1435
|
+
implementationExecution: "not_attested";
|
|
1436
|
+
environmentExecution: "not_attested";
|
|
1437
|
+
}
|
|
1438
|
+
/** Runs only a fixed built-in provenance profile over pinned local inputs. Supplied dependencies are never executed. */
|
|
1439
|
+
declare function evaluateProfileEvaluation(input: unknown, options?: ProfileEvaluationOptions): Promise<ProfileEvaluationResult>;
|
|
1440
|
+
|
|
1441
|
+
declare const PROFILE_PREPARATION_SCHEMA_ID = "urn:disclosureos:experimental:profile-preparation:0.1.0";
|
|
1442
|
+
declare const ProfilePreparationSchema: z.ZodObject<{
|
|
1443
|
+
kind: z.ZodLiteral<"profile_preparation">;
|
|
1444
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1445
|
+
id: z.ZodString;
|
|
1446
|
+
workflow: z.ZodEnum<{
|
|
1447
|
+
"released-documents:0.1.0": "released-documents:0.1.0";
|
|
1448
|
+
"historical-testimony:0.1.0": "historical-testimony:0.1.0";
|
|
1449
|
+
"physical-samples:0.1.0": "physical-samples:0.1.0";
|
|
1450
|
+
}>;
|
|
1451
|
+
history: z.ZodString;
|
|
1452
|
+
selection: z.ZodString;
|
|
1453
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
1454
|
+
ref: z.ZodString;
|
|
1455
|
+
fileRef: z.ZodString;
|
|
1456
|
+
path: z.ZodString;
|
|
1457
|
+
}, z.core.$strict>>;
|
|
1458
|
+
dependencies: z.ZodObject<{
|
|
1459
|
+
vocabularies: z.ZodArray<z.ZodObject<{
|
|
1460
|
+
id: z.ZodString;
|
|
1461
|
+
version: z.ZodString;
|
|
1462
|
+
ref: z.ZodString;
|
|
1463
|
+
path: z.ZodString;
|
|
1464
|
+
}, z.core.$strict>>;
|
|
1465
|
+
implementation: z.ZodObject<{
|
|
1466
|
+
id: z.ZodString;
|
|
1467
|
+
version: z.ZodString;
|
|
1468
|
+
ref: z.ZodString;
|
|
1469
|
+
path: z.ZodString;
|
|
1470
|
+
}, z.core.$strict>;
|
|
1471
|
+
environment: z.ZodObject<{
|
|
1472
|
+
id: z.ZodString;
|
|
1473
|
+
version: z.ZodString;
|
|
1474
|
+
ref: z.ZodString;
|
|
1475
|
+
path: z.ZodString;
|
|
1476
|
+
}, z.core.$strict>;
|
|
1477
|
+
}, z.core.$strict>;
|
|
1478
|
+
}, z.core.$strict>;
|
|
1479
|
+
type ProfilePreparation = z.infer<typeof ProfilePreparationSchema>;
|
|
1480
|
+
declare function profilePreparationJsonSchema(): Record<string, unknown>;
|
|
1481
|
+
|
|
1482
|
+
declare const MIGRATION_REVIEW_SCHEMA_ID = "urn:disclosureos:experimental:migration-review:0.1.0";
|
|
1483
|
+
/** Plan structure only. Target values and references require the v2 semantic parser. */
|
|
1484
|
+
declare const MigrationReviewSchema: z.ZodObject<{
|
|
1485
|
+
kind: z.ZodLiteral<"legacy_migration_review">;
|
|
1486
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1487
|
+
namespace: z.ZodString;
|
|
1488
|
+
source: z.ZodObject<{
|
|
1489
|
+
sha256: z.ZodString;
|
|
1490
|
+
byteLength: z.ZodNumber;
|
|
1491
|
+
}, z.core.$strict>;
|
|
1492
|
+
reviewedBy: z.ZodString;
|
|
1493
|
+
reviewedAt: z.ZodISODateTime;
|
|
1494
|
+
decisions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1495
|
+
field: z.ZodLiteral<"eventTime">;
|
|
1496
|
+
sourceId: z.ZodString;
|
|
1497
|
+
sourcePointers: z.ZodArray<z.ZodString>;
|
|
1498
|
+
rationale: z.ZodString;
|
|
1499
|
+
value: z.ZodJSONSchema;
|
|
1500
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1501
|
+
field: z.ZodLiteral<"position">;
|
|
1502
|
+
frames: z.ZodArray<z.ZodJSONSchema>;
|
|
1503
|
+
sourceId: z.ZodString;
|
|
1504
|
+
sourcePointers: z.ZodArray<z.ZodString>;
|
|
1505
|
+
rationale: z.ZodString;
|
|
1506
|
+
value: z.ZodJSONSchema;
|
|
1507
|
+
}, z.core.$strict>], "field">>;
|
|
1508
|
+
}, z.core.$strict>;
|
|
1509
|
+
type MigrationReview = z.infer<typeof MigrationReviewSchema>;
|
|
1510
|
+
declare function migrationReviewJsonSchema(): Record<string, unknown>;
|
|
1511
|
+
|
|
1512
|
+
declare const MIGRATION_RESOLUTION_SCHEMA_ID = "urn:disclosureos:experimental:migration-resolution:0.1.0";
|
|
1513
|
+
/** Structure only: membership, exact pins and duplicate decisions require the resolver. */
|
|
1514
|
+
declare const MigrationResolutionSchema: z.ZodObject<{
|
|
1515
|
+
kind: z.ZodLiteral<"legacy_migration_resolution">;
|
|
1516
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1517
|
+
ledger: z.ZodObject<{
|
|
1518
|
+
sha256: z.ZodString;
|
|
1519
|
+
byteLength: z.ZodNumber;
|
|
1520
|
+
}, z.core.$strict>;
|
|
1521
|
+
decidedBy: z.ZodString;
|
|
1522
|
+
decidedAt: z.ZodISODateTime;
|
|
1523
|
+
decisions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1524
|
+
action: z.ZodLiteral<"select">;
|
|
1525
|
+
revision: z.ZodString;
|
|
1526
|
+
identity: z.ZodString;
|
|
1527
|
+
rationale: z.ZodString;
|
|
1528
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1529
|
+
action: z.ZodLiteral<"defer">;
|
|
1530
|
+
identity: z.ZodString;
|
|
1531
|
+
rationale: z.ZodString;
|
|
1532
|
+
}, z.core.$strict>], "action">>;
|
|
1533
|
+
}, z.core.$strict>;
|
|
1534
|
+
type MigrationResolution = z.infer<typeof MigrationResolutionSchema>;
|
|
1535
|
+
declare function migrationResolutionJsonSchema(): Record<string, unknown>;
|
|
1536
|
+
|
|
1537
|
+
declare const MIGRATION_LEGACY_SCORES_SCHEMA_ID = "urn:disclosureos:experimental:migration-legacy-scores:0.1.0";
|
|
1538
|
+
/** Declared association and output contract only; neither identity nor methodology is authenticated. */
|
|
1539
|
+
declare const MigrationLegacyScoresSchema: z.ZodObject<{
|
|
1540
|
+
kind: z.ZodLiteral<"legacy_score_preservation_plan">;
|
|
1541
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1542
|
+
namespace: z.ZodString;
|
|
1543
|
+
source: z.ZodObject<{
|
|
1544
|
+
sha256: z.ZodString;
|
|
1545
|
+
byteLength: z.ZodNumber;
|
|
1546
|
+
}, z.core.$strict>;
|
|
1547
|
+
reviewedBy: z.ZodString;
|
|
1548
|
+
reviewedAt: z.ZodISODateTime;
|
|
1549
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
1550
|
+
sourcePointer: z.ZodString;
|
|
1551
|
+
sourceId: z.ZodString;
|
|
1552
|
+
resultKind: z.ZodEnum<{
|
|
1553
|
+
completeness: "completeness";
|
|
1554
|
+
compellingness: "compellingness";
|
|
1555
|
+
}>;
|
|
1556
|
+
outputContractVersion: z.ZodString;
|
|
1557
|
+
methodologyVersion: z.ZodString;
|
|
1558
|
+
rationale: z.ZodString;
|
|
1559
|
+
}, z.core.$strict>>;
|
|
1560
|
+
}, z.core.$strict>;
|
|
1561
|
+
type MigrationLegacyScores = z.infer<typeof MigrationLegacyScoresSchema>;
|
|
1562
|
+
declare function migrationLegacyScoresJsonSchema(): Record<string, unknown>;
|
|
1563
|
+
|
|
1564
|
+
declare const MIGRATION_COMPATIBILITY_SCHEMA_ID = "urn:disclosureos:experimental:migration-compatibility:0.1.0";
|
|
1565
|
+
declare const MigrationCompatibilitySchema: z.ZodObject<{
|
|
1566
|
+
kind: z.ZodLiteral<"legacy_sensor_revision_review">;
|
|
1567
|
+
schemaVersion: z.ZodLiteral<"0.1.0">;
|
|
1568
|
+
source: z.ZodObject<{
|
|
1569
|
+
sha256: z.ZodString;
|
|
1570
|
+
byteLength: z.ZodNumber;
|
|
1571
|
+
}, z.core.$strict>;
|
|
1572
|
+
namespace: z.ZodString;
|
|
1573
|
+
reviewedBy: z.ZodString;
|
|
1574
|
+
reviewedAt: z.ZodISODateTime;
|
|
1575
|
+
context: z.ZodObject<{
|
|
1576
|
+
bytes: z.ZodString;
|
|
1577
|
+
sha256: z.ZodString;
|
|
1578
|
+
byteLength: z.ZodNumber;
|
|
1579
|
+
}, z.core.$strict>;
|
|
1580
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
1581
|
+
sourceId: z.ZodString;
|
|
1582
|
+
sensorPointer: z.ZodString;
|
|
1583
|
+
legacyRef: z.ZodString;
|
|
1584
|
+
acquisitionRef: z.ZodString;
|
|
1585
|
+
manifest: z.ZodObject<{
|
|
1586
|
+
bytes: z.ZodString;
|
|
1587
|
+
sha256: z.ZodString;
|
|
1588
|
+
byteLength: z.ZodNumber;
|
|
1589
|
+
}, z.core.$strict>;
|
|
1590
|
+
provenance: z.ZodObject<{
|
|
1591
|
+
bytes: z.ZodString;
|
|
1592
|
+
sha256: z.ZodString;
|
|
1593
|
+
byteLength: z.ZodNumber;
|
|
1594
|
+
}, z.core.$strict>;
|
|
1595
|
+
provenanceLocator: z.ZodString;
|
|
1596
|
+
rationale: z.ZodString;
|
|
1597
|
+
}, z.core.$strict>>;
|
|
1598
|
+
}, z.core.$strict>;
|
|
1599
|
+
type MigrationCompatibility = z.infer<typeof MigrationCompatibilitySchema>;
|
|
1600
|
+
declare function migrationCompatibilityJsonSchema(): Record<string, unknown>;
|
|
1601
|
+
|
|
1602
|
+
export { ACQUISITION_BINDINGS_PROFILE, ACQUISITION_BINDINGS_SCHEMA_ID, ASSESSMENT_DOCUMENTATION_PROFILE, type AcquisitionBindingOptions, type AcquisitionBindingResult, type AcquisitionBindings, AcquisitionBindingsSchema, type AssessmentDocumentation, type AssessmentDocumentationCompletion, type AssetCheck, type BindingAssetCheck, type BindingIssue, type BindingIssueCode, type CompletionStatus, DATASET_RELEASE_PROFILE, DATASET_RELEASE_SCHEMA_ID, DOCUMENTATION_COMPLETION_POLICY, DOCUMENTATION_REQUIREMENTS, type DatasetIssue, type DatasetPacketInput, type DatasetRelease, type DatasetReleaseResult, DatasetReleaseSchema, type DocumentationAction, type DocumentationCompletionResult, type DocumentationIssue, type DocumentationIssueCode, type DocumentationOptions, type DocumentationRequirement, type DocumentationRequirementId, type DocumentationResult, HISTORICAL_TESTIMONY_PROFILE, HISTORICAL_TESTIMONY_REQUIREMENTS, HISTORICAL_TESTIMONY_SELECTION_SCHEMA_ID, type HistoricalTestimonyCompletionStatus, type HistoricalTestimonyIssue, type HistoricalTestimonyReport, type HistoricalTestimonyRequirement, type HistoricalTestimonyRequirementId, type HistoricalTestimonyResult, type HistoricalTestimonySelection, HistoricalTestimonySelectionSchema, INSTRUMENT_RESEARCH_COMPLETION_POLICY, INSTRUMENT_RESEARCH_PREREQUISITES_PROFILE, INSTRUMENT_RESEARCH_REQUIREMENTS, INSTRUMENT_RESEARCH_REVIEW_SCHEMA_ID, type InstrumentResearchCompletionResult, type InstrumentResearchOptions, type InstrumentResearchResult, type InstrumentResearchReview, InstrumentResearchReviewSchema, MEASUREMENT_BINDINGS_PROFILE, MEASUREMENT_BINDINGS_SCHEMA_ID, MIGRATION_COMPATIBILITY_SCHEMA_ID, MIGRATION_LEGACY_SCORES_SCHEMA_ID, MIGRATION_RESOLUTION_SCHEMA_ID, MIGRATION_REVIEW_SCHEMA_ID, type MeasurementBindingIssue, type MeasurementBindingResult, type MeasurementBindings, MeasurementBindingsSchema, type MigrationCompatibility, MigrationCompatibilitySchema, type MigrationLegacyScores, MigrationLegacyScoresSchema, type MigrationResolution, MigrationResolutionSchema, type MigrationReview, MigrationReviewSchema, PHYSICAL_SAMPLE_PROFILE, PHYSICAL_SAMPLE_REQUIREMENTS, PHYSICAL_SAMPLE_SELECTION_SCHEMA_ID, PROFILE_EVALUATION_POLICY, PROFILE_EVALUATION_SCHEMA_ID, PROFILE_PREPARATION_SCHEMA_ID, type PhysicalSampleIssue, type PhysicalSampleRecordCheck, type PhysicalSampleReport, type PhysicalSampleRequirement, type PhysicalSampleRequirementId, type PhysicalSampleResult, type PhysicalSampleSelection, PhysicalSampleSelectionSchema, type ProductBindingCheck, type ProfileEvaluation, type ProfileEvaluationOptions, type ProfileEvaluationReceipt, type ProfileEvaluationResult, ProfileEvaluationSchema, type ProfilePreparation, ProfilePreparationSchema, RELEASED_DOCUMENT_PROFILE, RELEASED_DOCUMENT_REQUIREMENTS, RELEASED_DOCUMENT_SELECTION_SCHEMA_ID, REPRODUCTION_PACKET_PROFILE, REPRODUCTION_PACKET_SCHEMA_ID, RESEARCH_EVALUATION_POLICY, RESEARCH_EVALUATION_SCHEMA_ID, type ReleasedDocumentCompletionStatus, type ReleasedDocumentIssue, type ReleasedDocumentReport, type ReleasedDocumentRequirement, type ReleasedDocumentRequirementId, type ReleasedDocumentResult, type ReleasedDocumentSelection, ReleasedDocumentSelectionSchema, type ReproductionFileCheck, type ReproductionPacket, type ReproductionPacketResult, ReproductionPacketSchema, type ResearchCompletionAction, type ResearchCompletionRequirement, type ResearchCompletionStatus, type ResearchEvaluation, type ResearchEvaluationOptions, type ResearchEvaluationOutput, type ResearchEvaluationReceipt, type ResearchEvaluationResult, ResearchEvaluationSchema, type ResearchRequirementId, type ResearchReviewAssetCheck, SOURCE_INTAKE_PROFILE, SOURCE_INTAKE_SCHEMA_ID, type SourceIntake, type SourceIntakeResult, SourceIntakeSchema, acquisitionBindingsJsonSchema, datasetReleaseJsonSchema, evaluateAcquisitionBindings, evaluateAssessmentDocumentation, evaluateDatasetRelease, evaluateDocumentationCompletion, evaluateHistoricalTestimony, evaluateInstrumentResearchCompletion, evaluateInstrumentResearchPrerequisites, evaluateMeasurementBindings, evaluatePhysicalSamples, evaluateProfileEvaluation, evaluateReleasedDocuments, evaluateReproductionPacket, evaluateResearchEvaluation, evaluateSourceIntake, historicalTestimonySelectionJsonSchema, instrumentResearchReviewJsonSchema, measurementBindingsJsonSchema, migrationCompatibilityJsonSchema, migrationLegacyScoresJsonSchema, migrationResolutionJsonSchema, migrationReviewJsonSchema, physicalSampleSelectionJsonSchema, profileEvaluationJsonSchema, profilePreparationJsonSchema, releasedDocumentSelectionJsonSchema, reproductionPacketJsonSchema, researchEvaluationJsonSchema, sourceIntakeJsonSchema };
|