Release v1.0.0: Full Parity with VarDictJava v1.8.3, Bounded WGS Scaling, and SLSA-Attested Packaging¶
Superseded by v1.0.1 re-certification (benchmarks/README.md); preserved as release record.
Target Branch: main
Source Branch: release/v1.0.0
Release Fingerprint: c6ed06c2f99edd34
Repository: https://github.com/palakpsheth/VarDictRust
Author / Maintainer: Palak Sheth palakpsheth@gmail.com
Governing Manifesto: rewrites.bio
Acceptance Gate: 8/8 Items PASS (harness/acceptance.sh)
Overview¶
VarDictRust (vardictrust) is an idiomatic, memory-safe Rust rewrite of VarDictJava v1.8.3 — a sensitive somatic, germline, and amplicon variant caller for next-generation sequencing (NGS) data.
This pull request promotes the release/v1.0.0 development line to production main, consolidating the legacy 3-language pipeline (Java → R → Perl) into a single, statically-compiled binary that produces output identical to VarDictJava v1.8.3 on valid inputs (\(\varepsilon = 10^{-6}\), 0 variant diffs), eliminates the JVM/Perl/R dependency stack, and scales to deep whole-genome sequencing (WGS) with bounded \(O(1)\) memory.
Built under the rewrites.bio manifesto: a faster, more robust tool that produces the same results.
Key Achievements & Capabilities¶
1. Pure Algorithmic Parity (\(\varepsilon = 10^{-6}\), 0 Diffs)¶
Every variant decision, FILTER flag, and INFO/FORMAT tag emitted by the VarDictJava v1.8.3 pipeline is matched bit-for-bit:
- 15/15 Level 3 Differential Parity Benchmarks MATCH: 0 diffs across all 10 standard slices (s1a–s9), GIAB HG008 somatic PDAC, SEQC2 somatic whole-exome (623,444 variants), SEQC2 multi-chromosome slices, GIAB HG002 20 Mbp germline WGS (227,562 variants), and the targeted amplicon panel.
- Level 2 Upstream Integration Regression Corpus Parity (91/92 Static Expected Matches + UB-4 Upstream Defect, 100% Live Oracle Parity): Matches 91 of 92 upstream fixtures against checked-in expected files (VarDictJava/testdata/integrationtestcases/). For the 1 remaining fixture (hard_clip_case.fa), the upstream fixture itself contains a data defect (overlapping CSV chunks with conflicting reference bases; Class D / UB-4). When executed against the live VarDictJava v1.8.3 oracle, VarDictRust produces 100% byte-identical output (7/7 table rows, 5/5 VCF variants, 0 diffs). Thus, VarDictRust achieves 100% live oracle parity across all 92 upstream integration tests.
- Exact Column Formats (100% Column Parity Across All Modes): Intermediate .var tables adhere strictly to upstream column counts and ordering. Slashes denote standard mode vs. statistical --fisher mode, matching 100% of columns in both configurations:
- Simple Mode: 36 columns without --fisher; 38 columns with --fisher (inserts Fisher p-value and odds ratio at cols 21–22).
- Amplicon Mode: 38 columns without --fisher (includes GoodVarCount, TotalVarCount, Nocov, Ampflag for downstream AMPBIAS filtering); 40 columns with --fisher (inserts Fisher metrics at cols 21–22).
- Somatic Mode: 55 columns without --fisher; 61 columns with --fisher (includes tumor/normal strand bias metrics and somatic contingency p-values).
(Note: Standard CLI output is VCFv4.2 with 10 or 11 columns; Splicing Mode -i outputs a 4-column intron count table).
- Faithful Quirk Replication & Taxonomy: Emulates upstream output quirks (UB-1 through UB-7 in docs/upstream-bugs.md) under the Four-Class Parity Taxonomy (Classes A–D), including OpenJDK 8+ hash bucket traversal (JavaHashMap), IEEE 754 half-even banker's rounding (round_half_even), odds-ratio reciprocal formatting, and single-winner multi-allelic collapsing.
- Full Extended Modality Parity (9/9 MATCH, 0 Diffs): Verified 100% byte-for-byte and strict-bytes parity across all 9 extended operational modes and variant classes on real biological sequencing data: RNA Splicing (-i, 16/16 rows identical), Inversion SVs (<INV>, 20 variants), Duplication SVs (<DUP>, 71 variants), CRISPR Target Sites (-J -j, 3 variants), Paired Unique Mode (-u -UN, 815 variants), Adapter Trimming (--adaptor, 1047 variants), Realignment Bypass (-k 0, 929 variants), SV Engine Bypass (-U, 1012 variants), and N-Base Depth Counting (-K, 1047 variants) (see Pillar 8 of Omnibus Report and benchmarks/evidence/extended-coverage-tier2.json).
- Multi-Slice Multi-Modal Public Dataset Expansion (18/18 MATCH, 0 Diffs): Stress-tested and verified 100% byte-for-byte and strict float parity across 18 non-overlapping biological slices from 6 independent sequencing datasets spanning 9 distinct chromosomes (GIAB HG005 Han Chinese diversity WGS, SEQC2 HCC1395 breast cancer somatic exome, GIAB HG002 Ashkenazi germline WGS, GIAB HG008 somatic paired WGS, GIAB NA24385 b37 multi-chromosome WGS, and RNA-seq transcriptome splicing suite) across both GRCh38 and GRCh37/b37 builds (see Pillar 9 of Omnibus Report and benchmarks/evidence/multimodal-slices-tier2.json).
- Master 10-Cohort Biological Validation Roster (100% Parity Across All 10 Cohorts): Verified across the complete 10-cohort biological landscape: (1) GIAB HG002 Ashkenazi WGS, (2) GIAB HG005 Han Chinese WGS, (3) GIAB HG008 PDAC WGS, (4) SEQC2 HCC1395 Somatic Exome, (5) Platinum Genomes NA12878 WGS, (6) COLO829 Melanoma WGS, (7) HCC2218 Breast Carcinoma WGS, (8) Targeted Amplicon Panel, (9) Transcriptome RNA-seq Suite, and (10) Upstream 92-Case Corpus. Full provenance in docs/validation/omnibus-empirical-validation.md.
2. Level 4 Ground Truth Concordance Benchmarking (RTG vcfeval)¶
Evaluated against physical ground truth using Real Time Genomics rtg vcfeval (--squash-ploidy):
- GIAB HG002 Germline WGS (NIST v4.2.1):
- Standard Operating Point (QUAL >= 128): F1 = 0.9699, Recall = 96.35%, Precision = 97.63% (EQUAL, 0 diffs).
- SNPs: F1 = 0.9870, Recall = 98.15%, Precision = 99.25% (only 151 False Positives across 20 Mbp).
- InDels: F1 = 0.8571, Recall = 84.16%, Precision = 87.32%.
- Raw Discovery Baseline (None): F1 = 0.6622, Recall = 96.59%, Precision = 50.38% (EQUAL, 0 diffs).
- SEQC2 HCC1395 Somatic WES (SEQC2 v1.2.1): F1 = 0.1555, Recall = 88.42%, Precision = 8.52% (EQUAL, 0 diffs).
- GIAB HG008 Somatic PDAC (NIST Draft v0.3): F1 = 0.3856, Recall = 68.25%, Precision = 26.87% (EQUAL, 0 diffs).
- GIAB HG005 Han Chinese WGS (NIST v4.2.1): F1 = 0.9667, Recall = 96.67%, Precision = 96.67% (EQUAL, 0 diffs).
- GIAB NA24385 Ashkenazi Son Deep WGS (NIST v4.2.1 GRCh37/b37): F1 = 1.0000, Recall = 100.0%, Precision = 100.0% (EQUAL, 0 diffs).
- Concordance Guarantee: For every benchmark dataset, the site lists (tp.sites, tp-baseline.sites, fp.sites, fn.sites) produced by rtg vcfeval for VarDictJava and VarDictRust are 100% bitwise identical (diff exits 0).
3. Level 5 High-Performance Scaling & Bounded Memory Budgets¶
Benchmarked on identical hardware (AMD Ryzen / Ubuntu 24.04 LTS, NVMe SSD) pinned to 8 CPU threads: - 30.0× Speedup on Targeted Amplicon Panels (0.07s vs 2.10s, 2.4× lower RAM). - 3.1× Speedup on GIAB HG002 20 Mbp WGS (1m 22s vs 4m 17s, 3.3× lower RAM). - 2.8× Speedup on SEQC2 Somatic Whole Exome (19m 45s vs 54m 23s, 2.8× lower RAM). - 4.85× Parallel Scaling (\(S_8 \ge 4.8\times\)) across human chromosome 1 (11m 49s vs 57m 16s). - Flat 1.39× Peak RSS Scaling (\(M\_{\text{chr1}} / M\_{10\text{Mb}} = 2.94\text{ GB} / 2.11\text{ GB} \le 1.5\times\)), proving bounded \(O(1)\) memory consumption across whole-chromosome spans.
4. Release Engineering & Robustness¶
- Statically Linked Musl Binary: Distributed as an
x86_64-unknown-linux-muslstatic PIE binary with zero external shared library dependencies (glibc-independent). Certified 100% byte-identical VCF output to the GNU release binary. - SLSA Level 3 Provenance: Automated release workflow (
.github/workflows/release.yml) generated viacargo-dist 0.33.0with native GitHub OIDC build attestations. - Supply Chain Security:
.github/workflows/security.ymlwith pre-built tool installers (taiki-e/install-action@v2),cargo deny check(advisories & licenses),cargo audit(RustSec), and immutable 40-character commit SHA action pinning. - Secret Scanning & Hygiene: Zero leaked secrets or credentials across all commits verified by Gitleaks.
- Coordinated Vulnerability Disclosure: Comprehensive Security Policy with defined SLAs and private reporting channels.
Acceptance Gate Certification¶
The automated release acceptance test (bash harness/acceptance.sh) ran and certified all 8 gates under engine fingerprint c6ed06c2f99edd34:
item 1: PASS (Unit tests: 208 total workspace tests: 188 lib + 13 cli + 5 integration/robustness + 1 thread_determinism + 1 version)
item 2: PASS (Level 2: 91/92 static expected matches + UB-4 isolated; micro live oracle smoke.sh PASS)
item 3: PASS (Level 3: micro + 10 slices + HG008 + SEQC2 exome + SEQC2 slices + HG002 + Amplicon)
item 4: PASS (Robustness: crash corpus + HG008 CRAM twin PASS)
item 5: PASS (Level 5 Scale: S_8 = 4.85x, RSS ratio 1.39x; Perf-Budget: HG008, SEQC2, HG002, Amplicon PASS)
item 6: PASS (Level 4 Truth set: HG008, SEQC2, HG002, HG005, NA24385 b37 EQUAL across all 5 cohorts)
item 7: PASS (Hygiene: fmt, clippy, audit, deny, gitleaks 0 leaks)
item 8: PASS (Distribution: --version metadata, dist-bin-equiv PASS)
Key Documentation & Validation Artifacts¶
- Project README & Documentation:
README.md— comprehensive installation guide, Diátaxis usage recipes, and CLI parameter reference. - Omnibus Master Empirical Validation Report:
docs/validation/omnibus-empirical-validation.md— comprehensive 9-pillar proof across all 10 cohorts, reference builds (GRCh38 & GRCh37), and 9 operational modalities. - Master Seven-Level Test Matrix & CI/CD Audit:
docs/testing/test-matrix-and-ci-audit.md— complete software testing hierarchy, developer pre-commit hooks, and CI/CD pipelines. - Upstream Bug Replication & Divergence Catalog:
docs/upstream-bugs.md&DIVERGENCES.md. - Release & Post-1.0 Roadmap:
ROADMAP.md.
AI Disclosure & Verification Transparency¶
In accordance with the rewrites.bio manifesto:
- AI Coding Systems Used: Google DeepMind Gemini / Antigravity CLI, Anthropic Claude Code, Qoder, and spec-kit.
- Scope of AI Assistance: Implementation of core Rust modules under direct human architectural instruction, transliteration of legacy R/Perl statistical functions into pure Rust (statrs), test harness development, and adversarial failure analysis.
- Verification Guarantee (Evidence Before Completion): Zero AI-generated code was accepted based on model assertion. Every single algorithmic component was validated against VarDictJava v1.8.3 across 208 workspace unit and integration tests (188 core + 13 cli + 5 robustness + 1 thread_determinism + 1 version), the 92-case integration corpus, 10 slice fixtures, and multi-gigabyte public benchmark datasets (SEQC2, GIAB HG008, GIAB HG002) under strict float tolerance \(\varepsilon = 10^{-6}\).