Skip to content

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs

Comment 1, line 1

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:1

//! omp registry maps numeric session versions to implementations or compatibility fallback.

Comment 2, line 2

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:2

//! See architecture.md#adapter-layout / #unknown-version.

Comment 3, line 3

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:3

//!

Comment 4, line 4

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:4

//! Native checks found version=3 in all 58 local session headers (Scoop 18.2.7,

Comment 5, line 5

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:5

//! 2026-08-21 through 2026-09-24), supported by fixed oh-my-pi 62bc57b source. Add entries

Comment 6, line 6

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:6

//! without deleting historical implementations; session_v3 is currently the sole format.

Comment 7, line 7

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:7

//!

Comment 8, line 8

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:8

//! Selection differs from pi because the verified format scopes differ:

Comment 9, line 9

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:9

//! - Registered version: KnownVersion, dispatch through the mapping.

Comment 10, line 10

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:10

//! - Unregistered numeric/missing version: try the latest parser with LatestFallback.

Comment 11, line 11

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:11

//! Validated records retain compatibility metadata; an unregistered number alone does not cause rejection.

Comment 12, line 12

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:12

//! - Fixed pi source verifies v1/v2 as incompatible, but old omp file formats remain

Comment 13, line 13

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:13

//! unverified. omp therefore has no known_incompatible entries:

Comment 14, line 14

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:14

//! missing/unregistered versions try session_v3. Scanning evaluates structural incompatibility

Comment 15, line 15

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:15

//! under V30: observed records/zero events/structural diagnostics retain previous results.

Comment 16, line 19

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:19

/// This constant selects the latest built-in implementation without network access.

Comment 17, line 22

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:22

/// Registered numeric session versions mapped to implementations.

Comment 18, line 23

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:23

/// Each version has native-sample checks; shared formats retain separate version entries.

Comment 19, line 25

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:25

// All 58 native session headers used version=3; fixed oh-my-pi 62bc57b source agrees.

Comment 20, line 29

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:29

/// Version selection result.

Comment 21, line 36

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:36

/// Detection/scanning select by the original numeric session version through this function (V30).

Comment 22, line 49

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:49

// With known product identity/input format, unregistered/missing versions try the latest parser.

Comment 23, line 50

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:50

// Older omp formats remain unverified, without verified incompatibility; do not reject them by version alone.

Comment 24, line 90

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:90

// Missing legacy version likewise tries compatibility, unlike pi:

Comment 25, line 91

desktop/src-tauri/crates/core/src/adapters/omp/versions/mod.rs:91

// fixed source verifies versionless pi v1 as incompatible, while old omp remains unverified.