@disclosureos/schema 2.0.0-beta.0 → 2.0.0-beta.2

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-beta.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 25d01be: Add versioned public witness/account/procedure declarations and entity-addressed claim history with supplied-snapshot review. Preserve sourced qualifications, historical precision, missingness and attributable credibility vocabulary without calculating credibility scores. Existing contracts and profile dispatch remain unchanged.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [25d01be]
12
+ - @disclosureos/records@2.0.0-beta.2
13
+ - @disclosureos/instruments@2.0.0-beta.2
14
+ - @disclosureos/observables@2.0.0-beta.2
15
+ - @disclosureos/origins@2.0.0-beta.2
16
+
17
+ ## 2.0.0-beta.1
18
+
19
+ ### Minor Changes
20
+
21
+ - 9e7c76a: Add experimental observation-context 0.1.0 and an explicit claim-history 0.2.0 parser for typed context entity/field subjects and assertion inputs. Resolve caller-supplied exact document snapshots, preserve descriptive vocabularies and missingness, and link contextual quantities to existing measurements. Existing schema identities and claim-history 0.1.0 remain unchanged. No source authentication, time normalization or sensor-fusion validation is implied.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [9e7c76a]
26
+ - @disclosureos/records@2.0.0-beta.1
27
+ - @disclosureos/instruments@2.0.0-beta.1
28
+ - @disclosureos/observables@2.0.0-beta.1
29
+ - @disclosureos/origins@2.0.0-beta.1
30
+
3
31
  ## 2.0.0-beta.0
4
32
 
5
33
  ### Major Changes
package/README.md CHANGED
@@ -187,3 +187,12 @@ Start with the [developer compatibility guide](../../docs/experimental/migration
187
187
  for breaking changes, parser/version boundaries, supported migration workflows,
188
188
  exit handling, profile differences and non-destructive local rollback. This is an
189
189
  experimental checkout workflow; merging package changes does not deploy the Index.
190
+
191
+
192
+ ## Witnesses and accounts: C2a candidate
193
+
194
+ The source tree adds public witness/account/procedure declarations, entity-addressed
195
+ claim history 0.3.0 and supplied-snapshot review. These additions are not included
196
+ in the published 2.0.0-beta.1 packages. See the [contract, worked example and
197
+ verification boundaries](../../docs/c2/README.md). Qualifications and reviewer
198
+ judgments remain separate; no credibility score is calculated.
@@ -1,4 +1,4 @@
1
- import { ClaimHistoryIssueCode, parseExperimentalClaimHistory, ClaimSubject } from '@disclosureos/records/experimental/v2';
1
+ import { ClaimHistoryIssueCode, parseExperimentalClaimHistory, ClaimSubject, ContextIssue, DocumentSnapshotRef } from '@disclosureos/records/experimental/v2';
2
2
  import { z } from 'zod';
3
3
  import { parseAcquisitionContext, AcquisitionContextIssueCode } from '@disclosureos/instruments/experimental/v2';
4
4
 
@@ -1599,4 +1599,132 @@ declare const MigrationCompatibilitySchema: z.ZodObject<{
1599
1599
  type MigrationCompatibility = z.infer<typeof MigrationCompatibilitySchema>;
1600
1600
  declare function migrationCompatibilityJsonSchema(): Record<string, unknown>;
1601
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 };
1602
+ interface ContextReviewOptions {
1603
+ /** Exact UTF-8 document bytes keyed by SHA-256. Nothing is fetched or normalized. */
1604
+ documents: ReadonlyMap<string, Uint8Array>;
1605
+ }
1606
+ interface ContextReviewResult {
1607
+ success: boolean;
1608
+ issues: ContextIssue[];
1609
+ snapshots: Array<DocumentSnapshotRef & {
1610
+ status: "passed" | "failed" | "unavailable";
1611
+ }>;
1612
+ checks: {
1613
+ structural: 'passed' | 'failed';
1614
+ semantic: 'passed' | 'failed' | 'not_checked';
1615
+ profile: 'not_checked';
1616
+ external: 'passed' | 'failed' | 'not_checked';
1617
+ };
1618
+ currentClaimRefs: string[];
1619
+ integrityScope: "supplied_context_observation_and_acquisition_snapshot_bytes";
1620
+ temporalNormalization: "not_checked";
1621
+ sourceArtifactIntegrity: "not_checked";
1622
+ scientificInterpretation: "not_checked";
1623
+ multiSensorFusion: "not_checked";
1624
+ }
1625
+ /** Closed C1 role table: no unit guessing, conversion or unrestricted quantity synonyms. */
1626
+ declare const CONTEXT_MEASUREMENT_ROLES: {
1627
+ readonly size: {
1628
+ readonly entities: readonly ["reported_object"];
1629
+ readonly quantities: readonly ["size", "length"];
1630
+ readonly units: readonly ["m", "km"];
1631
+ };
1632
+ readonly count: {
1633
+ readonly entities: readonly ["reported_object"];
1634
+ readonly quantities: readonly ["count"];
1635
+ readonly units: readonly ["1"];
1636
+ };
1637
+ readonly speed: {
1638
+ readonly entities: readonly ["reported_object", "platform"];
1639
+ readonly quantities: readonly ["speed"];
1640
+ readonly units: readonly ["m/s", "km/h"];
1641
+ };
1642
+ readonly altitude: {
1643
+ readonly entities: readonly ["reported_object", "platform", "place"];
1644
+ readonly quantities: readonly ["altitude", "elevation"];
1645
+ readonly units: readonly ["m", "km"];
1646
+ };
1647
+ readonly heading: {
1648
+ readonly entities: readonly ["reported_object", "platform"];
1649
+ readonly quantities: readonly ["heading"];
1650
+ readonly units: readonly ["deg"];
1651
+ };
1652
+ readonly ambient_temperature: {
1653
+ readonly entities: readonly ["environment"];
1654
+ readonly quantities: readonly ["temperature", "ambient_temperature"];
1655
+ readonly units: readonly ["Cel", "K"];
1656
+ };
1657
+ readonly relative_humidity: {
1658
+ readonly entities: readonly ["environment"];
1659
+ readonly quantities: readonly ["relative_humidity"];
1660
+ readonly units: readonly ["%"];
1661
+ };
1662
+ readonly wind_speed: {
1663
+ readonly entities: readonly ["environment"];
1664
+ readonly quantities: readonly ["wind_speed"];
1665
+ readonly units: readonly ["m/s", "km/h"];
1666
+ };
1667
+ readonly moon_illumination: {
1668
+ readonly entities: readonly ["environment"];
1669
+ readonly quantities: readonly ["moon_illumination"];
1670
+ readonly units: readonly ["%", "1"];
1671
+ };
1672
+ readonly duration: {
1673
+ readonly entities: readonly ["temporal", "collection"];
1674
+ readonly quantities: readonly ["duration"];
1675
+ readonly units: readonly ["s", "min", "h"];
1676
+ };
1677
+ readonly distance: {
1678
+ readonly entities: readonly ["place"];
1679
+ readonly quantities: readonly ["distance"];
1680
+ readonly units: readonly ["m", "km"];
1681
+ };
1682
+ readonly bearing: {
1683
+ readonly entities: readonly ["place"];
1684
+ readonly quantities: readonly ["bearing"];
1685
+ readonly units: readonly ["deg"];
1686
+ };
1687
+ readonly water_depth: {
1688
+ readonly entities: readonly ["place"];
1689
+ readonly quantities: readonly ["water_depth"];
1690
+ readonly units: readonly ["m"];
1691
+ };
1692
+ readonly coordinate_precision: {
1693
+ readonly entities: readonly ["place"];
1694
+ readonly quantities: readonly ["coordinate_precision"];
1695
+ readonly units: readonly ["m"];
1696
+ };
1697
+ readonly time_alignment: {
1698
+ readonly entities: readonly ["collection"];
1699
+ readonly quantities: readonly ["time_alignment_uncertainty"];
1700
+ readonly units: readonly ["s", "ms"];
1701
+ };
1702
+ };
1703
+ declare function evaluateContextClaimHistory(input: unknown, options: ContextReviewOptions): Promise<ContextReviewResult>;
1704
+
1705
+ interface ResearchReviewOptions {
1706
+ /** Exact UTF-8 document bytes keyed by SHA-256. Nothing is fetched or normalized. */
1707
+ documents: ReadonlyMap<string, Uint8Array>;
1708
+ }
1709
+ interface ResearchReviewResult {
1710
+ success: boolean;
1711
+ issues: ContextIssue[];
1712
+ snapshots: Array<DocumentSnapshotRef & {
1713
+ status: "passed" | "failed" | "unavailable";
1714
+ }>;
1715
+ checks: {
1716
+ structural: "passed" | "failed";
1717
+ semantic: "passed" | "failed" | "not_checked";
1718
+ profile: "not_checked";
1719
+ external: "passed" | "failed" | "not_checked";
1720
+ };
1721
+ currentClaimRefs: string[];
1722
+ integrityScope: "supplied_entities_context_observation_and_acquisition_snapshot_bytes";
1723
+ temporalNormalization: "not_checked";
1724
+ sourceArtifactIntegrity: "not_checked";
1725
+ scientificInterpretation: "not_checked";
1726
+ multiSensorFusion: "not_checked";
1727
+ }
1728
+ declare function evaluateResearchClaimHistory(input: unknown, options: ResearchReviewOptions): Promise<ResearchReviewResult>;
1729
+
1730
+ 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, CONTEXT_MEASUREMENT_ROLES, type CompletionStatus, type ContextReviewOptions, type ContextReviewResult, 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, type ResearchReviewOptions, type ResearchReviewResult, SOURCE_INTAKE_PROFILE, SOURCE_INTAKE_SCHEMA_ID, type SourceIntake, type SourceIntakeResult, SourceIntakeSchema, acquisitionBindingsJsonSchema, datasetReleaseJsonSchema, evaluateAcquisitionBindings, evaluateAssessmentDocumentation, evaluateContextClaimHistory, evaluateDatasetRelease, evaluateDocumentationCompletion, evaluateHistoricalTestimony, evaluateInstrumentResearchCompletion, evaluateInstrumentResearchPrerequisites, evaluateMeasurementBindings, evaluatePhysicalSamples, evaluateProfileEvaluation, evaluateReleasedDocuments, evaluateReproductionPacket, evaluateResearchClaimHistory, evaluateResearchEvaluation, evaluateSourceIntake, historicalTestimonySelectionJsonSchema, instrumentResearchReviewJsonSchema, measurementBindingsJsonSchema, migrationCompatibilityJsonSchema, migrationLegacyScoresJsonSchema, migrationResolutionJsonSchema, migrationReviewJsonSchema, physicalSampleSelectionJsonSchema, profileEvaluationJsonSchema, profilePreparationJsonSchema, releasedDocumentSelectionJsonSchema, reproductionPacketJsonSchema, researchEvaluationJsonSchema, sourceIntakeJsonSchema };