VOLE-Document
Byte-exact procedural document storage.
VOLE-Document persists a bounded deterministic reconstruction description of a document — reconstruction structure, parameters/state, typed residual channels, and (in the entropy phases) typed rANS channels — and materializes the exact original bytes on demand.
The governing invariant of the exact profile is uncompromising:
materialize(descriptor) == original_bytes
Parsing successfully, producing "the same" text, the same object graph, the same pages, the same rendering, or a canonical re-save are not substitutes.
This project is deliberately not "a PDF optimizer that happens to use rANS". rANS is the entropy substrate beneath the representation, never the procedural model. See
SPEC.mdanddocs/for the architecture.
Status
| Area | State | Evidence |
|---|---|---|
Exact .voldoc container (framing, header, records) |
Implemented | src/container/, unit + conformance courts |
| Typed errors + stable exit codes | Implemented | src/error.rs |
| Centralized resource limits | Implemented | src/limits.rs |
| CRC32C framing + SHA-256 archival identity | Implemented | src/integrity.rs |
| Document Reconstruction Algebra (literal subset) | Implemented | src/dra/ |
| Coverage certificate (checked invariant) | Implemented | src/dra/program.rs |
| RAW exact opaque adapter | Implemented | src/adapter/opaque/ |
| Candidate complete-cost court + decode-before-commit | Implemented | src/encode/ |
CLI (encode/decode/verify/inspect/capabilities) |
Implemented | src/main.rs |
| Exact court over a mixed corpus | Measured | evidence/campaigns/ |
| Native rANS floor (Phase 2) | Planned | — |
| PDF physical authority + adapters (Phase 3–8) | Planned | — |
| EntropyFS store-backed form (Phase 9) | Planned | — |
| DSFB search governance (Phase 10) | Planned | — |
| Partial materialization (Phase 11) | Planned | — |
"Implemented" means the mechanism exists and is tested. "Measured" means there is
a sealed campaign under evidence/. No compression headline is claimed yet: the
Phase-1 core establishes exactness, framing, integrity, bounds, and receipts
before any entropy or format-aware mechanism is allowed to compete.
Quick start (Docker only)
All project commands run inside pinned containers. The host only invokes Docker.
# Build the toolchain image (pinned by digest in Dockerfile)
# Build, test, lint, format
# MSRV gate (Rust 1.89)
# Phase 1 exact court (writes an evidence receipt)
CLI surface (activated by the pipeline, not by extension — extensions are hints, never authority):
vole-document encode INPUT OUTPUT.voldoc
vole-document decode INPUT.voldoc OUTPUT
vole-document materialize INPUT.voldoc OUTPUT
vole-document verify INPUT.voldoc
vole-document inspect INPUT.voldoc
vole-document capabilities
Repository layout
src/ one crate; modules for architectural separation
tests/ exact / malformed / conformance courts
tools/ court and gate scripts (run inside Docker)
docs/ architecture, ADRs, security, phase notes
evidence/ immutable campaign receipts (machine-readable)
research/ LOCAL ONLY — gitignored (paper, snapshots, subagent findings)
research/ is intentionally excluded from version control. Durable findings that
matter to a phase are frozen into ADRs and phase notes and referenced from
receipts by hash.
Licensing
Dual-licensed under either MIT or Apache-2.0, at your option. See
LICENSE-MIT and LICENSE-APACHE.