Release v1.0.5: Full-Genome GIAB HG002 chr1..chr22 Parity (8,111,171 Variants), SWAR/CRAM Hot-Path Accelerations, 416-Test >=90% Coverage Suite, and Supply-Chain Hardening¶
[!NOTE] Historical Release Document: This document records the release certification for
v1.0.5(engine fingerprintd925892846918c2a). For the currentv1.0.6release certification (engine fingerprint5865a2a0b24a8c17), seedocs/release/v1.0.6-pr.md.
Target Branch: main
Source Branch: release/v1.0.5
Release Fingerprint: d925892846918c2a (perf_fingerprint b7decb95be6077f1)
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)
Release Recertification Receipt (d925892846918c2a): validated vs VarDictJava 1.8.3, dataset micro + s1a-s9 + 17-modality extended + 18-slice multimodal + HG008/SEQC2/HG002(chr20)/Amplicon + 5 truth cohorts + chr1 scale, cmd bash harness/recertify.sh && bash harness/pr_check.sh && bash harness/acceptance.sh
Full-Genome chr1..chr22 Parity Receipt (PR #48, 08b397ab1d32e857): validated vs VarDictJava 1.8.3, dataset GIAB HG002 full-genome chr1..chr22 (56,642 50-kbp intervals, 8,111,171 variants, fp=0, fn=0), cmd target/release/vardictrust -G GRCh38_GIABv3.fasta -f 0.01 -N HG002 -b HG002.GRCh38.2x250.bam -c 1 -S 2 -E 3 -g 4 -z -th 32 hg002_full_giab_50kb.bed && python3 harness/compare_vcf.py --min-variants 1000000 java_giab_th32.vcf rust_giab_th32.vcf
Overview¶
This pull request prepares and certifies VarDictRust v1.0.5 off main (f886065), consolidating:
1. Full-Genome GIAB HG002 chr1..chr22 Parity (Issue #47, PR #48): Ungated parity-restoring fixes in StructuralVariantsProcessor::find_sv and Reference::get_reference achieving 100% parity (56,642 / 56,642 50-kbp intervals, 8,111,171 variants, fp=0, fn=0) against VarDictJava v1.8.3 (commit 0886261, Perl submodule 009e017) across all 22 autosomes of GIAB HG002 deep WGS.
2. SWAR u64 Realignment, Streaming CRAM & Runner Fast-Paths (Issue #45, PR #46, PR #49): SWAR 8-byte word matching in find_35_match, streaming cached CRAM container decoding, borrowed single-allele somatic Vars, synchronous single-thread runner fast-path (num_threads == 1), and elimination of ~582,600 redundant per-region stat() syscalls on BAM metadata cache hits.
3. 416-Test In-Process Workspace Suite, >= 90% Line Coverage Gate & 100% Golden-Store Reuse (PR #49): Added corpus_parity.rs (110 tests) and engine_behavior.rs (25 tests) via vardictrust_core::run_with_writer, bringing workspace tests to 416 with >= 90% cargo-llvm-cov line coverage enforcement and 100% pinned oracle baseline reuse (84 hit / 0 live).
4. Supply-Chain Hardening, Documentation Audit & Dependency Rollup (PR #50, PR #51, PR #52, PR #57): Hardened .cargo/audit.toml, deny.toml (all-features = true), .github/dependabot.yml, .githooks/, and GitHub Actions workflows, audited README.md, and upgraded noodles (0.118), rustc-hash (2.1.3), lzma-rust2 (0.22.0), clap_lex (1.1.1), libc (0.2.191), mkdocs-material (9.8.0), and pinned Actions.
Key Additions, Optimizations & Fixes in v1.0.5¶
1. Full-Genome GIAB HG002 chr1..chr22 Parity (8,111,171 Variants, Issue #47 / PR #48)¶
- Soft-Clip
unusedState Preservation &find_conseqSync infind_sv(crates/vardictrust-core/src/sv.rs): - Preserves
sclip.usedacross candidate<DEL>,<DUP>, and<INV>checks when no structural variant is finalized, and synchronizesfind_conseqsoft-clip mutations back to the liveSclipmap viasync_sclip_after_conseq(StructuralVariantsProcessor.java:687โ965). - Reference Seed Extension Parameter
-xvs-X(crates/vardictrust-core/src/reference.rs): - Uses
config.extension(-x, default0) instead ofconfig.extension_nuc(-X, default3) when computing reference seed fetch bounds inget_reference(ReferenceResource.java:85โ89), with checked/saturating arithmetic inSeedMap.
2. Hot-Path Realignment, CRAM Streaming & Runner Optimizations (Issue #45, PR #46, PR #49)¶
- SWAR
u64find_35_match(crates/vardictrust-core/src/realign.rs): - Accelerates \(3'/5'\) soft-clip sequence matching via 8-byte little-endian
u64XOR + zero-byte detection before tail byte checks. - Streaming Cached CRAM Container Decoding (
crates/vardictrust-core/src/bam.rs): - Streams decoded CRAM records directly from cached containers without materializing intermediate per-slice record vectors, and eliminates redundant
stat()syscalls on BAM metadata cache hits. - Single-Allele Somatic
VarsBorrowing & Synchronous 1-Thread Fast-Path (crates/vardictrust-core/src/postprocess/somatic.rs,src/runner.rs): - Avoids cloning
Variantstructs on single-allele somatic loci and bypasses Rayon thread-pool dispatch whennum_threads == 1.
3. Two-Tier Testing Architecture, 416 Workspace Tests & Supply-Chain Hardening (PR #49, PR #50, PR #51, PR #52, PR #57)¶
- In-Process Functional Parity & Behavior Suites (
416Total Workspace Tests): 252core library unit tests +110corpus_paritytests +25engine_behaviortests +2amplicon_stream_mem+2cram_stack+17CLI unit tests +8CLI binary integration tests (3profile_smoke+4robustness+1version), gated at>= 90%line coverage viacargo-llvm-cov.- Supply-Chain & Dependency Hygiene:
- Added
.cargo/audit.toml, enabledall-features = trueand[sources]verification indeny.toml, wired offline-safecargo denyandcargo auditinto.githooks/pre-commit, and upgradednoodles0.118,rustc-hash2.1.3,lzma-rust20.22.0,clap_lex1.1.1,libc0.2.191,mkdocs-material9.8.0, and SHA-pinned GitHub Actions.
Acceptance Gate & PR Check Certification¶
Both bash harness/pr_check.sh (6/6 stages) and bash harness/acceptance.sh (8/8 items) pass under certified engine fingerprint d925892846918c2a (perf_fingerprint b7decb95be6077f1):
item 1: PASS (Unit tests: 416 total workspace tests: 252 lib + 110 corpus_parity + 25 engine_behavior + 2 amplicon_stream_mem + 2 cram_stack + 17 cli + 3 profile_smoke + 4 robustness + 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: 17/17 benchmarks MATCH: micro + 10 slices + HG008 + SEQC2 exome + SEQC2 slices + HG002 + Amplicon + 17-mode extended + 18-slice multimodal)
item 4: PASS (Robustness: crash corpus + HG008 CRAM twin PASS)
item 5: PASS (Level 5 Scale & Perf-Budget 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 1.0.5, musl-ci PASS)
fingerprint d925892846918c2a
Key Documentation & Validation Artifacts¶
- Project README & Documentation:
README.md - Omnibus Master Empirical Validation Report:
docs/validation/omnibus-empirical-validation.md - Master Seven-Level Test Matrix & CI/CD Audit:
docs/testing/test-matrix-and-ci-audit.md - Release Engineering & Packaging Runbook:
CONTRIBUTING.md ยง9 - Historical Release Certifications:
docs/release/v1.0.4-pr.md,docs/release/v1.0.3-pr.md,docs/release/v1.0.1-pr.md&docs/release/v1.0.0-pr.md