Storage Researcher System
Database compression system evolving per-column encoding recipes and a molecular (DNA) storage layer.
Applies the Main Researcher System (pattern extraction → combinatorial recombination → dual evaluation → recursive archive) to structured database compression and molecular (DNA) storage encoding. This repository provides a general-purpose, production-ready CLI for compressing arbitrary CSVs, alongside the full evolutionary research code.
Read the full writeup in paper.md for related work, system design, and results.
🚀 Key Results (Real, Tested Data)
- 18.07x Compression: Tested on a 300,000-row (130 MB) synthetic database. Evolved optimal per-column encodings and verified byte-exact on every schema column.
- 10.0x General-Purpose CLI Compression: Zero hardcoded schemas. Automatically measures and applies the best encoding per column on an arbitrary held-out 50,000-row CSV.
- Biochemically-Valid DNA Encoding Layer: Output is successfully re-encoded into a base sequence (homopolymer ≤3, GC ~50%) featuring erasure-coded redundancy. Demonstrated 100% fountain-decode success across repeated 10%-droplet-loss trials.
🛠️ Quick Start
Install required dependencies:
pip install zstandard numpy
Self-Test & Production CLI
# Run the block-level self-tests (round-trips every encoder/decoder)
python3 blocks.py
# Compress any CSV — auto-detects the best encoding per column
python3 pipeline.py compress your_data.csv out.mrsc
# Compress with the DNA molecular encoding layer
python3 pipeline.py compress your_data.csv out.mrsc --molecular
# Decompress and verify
python3 pipeline.py decompress out.mrsc restored.csv
python3 pipeline.py inspect out.mrsc
Reproduce the Research Run
Reproduce the full evolutionary search (evolutionary search -> full-scale apply -> moonshot layer -> report), phased so each step is checkpointed:
python3 run_research.py gen
python3 run_research.py search
python3 run_research.py finalize
python3 run_research.py moonshot
python3 run_research.py report
📂 Architecture & Files
| File | Description |
|---|---|
blocks.py |
Pattern library: Dictionary/delta/RLE/quantization encoders, ZSTD/LZMA, DNA base-4 encoding + homopolymer/GC constraints + fountain erasure coding. Every function is round-trip tested in self_test(). |
engine.py |
The Main Researcher System: Recipe generation, crossover/mutation, two evaluators (evaluate_sourced, evaluate_moonshot), and the evolutionary loop. |
pipeline.py |
The production tool: General-purpose CSV compressor. Measures every applicable encoding per column on unseen data, retaining the most efficient and verified-lossless option. |
run_research.py |
Phased runner: Executes the evolutionary loop to produce the numbers in paper.md. |
generate_dataset.py |
Data generator: Builds the synthetic 300K-row test database with deliberately mixed column types. |
paper.md |
The research writeup: Details related work, system design, results, real bugs found and fixed, and clarifies what the "1 gram" claim signifies. |
🧬 What "Gram-Scale" Actually Means
The --molecular flag produces a real, tested, round-trip-verified DNA base sequence in software. It does not synthesize physical DNA — that requires wet-lab equipment beyond the scope of this repository. Every gram figure mentioned is calculated arithmetically against published density figures (see paper.md §2.2 and §6), based on the compressed byte count.
Metadata
Release files for storage-researcher 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| storage_researcher-1.0.0.tar.gz | 22.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| storage_researcher-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.2 kB
Release files / storage_researcher-1.0.0.tar.gz
| Download URL | storage_researcher-1.0.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f038c75d68185a12ec2abcc3a91bf3a17574566dcff4dd0caa0543e6f897ff07
|
|
BLAKE2b-256 checksum How to use checksums |
4197b918d30cee39dea197c5293a81472bb8c2d0856942612a3c5bf88abcd630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / storage_researcher-1.0.0-py3-none-any.whl
| Download URL | storage_researcher-1.0.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adb0b1e9ae6a65d86f6da2f01e44d1a092e7f0aed04b3255abc08aa157fb94a9
|
|
BLAKE2b-256 checksum How to use checksums |
4a1550f7ecaaee9ce4c85a8482ecb22f2e5c69ccdd63b7a78ea6c16bcbde81f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for storage-researcher 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.