Skip to content

Release v1.0.6: Deep-Coverage Multi-Platform & Noise-Floor (-f 0) VarDictJava v1.8.3 Parity Across 7 Chemistries, 16 MiB Worker Stack Resilience, and 427-Test Suite

[!NOTE] Historical Release Document: This document records the release certification for v1.0.6 (engine fingerprint 5865a2a0b24a8c17). For the current v1.0.7 release certification, see docs/release/v1.0.7-pr.md.

Target Branch: main
Source Branch: release/v1.0.6
Release Fingerprint: 5865a2a0b24a8c17 (perf_fingerprint c490c36317b8f25b)
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 (5865a2a0b24a8c17): 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
Multi-Platform Deep-Coverage Parity Receipt (Issue #60, PR #61, PR #62): validated vs VarDictJava 1.8.3, dataset GIAB HG002/HG003/HG004/HG008 + SEQC2 HCC1395 + Colo829 + Amplicon + Splicing across Illumina/HiFi/ONT/Element/Ultima/MGI/Roche SBX at -f 0.01 and -f 0 (-r 2 and -r 1) (separate Issue #60 audit alongside Tier-A PR gate), cmd bash harness/compare.sh <ref> <bam|tumor|normal> <bed> <sample> -f 0.01 -th 8 -z -U && bash harness/compare.sh <ref> <bam|tumor|normal> <bed> <sample> -f 0 -r 2 -th 8 -z -U && bash harness/compare.sh <ref> <bam|tumor|normal> <bed> <sample> -f 0 -r 1 -th 8 -z -U && bash harness/pr_check.sh


Overview

This pull request prepares and certifies VarDictRust v1.0.6 off main (35b7b0c), consolidating: 1. Deep-Coverage Multi-Platform & Noise-Floor (-f 0) VarDictJava v1.8.3 Parity (Issue #60, PR #61, PR #62): Resolves 14 subtle upstream parity edge cases uncovered during the cross-platform chr20 + Part B (chr1/chr6/chr17) audit across all 4 calling modes (Simple, Somatic, Amplicon, Splicing), 7 sequencing chemistries (Illumina, PacBio HiFi, ONT, Element, Ultima, MGI, Roche SBX), and both -f 0.01 and -f 0 (-r 2 and -r 1 noise floor). 2. 16 MiB Worker Thread Stack Resilience & Zero-Allocation Reference Seed Loading (PR #61, PR #62): Configures Rayon worker threads with a 16 MiB stack (WORKER_THREAD_STACK_BYTES) to eliminate stack overflows during deep CRAM rANS/LZMA decompression and recursive structural variant realignment, and adds reference::get_reference_with_chr_len to eliminate per-window HashMap allocations. 3. 427-Test Workspace Suite & Mandatory Multi-Skill PR Review Gate (PR #59, PR #61, PR #62): Adds 11 new unit regression tests (263 vardictrust-core library tests, 427 total workspace tests), updates in-tree Bioconda recipe metadata, and codifies the mandatory multi-skill PR review and Copilot thread-resolution gate in AGENTS.md §15.8.


Key Additions, Optimizations & Fixes in v1.0.6

1. Deep-Coverage Multi-Platform & Noise-Floor (-f 0) Parity (Issue #60, PR #61, PR #62)

  • Multi-BAM Deduplication, Early-Break & Upfront Specification Validation (crates/vardictrust-core/src/bam.rs, src/lib.rs, src/realign.rs, src/sv.rs):
  • Resets per-BAM duplicate tracking via RecordPreprocessor::reset_for_next_bam() while preserving cumulative total_reads/duplicate_reads (Scope.resetDuplicates), replicates BAMReader.hasMoreBams (if idx > 0 && !any_passed { break; }) across colon-delimited multi-BAM inputs (bam1:bam2), and validates both tumor and normal BAM specifications upfront via parse_colon_bams.
  • Somatic BAM2 splice Set & maxReadLength Propagation (crates/vardictrust-core/src/lib.rs, src/postprocess/somatic.rs):
  • Seeds BAM2's CigarParser and sv::find_all_sv (find_del_disc) with BAM1's discovered splice set (SomaticMode.java:104-122), threads &mut HashSet<String> and &mut max_read_length across combine_analysis windows (SomaticPostProcessModule.java:198-200, 303-311, 398-406), and selects max_af_variant on 4-decimal banker-rounded freq (SomaticPostProcessModule.java:118-127, 219-227).
  • Pileup, Realignment, Structural Variants & VCF/Table Formatting (crates/vardictrust-core/src/cigar/parse.rs, src/variations/util.rs, src/realign.rs, src/sv.rs, src/tovars.rs, src/postprocess/amplicon.rs, src/output/table.rs, src/output/vcf.rs):
  • Updates max_read_length before the 0x800 supplementary-read return (CigarParser.java:181-190), counts reference N bases as mismatches with unconditional offset increment in M-after-I lookahead (CigarParser.java:460-476), uses signed i32 loop bounds (for k in 0..element_len) in \(3'\) soft-clip rescue (CigarParser.java:1322-1457), caches adaptor-cleared empty consensus sequences in find_conseq (VariationUtils.java:136-148), preserves vref.cnt in \(5'\)/\(3'\) SV inversion branches (StructuralVariantsProcessor.java:781-795, 922-936), allows signed next_var.fwd/rev decrements in ToVarsBuilder (ToVarsBuilder.java:337-340), fixes amplicon null-row tlamp/ncamp and good_variants persistence (AmpliconPostProcessModule.java:152-246), canonicalizes -0 in round_half_even, applies two-stage 1dp -> 0dp HALF_EVEN rounding to paired MQ (var2vcf_paired.pl), evaluates VCF filters on rounded HIAF/SN/MSI/SBF, and emits ;CRISPR= in single-sample VCF INFO when -J is enabled.

2. Worker Stack Resilience, 427 Workspace Tests & PR Review Governance (PR #61, PR #62)

  • 16 MiB Worker Stack & Zero-Allocation Secondary Reference Loading (crates/vardictrust-core/src/runner.rs, src/reference.rs):
  • Sets WORKER_THREAD_STACK_BYTES = 16 * 1024 * 1024 on the Rayon worker pool and adds reference::get_reference_with_chr_len.
  • Expanded Workspace Test Suite (427 Total Workspace Tests):
  • 263 core library unit tests + 110 corpus_parity tests + 25 engine_behavior tests + 2 amplicon_stream_mem + 2 cram_stack + 17 CLI unit tests + 8 CLI binary integration tests (3 profile_smoke + 4 robustness + 1 version), gated at >= 90% line coverage via cargo-llvm-cov.

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 5865a2a0b24a8c17 (perf_fingerprint c490c36317b8f25b):

item 1: PASS (Unit tests: 427 total workspace tests: 263 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.6, musl-ci PASS)
fingerprint 5865a2a0b24a8c17

Key Documentation & Validation Artifacts