Skip to content

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 fingerprint 27f3667b32ac14f5). For the current v1.0.6 release certification (engine fingerprint 5865a2a0b24a8c17), see docs/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 Vec allocations in JavaHashMap with a flat intrusive node arena (buckets: Vec<u32>, nodes: Vec<Node<K, V>>, free-list reuse), preserving exact OpenJDK 8+ bucket/chain iteration and treeify_bin semantics.
  • Eliminated heap allocations in get_variation / get_variation_maybe (IndexMap raw_entry_mut_v1 with stack UTF-8 keys), round_half_even (StackBuf<64>), SeedMap (SeedKey 17-byte inline key), ToVarsBuilder (sparse copy-on-write FxHashMap overlay), and CigarModifier::modify_cigar (dynamic (has_d, has_i, has_s) pre-filters + byte-slice post-loop matchers).
  • Enabled noodles-bgzf/libdeflate and configured tikv-jemallocator with 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× (hg002 497.1 MiB, seqc2 467.9 MiB, hg008 313.1 MiB, chr1 249 Mbp 1.42 GiB).
  • Exome BED Multi-Tile Batching & BGZF Block Caching (EBO-1..EBO-3, PR #37):
  • Added CachedBgzfReader with a 1-block thread-local cursor and 8-shard × 16-slot LRU process-wide BGZF_BLOCK_CACHE (EBO-1), lazy OnceCell<RawSeedMap> reference k-mer seeding (EBO-2), and 16-tile same-chromosome batching in regions::batch_tiles / runner::run_parallel_batched (EBO-3).
  • Reduced seqc2-exome-tier2 wall time by 2.51× (19m 28.78s \(\to\) 7m 46.34s, 6.9× faster than VarDictJava) and scale.json exome BED wall time across 1–8 threads by 1.38×–2.38× (3m 06.43s at -th 8).

2. Opt-In CPU, Heap & DHAT Profiling Framework (PR #35)

3. Parity-Restoring Fixes, Bounded Amplicon Memory & Golden Store (PR #25–#33)

  • Bounded-memory amplicon calling (-a and -a -p active-interval sweep, crates/vardictrust-core/tests/amplicon_stream_mem.rs, v1.0.2).
  • Per-tile BAM streaming for chrM RNA splicing (-i), ungated parity-restoring splice-tile-ownership and mate-window-ownership, and lowercase-n allele_key passthrough (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/)


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