A bare-metal VFS router bypassing legacy OS buffer managers for ~1.4ms NVMe ingestion.
Sovereign VFS is a self-healing, bare-metal Virtual File System router engineered in C++20. It is designed specifically to eliminate the compute bottlenecks, parity taxes, and write-amplification inherent in standard OS buffer managers during high-throughput ingestion.
This repository serves as the Architecture Decision Record (ADR) and benchmark log for the v1.0.0 production release.
In high-frequency ingestion environments (AI context retrieval, time-series, vector databases), standard legacy storage protocols create massive CapEx/OpEx bleeding:
- Ghost Compression: Generic compression algorithms waste massive CPU cycles attempting to compress pre-dense or high-entropy chunks.
- The Parity Tax: Standard Reed-Solomon implementations demand a baseline 20%+ global parity tax just to protect against drive degradation.
- Write Amplification: Standard file systems waste physical slack space, accelerating SSD burnout and introducing tail-latency jitter.
Sovereign VFS bypasses these layers entirely to return sellable compute margins back to the node.
Rather than relying on user-space buffers or floating-point Shannon Entropy guesses, Sovereign operates directly at the hardware layer.
The router maps data directly, bypassing legacy OS buffer managers. Data is processed using lock-free parallel execution to intercept block-layer framing.
- The Pivot: Instead of blanket compression, the router uses a micro-chunk routing logic driven by deterministic trial-compression.
- If a chunk hits the deterministic threshold, it routes as COMPRESSED. If it fails the threshold, it routes as DIRECT Raw.
- Impact: This entirely eliminates "ghost compression," ensuring zero CPU cycles are wasted on uncompressible data.
The router executes strict tail-end physical sector packing.
- Impact: Zero 4KB physical slack space is left within the output file. This neutralizes write-amplification, physically extending the lifespan of the underlying NVMe drives and stabilizing tail-latency.
Standard file systems trust the hardware. Sovereign VFS assumes the hardware is actively degrading.
- In-Memory Validation: Uses a proprietary dual-map metadata mirror to execute cryptographic validation at both the whole-file and micro-chunk levels.
- Impact: This allows the engine to autonomously detect physical sector rot and self-heal data in-memory for
<0.01%overhead, completely bypassing the 20% global parity tax of Reed-Solomon. - Zero-Trust Thermal Failsafe: If the host CPU thermal-throttles or chokes, the watchdog instantly aborts and executes a zero-trace hygiene wipe of temporary files. It refuses to write corrupt data.
- Hardware Accountability: If sector rot is detected and repaired, the protocol locks the UI and forces a manual rewrite to a fresh sector, ensuring the hardware flaw is not swept under the rug.
- CPU Tax: ~1.4ms per operation overhead via kernel-level ingestion.
- Storage Economy: Peak observed savings of 72% logical space on raw, high-frequency datasets.
- Validation Overhead: <0.01% compute overhead for real-time sector rot detection.
(Note to reader: See the `Sovereign_core C++ terminal output.png' in this repo for side-by-side terminal execution logs demonstrating the ~1.4ms CPU tax during high-throughput ingestion against standard OS cache performance.)