vole_document/adapter/mod.rs
1//! Format adapters.
2//!
3//! An adapter proposes a reconstruction hypothesis. It never overrides the
4//! byte authority: a hypothesis is only admitted after it reproduces the exact
5//! source bytes and wins the complete-cost court.
6
7pub mod opaque;
8
9/// The source-format class decision for an input.
10///
11/// File extensions are hints, never authority. In Phase 1 every input is
12/// preserved by the opaque adapter, which is the unconditional exact floor.
13#[derive(Debug, Clone, Copy, PartialEq, Eq)]
14pub enum FormatDecision {
15 /// Unstructured bytes; preserved exactly by the opaque adapter.
16 Opaque,
17}