Skip to content

Release v1.0.8: Complete 89-Flag CLI & var2vcf Parity, Direct BGZF/Tabix/CSI Streaming, Tier-1 Engine Accelerations, Adversarial Security Hardening, and 657-Test Suite

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

Target Branch: main
Source Branch: release/v1.0.8
Release Fingerprint: bb09a4d1d4de46bf (perf_fingerprint 96a2fc98744b17c7)
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 (bb09a4d1d4de46bf): 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


Overview

This pull request prepares and certifies VarDictRust v1.0.8 off main (759b9c4), consolidating 17 pull requests (PR #86–PR #89, PR #97–PR #108, PR #114):

  1. Complete 89-Flag CLI Surface, Consolidated var2vcf Post-Filters & Direct BGZF/Tabix/CSI Streaming (Issue #93, Issue #94, PR #100, PR #102, PR #104–PR #108):
  2. Adds native --output <PATH> streaming to plain or multithreaded BGZF (.gz/.bgz) files with atomic StagedFileTarget .tmp.<pid>.<seq> staging and File::sync_all verification, pure-Rust --tbi / --index (.vcf.gz.tbi) and --csi (.vcf.gz.csi) index writers honoring symbolic SV INFO/END spans, --no-end (var2vcf_valid.pl -E), --stats-json <PATH>, --parity / --compat vardictjava-1.8.3, and UPSTREAM.toml reference comparator provenance.
  3. Completes all 16 consolidated var2vcf_valid.pl / var2vcf_paired.pl VCF post-filter, threshold, genotype, and sliding-window Cluster<N>bp flags (--pass-only, --paired-strict, --vcf-pval, --min-splitreads, --no-pstd-filter, --vcf-af, --vcf-min-depth, --vcf-min-vd, --vcf-qmean, --vcf-mapq, --vcf-pmean, --vcf-sn, --vcf-max-nm, --vcf-gt-freq, --vcf-msi, --vcf-cluster-dist), Commons-CLI single-dash long aliases, -T / --trim, -n <REGEXP>, -VS SILENT|LENIENT, clustered boolean-prefix short options (-pz, -pz0, -uk, -ua, -pR), RAYON_NUM_THREADS, GRCh38 HLA/alt-contig colon-name parsing (HLA-A*01:01:01:01:100-200), zero-dependency --completions {bash,zsh,fish} and --manpage (vardictrust(1)) generators, and the docs/migration.md Rosetta Stone guide (0 unexercised CLI flags remaining across all 89 flags in 7 functional groups).
  4. Cross-Tile .var Deduplication & Zero-Output-Diff Tier-1 Engine Accelerations (Issue #90, Issue #91, PR #98–PR #107):
  5. Adds SplitVarDeduper (SPLIT_VAR_RETENTION_WINDOW_BP = 200_000) cross-tile .var boundary deduplication across SimpleMode and SomaticMode while preserving within-tile multiplicity and -p shifted-singleton position-0 companion triples.
  6. Delivers hot-path CPU, heap-allocation, and RSS optimizations across single-Match / pure S/M modify_cigar fast-paths, 32-shard BGZF_BLOCK_CACHE, LUT/vectorized BAM sequence decode, FxHashSet<DupKey> -t dedup, shared Arc<[u8]> Reference spans, parallel multi-tile max_read_length pre-scans, 64 MiB CRAM worker stacks, inline single-allele VariationEntries + JavaHashMap delta logs, Somatic CompactRefSite elision, algebraic/LRU FisherExact (f80_sum_iter), single-buffer PairedVcfRecord / SingleVcfRecord, and --pass-only Fisher short-circuiting.
  7. Comprehensive Pre-v1.0.8 Adversarial Security, Arithmetic & Supply-Chain Hardening + 657-Test Suite (PR #86–PR #89, PR #97, PR #107, PR #114):
  8. Hardens .fai/.gzi/.crai/CRAM container & slice-header allocation caps and out-of-bounds landmark guards before noodles container/slice reads, rejects control/newline/NUL injection across -G, -R, -N, .fai contigs, and BED inputs before ##fileformat=VCFv4.2 emission while preserving SAM = (Seq::Eq) bases and single-BAM colon paths (chr17:100-200.bam), neutralizes C0/C1/OSC terminal escapes on stderr diagnostics, closes temp-file/profiling TOCTOU and 0555 read-only-parent symlink overwrite vectors via O_CREAT | O_EXCL (0600/0700) + O_NOFOLLOW, eliminates stderr EPIPE panics and hostile CIGAR/coordinate overflows across crates/vardictrust-core, hardens wiki.yml, release.yml (origin/main ancestor tag guard), deny.toml, dependabot.yml, and packaging/nf-core/modules/vardictrust/main.nf, and expands the workspace test suite from 519 to 657 tests alongside the certified 92-chromosome per-contig parity receipt (docs/validation/chr-parity-v107.md).

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 bb09a4d1d4de46bf (perf_fingerprint 96a2fc98744b17c7):

item 1: PASS (Unit tests: 657 total workspace tests: 460 lib + 110 corpus_parity + 29 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 28 cli + 3 profile_smoke + 21 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.8, musl-ci PASS)
fingerprint bb09a4d1d4de46bf

Key Documentation & Validation Artifacts