Release v1.0.3: Deep-Pileup & High-Region Exome Optimization, Profiling Suite, Nextflow nf-core Module, and Repository Agent Skills¶
[!NOTE] Historical Release Document: This document records the release certification for
v1.0.3(engine fingerprint27f3667b32ac14f5). For the currentv1.0.6release certification (engine fingerprint5865a2a0b24a8c17), seedocs/release/v1.0.6-pr.md.
Target Branch: main
Source Branch: release/v1.0.3
Release Fingerprint: 27f3667b32ac14f5 (perf_fingerprint 9f75643cf12aa988)
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)
Validation Receipt: validated vs VarDictJava 1.8.3, dataset micro + s1a-s9 + 17-modality extended + 18-slice multimodal + HG008/SEQC2/HG002/Amplicon, cmd bash harness/pr_check.sh && bash harness/acceptance.sh
Overview¶
This pull request prepares and certifies VarDictRust v1.0.3 off main (da045e0), consolidating all post-v1.0.1/v1.0.2 engine optimizations (PR #29, PR #32, PR #33, PR #35, PR #37), the opt-in CPU/heap/DHAT profiling framework, the 10-class vardictcpp forensic divergence audit (CPP-1–CPP-10), in-tree Nextflow nf-core module packaging (packaging/nf-core/), and the four repository-specific Agent Skills (.agents/skills/) while preserving 100% byte-for-byte and floating-point parity (\(\varepsilon = 10^{-6}\), 0 variant diffs) with VarDictJava v1.8.3 (commit 0886261, Perl submodule 009e017).
Key Additions & Improvements in v1.0.3 (incorporating v1.0.2 – v1.0.3)¶
1. Deep-Pileup, Allocator & High-Region Exome Optimizations (PR #35, PR #37)¶
- Zero-Allocation Hot-Path Pileup & Intrusive
JavaHashMap(O-1–O-12a,PR #35): - Replaced per-bucket
Vecallocations inJavaHashMapwith a flat intrusive node arena (buckets: Vec<u32>,nodes: Vec<Node<K, V>>, free-list reuse), preserving exact OpenJDK 8+ bucket/chain iteration andtreeify_binsemantics. - Eliminated heap allocations in
get_variation/get_variation_maybe(IndexMapraw_entry_mut_v1with stack UTF-8 keys),round_half_even(StackBuf<64>),SeedMap(SeedKey17-byte inline key),ToVarsBuilder(sparse copy-on-writeFxHashMapoverlay), andCigarModifier::modify_cigar(dynamic(has_d, has_i, has_s)pre-filters + byte-slice post-loop matchers). - Enabled
noodles-bgzf/libdeflateand configuredtikv-jemallocatorwith static_rjem_malloc_conf(background_thread:true,dirty_decay_ms:250,muzzy_decay_ms:0,narenas:8), cutting peak RSS by 1.7×–4.2× (hg002497.1 MiB,seqc2467.9 MiB,hg008313.1 MiB,chr1249 Mbp1.42 GiB). - Exome BED Multi-Tile Batching & BGZF Block Caching (
EBO-1..EBO-3,PR #37): - Added
CachedBgzfReaderwith a 1-block thread-local cursor and 8-shard × 16-slot LRU process-wideBGZF_BLOCK_CACHE(EBO-1), lazyOnceCell<RawSeedMap>reference k-mer seeding (EBO-2), and 16-tile same-chromosome batching inregions::batch_tiles/runner::run_parallel_batched(EBO-3). - Reduced
seqc2-exome-tier2wall time by 2.51× (19m 28.78s\(\to\)7m 46.34s, 6.9× faster than VarDictJava) andscale.jsonexome BED wall time across 1–8 threads by 1.38×–2.38× (3m 06.43sat-th 8).
2. Opt-In CPU, Heap & DHAT Profiling Framework (PR #35)¶
- Added
crates/vardictrust/src/profile.rs,harness/profile.sh,harness/profile_catalog.py, and 3 integration smoke tests incrates/vardictrust/tests/profile_smoke.rs, guarded byharness/tests/test_release_deps.shto guarantee zero profiler dependencies in production builds.
3. Parity-Restoring Fixes, Bounded Amplicon Memory & Golden Store (PR #25–#33)¶
- Bounded-memory amplicon calling (
-aand-a -pactive-interval sweep,crates/vardictrust-core/tests/amplicon_stream_mem.rs,v1.0.2). - Per-tile BAM streaming for
chrMRNA splicing (-i), ungated parity-restoringsplice-tile-ownershipandmate-window-ownership, and lowercase-nallele_keypassthrough (PR #29). - Hash-verified Golden Baseline Store (
harness/golden_store.sh,harness/golden_store.py) and turnkey G4 cohort stager (harness/stage_g4.sh,PR #32/#33).
4. In-Tree Nextflow nf-core Packaging & Repository Agent Skills (.agents/skills/)¶
- Added
packaging/nf-core/modules/vardictrust/andpackaging/nf-core/prepare_nfcore_pr.shalongsidepackaging/bioconda/. - Added four committed repository Agent Skills under
.agents/skills/: vardictrust-issuevardictrust-prvardictrust-profiling(Rust API reference)vardictrust-release(check_release_consistency.py& 19-surface map)
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 27f3667b32ac14f5 (perf_fingerprint 9f75643cf12aa988):
item 1: PASS (Unit tests: 277 total workspace tests: 231 lib + 2 amplicon_stream_mem + 2 cram_stack + 13 cli + 19 flags + 3 profile_smoke + 5 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: 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: S_8 = 3.48x, RSS ratio 1.22x; Perf-Budget: HG008 4.3x, SEQC2 6.9x, HG002 6.2x, Amplicon 36.4x 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.3, musl-ci PASS)
fingerprint 27f3667b32ac14f5
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.1-pr.md&docs/release/v1.0.0-pr.md