Skip to content

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

1.2.0 - 2026-11-29

Added

  • Consensus-UMI Interop (Switch 42), Read-Pair Orientation Bias Filtering (--orientation-bias), PacBio HiFi & ONT Long-Read Presets (--preset hifi|ont), & 93-Flag CLI Surface (palakpsheth/VarDictRust#96, PR #172):
  • Added Switch 42 (CompatProfile::consensus_bam_compat under --compat=off and --preset), interoperating cleanly with fgumi / fgbio consensus BAM/SAM/CRAM alignments via zero-allocation cD:i / aD:i / bD:i / MI:Z auxiliary tag decoding (SamRecord), SAMtags §1.5 aligned-query 'N'/'n' NM inflation neutralization across CigarParser, CigarModifier, and mismatch pre-scanners (-m), MI-aware -t molecular family deduplication (DupKey), and double-strand duplex (aD >= 1 && bD >= 1) min(f1r2, f2r1) orientation balancing.
  • Added --orientation-bias[=MAX_AF:MIN_SOB:MAX_OBP|annotate] (0.10:0.80:0.01 default when bare; =annotate emits annotations without filtering), computing per-sample FORMAT/F1R2 and FORMAT/F2R1 read-pair orientation counts, INFO/SOB strand-orientation bias, two-sided 2x2 Fisher's exact INFO/OBP (output::vcf::fisher_two_tailed_p over (ref_f1r2, ref_f2r1, alt_f1r2, alt_f2r1)), and FILTER=OrientationBias for low-AF FFPE deamination and 8-oxoG oxidative damage artifacts (93 CLI flags across 7 functional groups).
  • Added --preset hifi (PacBio Revio HiFi) and --preset ont (Oxford Nanopore R10.4.1 simplex/duplex & ultra-long ONT-UL) to WorkflowPreset, configuring 25 kbp region tile halos, 163,840 bp split-tile seam retention windows, quantized >= 64 KiB ONT-UL overhang FASTA reference loading, 10 kbp effective_realign_window, span-proportional read-level mismatch gating (effective_max_mismatches), 2,048 bp Sclip buffer caps ((10..=99)S short-read modify_cigar bypass), and 2,000 bp find_bp_with_mode breakpoint scanning while leaving --vcf-max-nm unset by default unless passed explicitly.
  • Wave-6 (Switches 33–38) & Wave-7 (Switches 39–41) CompatProfile Accuracy & Normalization Switches (32 -> 42 Total) (palakpsheth/VarDictRust#160, PR #166, PR #171) — preserving 100% byte-identical VarDictJava v1.8.3 output under default --compat=vardictjava (--parity):
  • Wave-6 Alignment, Left-Normalization & Somatic Reconciliation (Switches 33–38, PR #166): sclip_majority_count_first (VariationUtils.java:90; ranks soft-clip consensus prefixes by (support_count DESC, prefix_len DESC, lexicographical_asc)), mate_overlap_both_strands (Clinical-Genomics/BALSAMIC#1396, AstraZeneca-NGS/VarDictJava#239; rebalances agreed overlapping FR mate pairs evenly across forward/reverse strand tallies under -u), canonical_vcf_complex_left_align (AstraZeneca-NGS/VarDictJava#264, mskcc/vcf2maf#279; 5'-left-aligns unequal-length indels and Complex delins in O(L + shift) with on-demand 16 kbp upstream repeat chunk fetching and cross-seam deduplication), somatic_reconcile_split_alleles (clintval/vartovcf#191, clintval/vartovcf#195; reconciles cross-description and cross-position tumor/normal representations normalizing to identical (CHROM, POS, REF, ALT)), adj_snv_full_sclip_match (clintval/vartovcf#181, clintval/vartovcf#186; requires full-clip reference match on rescued 2..=5 bp (>= 2 bp) soft-clips in adj_snv), and indel_only_shift3 (AstraZeneca-NGS/VarDictJava#263, clintval/vartovcf#117; restricts INFO/SHIFT3 > 0 to unequal-length indels and complex alleles).
  • Wave-7 Homozygous-Alt LOH, Right-Fold MNV Accounting & Unspanned Stitch Guard (Switches 39–41, PR #171): somatic_loh_homozygous_alt (SomaticPostProcessModule.java:221,238; classifies normal-driven emit_v2_loh_fallback rows as LikelyLOH when tumor exhibits homozygous-alt LOH against heterozygous normal), mnp_exact_right_fold (VariationRealigner.java:320-351, clintval/vartovcf#101, clintval/vartovcf#155, clintval/vartovcf#160; tracks upstream match context so adjust_mnp increments ref_coverage strictly for 5'-truncated reads and prunes 100%-orphan cis-split prefixes), and strict_unspanned_lgins_stitch (VariationRealigner.java:1872-1960, AstraZeneca-NGS/VarDictJava#363; rejects unspanned |p3 - p5| > 15 realignlgins30 chimeric stitches lacking spanning soft-clips or clean 0..=15 bp TSD overlap).
  • 16-Modality Public-Data Omnibus Verifier, Portable Zero-JVM CI Gate, Manuscript Expansion, & 890-Test Suite (PR #164, PR #165, PR #166, PR #169, PR #171, PR #172):
  • Added stdlib-only harness/verify_public_data.py (--suite {wave4,wave5,presets,wave6,v120,ablation,tiling,all} with singleflight (cohort, mode, flags) run caching and 42/42 only_1..42 / loo_1..42 CompatProfile ablation across 16 real-world sequencing modalities including fgumi 0.9.0 duplex/SPE, 24h FFPE SEQC2, PacBio Revio HiFi, and PromethION ONT/ONT-UL via harness/get_v120_public_slices.sh), added harness/run_portable_invariants.sh (< 12s zero-JVM multi-switch/tiling/CRAM/var2vcf -A/UMI/FFPE gate in pr_check.sh and differential.yml), upgraded all 8 cargo-fuzz targets to 42-bit CompatProfile::from_mask + WorkflowPreset fuzzing, added the beginner --preset quickstart (README.md, docs/migration.md) and v1.1.0 clinical study manuscript expansion (benchmarks/v110-compat-study/, Figure 9, Table 9, Supplementary Table S7), and grew the Cargo workspace suite from 807 to 890 tests (649 vardictrust-core lib + 110 corpus_parity + 53 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 38 CLI bin + 35 CLI integration) and Python harness tests from 156 to 159 across 37 diagnostic scripts.

Changed

  • Realignment Slice Fast-Paths, O(N) Split-Tile Seam Indexing, & Packaging Synchronization (PR #163, PR #166, PR #168, PR #172): added zero-diff realign::is_match and realign::is_match_ref slice fast-paths and SNV-only amplicon FASTA-open elision; indexed cross-tile seam deduplication in O(N) via FxHashMap; synced in-tree packaging/bioconda/recipes/vardictrust/meta.yaml to pure-MIT v1.1.0 (sha256: c38fa31f2c2c33b16eef91e2a6f5b096a302498acbb8dbc04a58c6cb726fb7e9, --build-number support in prepare_bioconda_pr.sh, and trigger_rtd.sh sync tag-convergence polling); and recertified all 16 benchmarks/evidence/*.json manifests for v1.2.0.

Fixed

  • Waves 1–6 Split-Tile Seam, Overhang, Somatic, Preset, Statistical, & CRAM/CSI Hardening (PR #165, PR #167, PR #168, PR #169): preserved distinct-END co-anchored symbolic SVs (<DUP>/<DEL>/<INV>) across post-normalization dedup and SpillableVcfAccumulator disk spills while exempting symbolic SVs from ClusterNbp; conserved ref_coverage across split-tile spanning deletions and parent-BED-clamped find_sv windows plus Variation::tile_planted distant-mate SVs and backward-overhang deletions; evaluated split-tile ownership on pre-normalization origin_pos with repeat-straddle hold_from bounds; deferred mate_overlap_both_strands rebalancing to finalize_overlap_strand_rebalance with -u insertion strand-shortfall conservation; rescued low-purity 0 < vd1 < vd2 LikelySomatic/Germline tumor 0/1 calls, explicit -r/-q --preset floor overrides, raw IUPAC FASTA reference keys, -a -p shifted-reference pileup rows, -sp 5' mate guards, subnormal Fisher tails, leading-gap window-0 --csi loffset backfills, colon-path BAM/CRAM splitting, Crossref-verified Gong et al. 2022 DOIs (10.1038/s41597-022-01359-6), and worktree wave4/v120 symlink staging in harness/recertify.sh.

1.1.0 - 2026-11-25

Added

Changed

  • Multi-Thread Skewed-Panel Scheduling & Bounded CRAM/BAM Memory Optimizations (PR #149, PR #150, PR #151), preserving 100% byte-identical VarDictJava v1.8.3 output (24/24 profiled VCFs byte-identical):
  • Decoupled weighted worker concurrency (max_in_flight = 2 * num_threads) from a 64 MiB byte-weighted pending-output buffer (FlowState) and 32,768 bp batch-span caps in regions::batch_tiles, eliminating head-of-line thread starvation on skewed targeted panels; added tile-scoped CramContigPinGuard, 1 MiB chunked FASTA loading, and a 160 MiB (4 × 40 MiB) byte-tracked LRU CRAM_CONTAINER_CACHE, cutting HG008 somatic CRAM peak RSS by -471.5 MB and hg008-sub DHAT heap bytes by an additional -9.64% (-289.9 MB).
  • Added owned Cow<'_, Vars> post-processing fast-paths, streaming AmpliconCoverSweep, pre-prune ToVarsBuilder::drain_vars_into elision, watermarked 2-bit SeedTable12/SeedTable17 k-mer indices (-49.0% index bytes), and regex-free CigarModifier cursor scanners (-100% runtime regex allocations), cutting slice DHAT byte churn by -23.4% to -86.2% and jemalloc exit inuse_space by -51.9% to -95.1%.
  • Packaging, Provenance, Documentation & Manuscript Synchronization (PR #142, PR #143, PR #145, PR #146, PR #147, PR #154, PR #155, PR #161, PR #162): synced prior v1.0.10 Bioconda/bioconda/bioconda-recipes#71875 and Nextflow/nf-core/modules#13830 baselines, expanded UPSTREAM.toml cross-ecosystem lineage, recertified all 16 benchmarks/evidence/*.json manifests (FP = b18477ae0a7b07c1, PERF_FP = 5c41be8047133842, 3.24x 8-thread chr1 scaling in 1.26 GiB flat RSS), and synchronized README.md, ROADMAP.md, DIVERGENCES.md, docs/, zensical.toml, wiki/, and paper/{manuscript,supplement}.{md,pdf}.

Fixed

  • Spanning-SV .csi Indexing & Perl $FREQ / --no-end VCF Parity (PR #156, PR #159): propagated 16 kbp Indexer::<LinearIndex>::new(14, 6) loffset entries into Index<BinnedIndex> on --csi outputs so structural variants spanning multiple 64 KiB BGZF blocks are never missed by tabix/bcftools view -r (clintval/vartovcf#161); restored verbatim Perl $FREQ string parity in ##FILTER=<ID=f...> headers and FILTER tags (-f 0.0 → f0.0, -f 1e-5 → f1e-5; AstraZeneca-NGS/VarDict@009e017, MHH-Bioinformatics-Hematology/vardictcpp#4); decoupled explicit --no-end/--noend from -E <INT>; and keyed check_release_consistency.py Bioconda/nf-core license checks on each recipe's own pinned version.
  • Additional VarDictJava v1.8.3 & var2vcf Edge-Case Parity + Hostile-Input & CI Hardening (PR #148, PR #150, PR #153, PR #156): preserved split-tile multi-BAM (-b b1:b2:b3) continuity while retaining upfront AstraZeneca-NGS/VarDictJava#187 index checks; removed the non-Java 500 bp BamFeed halo in process_amplicon_region; included SAM =/X in CRISPR -J/-j span accounting; enabled multi-tile -i splice trajectory replay and -t boundary dedup; preserved ASCII spaces in #CHROM sample headers while neutralizing Unicode line separators; formatted -D debug strings via round_half_even and propagated somatic v2.debug; seeded realign::partial_pipeline max_read_length across all four call sites while removing the non-Java SV partial_pipeline_paths writeback; added fail-fast .fai contig/bounds validation (AstraZeneca-NGS/VarDictJava#393), BED4 3'_UTR apostrophe verification (AstraZeneca-NGS/VarDict#172), CRAM SliceHeader / InflightCramGuard epoch bounds, SIGPIPE-safe harness matchers, and workflow timeout-minutes caps.

1.0.10 - 2026-11-18

Added

  • Expanded cargo-fuzz coverage (SeedMap-populated fuzz_modify_cigar and new fuzz_parse_and_realign target), added 37 harness diagnostic self-tests (25 shell tests + 12 Python test suites, including single-pass FIFO-safe compare_vcf.py sample-column and FORMAT subfield count parity checks), and expanded the automated Cargo workspace test suite from 664 to 691 tests (491 vardictrust-core library unit tests + 110 corpus_parity + 29 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 29 CLI bin + 27 CLI integration binary tests) (crates/vardictrust-core/fuzz/, harness/compare_vcf.py, harness/tests/) (PR #135, PR #136, PR #137, PR #138, PR #139, PR #140).

Changed

  • Landed SemVer-compatible zero-diff CPU, heap-allocation, and code-consolidation optimizations across vardictrust-core while preserving 100% VarDictJava v1.8.3 (0886261) byte-for-byte parity (PR #137, PR #138, PR #140):
  • Clipped CIGAR deletion coverage updates (parse.rs) to sorted merged ±5,000 bp loaded reference windows with idempotent i64 coordinate-compressed finish_ref_coverage sweeps for > 64 bp spans; flattened multi-tile max_read_length pre-scanning (lib.rs) into a non-nested 250 kbp band pool with disjoint alignment_start band ownership, 4 MiB per-band FallbackSequential cap, and a lazy 4 MiB 2-bit ACGT + 'N' side-map 12-mer index on 2nd+ parent-wide misses; and added EXP_UNDERFLOW_LN_F64 = -746.0 0-ULP exp() short-circuiting and loop-invariant p3 hoisting in fisher.rs.
  • Replaced swar_mismatch_count_u64 software count_ones() with a 3-op branchless multiply-shift horizontal byte sum, tightened find_35_match (Iterator::position candidate scanning + exact O(1) mm0 IEEE-754 0.1 ratio pre-rejects, 2.60× faster), added find_conseq_slice eliminating all Sclip deep BTreeMap/IndexMap clones across realignlgdel/find_del_paths/find_dup_disc_paths, replaced quadratic tmp3 scans in realignlgins30 with binary-searched window slices, indexed SOFTP2SV upfront via SclipSlot in find_sv, and unified find_mm5/find_mm3 and .var/genotype/regex formatting over stack-allocated buffers (StackBuf).
  • Reduced JavaHashMap<i32, Vars> to 96 B (Option<Box<V>> cold fallback, Option<Box<Vec<K>>> NewKeyLog, active_tree_bins: u32, ASCII java_string_hash/java_compare fast-paths, into_entries), deleted the private StrNode Red-Black tree in java_hashmap_key_order in favor of JavaHashMap<&str, usize>, added build_aligned_variants_pruned to skip Phase-2 collect_reference_variants on doomed sub-threshold sites, consolidated .var serializers via TableModeStyle across Simple 36/38, Amplicon 38/40, and Somatic 55/61, removed duplicate per-tile BTreeMap passes and unused private SAM_READER_CACHE/ADAPTOR_MAP_CACHE, added i64 \(O(1)\) pre-region Match skipping / single-base Match specialization / fused paired CIGAR scans / >= 10S and >= 12S modify_pure_sm_in_place fast-paths, and added 2-slot BAM_META_TLS (BAM_CACHE_EPOCH), <= 4096 B BamFeedInner stashes, ACGTacgt= fast-skip in compute_cram_nm, SeedKey::pair_17_12, and RAII WorkerRegionGuard.
  • Synced in-tree packaging/bioconda/recipes/vardictrust/meta.yaml to v1.0.9 verified GitHub release tarball SHA-256 c40c3bf6180144d87ae39a52470b07e68b61f2ea41ef8c990deaf24529025284, trimmed unused regex and noodles bed/vcf features from binary manifests, and retired env RUST_MIN_STACK=67108864 and the last # shortcut: comment in harness/cram_twin.sh (PR #134, PR #136, PR #140).

Fixed

  • Raised MAX_CACHED_CRAM_CONTAINER_BYTES in crates/vardictrust-core/src/bam.rs from 4 MiB to 16 MiB (should_cache_cram_container / fetch_cram_container_in), added per-key singleflight CRAM container decode coalescing (InflightCramDecode / InflightCramGuard on CramContainerCacheShard), upgraded CRAM_META_TLS from 1 slot to 2 slots (lookup_cram_meta_tls / insert_cram_meta_tls) eliminating T <-> N paired somatic TLS thrash, and buffered prevalidate_cram_container_slices through a 64 KiB seek-retaining window (SeekWindowReader) so standard 10,000–10,240-read 150–250 bp Illumina CRAM containers (~6.3–9.8 MiB) decode once across concurrent workers and hit CRAM_CONTAINER_CACHE while keeping 8 × 4 = 32 decoded-record slots bounded to <= 512 MiB and bypassing oversized long-read containers (PR #136, PR #139).
  • Hardened hostile-input .bai/.csi index loading and text SAM CIGAR decoding uncovered by pre-release libFuzzer sweeps: added zero-allocation structural header and remaining-byte count pre-validation (MAX_BAI_BYTES = 512 MiB, MAX_CSI_BYTES = 256 MiB, MAX_CSI_DECOMPRESSED_BYTES = 256 MiB, n_ref/n_bin/n_chunk/n_intv/l_aux bounds) in read_validated_bai_index and read_validated_csi_index before delegating to noodles, and terminated non-advancing cigar.iter() Err loops immediately in SamRecord::fill_from_alignment_record and intersects_record (crates/vardictrust-core/src/bam.rs).
  • Hardened CLI -th/--threads positional-BED normalization (require_equals = true + free-positional counting preserving Commons-CLI first-wins duplicate -th), stale .tbi/.csi sidecar cleanup and 0555 read-only preflight validation when overwriting BGZF --output paths without --tbi/--csi, --output parent-directory spill staging in SpillableVcfAccumulator with std::env::temp_dir() fallback, and FileStamp-validated process-wide OnceLock .fai/.gzi metadata sharing across worker threads (crates/vardictrust/src/cli.rs, src/main.rs, crates/vardictrust-core/src/lib.rs, src/bam.rs) (PR #136, PR #138).
  • Hardened harness BSD/macOS portability, comparator validation, and CI supply-chain pins: added execvp-safe portable.sh --timeout, resolve_data_root, and 16-path find_gitleaks while removing GNU-isms across 11 scripts; hardened .github/workflows/release.yml (!announcement_is_prerelease, step-scoped CARGO_REGISTRY_TOKEN, idempotent vardictrust-core + vardictrust publish, removed empty announce); bumped setup-conda-env to conda-env-v3- with portable CLI pins and pinned playwright==1.62.0 in docs.yml; hardened gcp_paper_runner.sh (--stage allowlist + immutable SHA-256-verified installers); and added SHA-256 verification on concordance_multimodal.sh truth slices and run_stage_6.sh downloads (PR #135).

1.0.9 - 2026-11-16

Added

  • Ported OpenJDK 8 java.util.HashMap.TreeNode Red-Black treeification (treeify, balanceInsertion, rotateLeft, rotateRight, moveRootToFront, getTreeNode, single-pass probe_tree_slot / putTreeVal), deletion rebalancing (removeTreeNode entry-topology untreeification, balanceDeletion, and 2-child interior link swapping), and resize() TreeNode.split (UNTREEIFY_THRESHOLD = 6) into JavaHashMap<K, V> behind a cold Option<Box<Vec<TreeLink>>> sidecar (size_of::<Node<i32, i32>>() == 12, 0 extra per-node bytes across < 8-collision biological cohorts), sealing JavaHash with UTF-16 String ordering (encode_utf16().cmp(...)) and signed i32 spread-hash comparisons (CWE-407 2^16-stride collision DoS closure; expanded the automated Cargo workspace test suite from 657 to 664 tests: 467 vardictrust-core library unit tests + 110 corpus_parity + 29 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 28 CLI bin + 25 CLI integration binary tests) (crates/vardictrust-core/src/javamap.rs, src/tovars.rs, benches/engine.rs, ROADMAP.md) (Issue #116 SEC-17b, PR #131).

Changed

  • Migrated the ReadTheDocs (vardictrust.readthedocs.io) and strict CI documentation platform from mkdocs-material (mkdocs.yml) to Zensical (zensical.toml, zensical>=0.1.1,<0.2.0), adding MathJax v3 configuration (docs/javascripts/mathjax.js), fence-aware Mermaid and GFM staging normalization in harness/prepare_docs_site.py, space-safe Zensical pre-commit/pre-push strict gates, pure-stdlib TOML nav validation in check_release_consistency.py, and 4-page Playwright Chromium DOM/MathJax/Mermaid/SVG UI verification (zensical.toml, .readthedocs.yaml, .github/workflows/docs.yml, .githooks/{pre-commit,pre-push}, harness/prepare_docs_site.py, harness/tests/test_docs_ui.py) (Issue #123, PR #122, PR #129).
  • Updated workspace and CI dependencies: noodles (0.118 -> 0.119, including noodles-bam 0.98.0, noodles-cram 0.102.0, noodles-sam 0.93.0, and noodles-vcf 0.96.0), flate2 (1.1.10 -> 1.1.11), lzma-rust2 (0.22.0 -> 0.24.0), log (0.4.34 -> 0.4.35), pymdown-extensions (>=13.0), transitive Cargo lockfile dependencies, and pinned GitHub Actions (step-security/harden-runner, taiki-e/install-action, github/codeql-action/upload-sarif) (Cargo.toml, Cargo.lock, crates/vardictrust-core/fuzz/Cargo.toml, .github/workflows/*.yml) (PR #110, PR #111, PR #112, PR #115, PR #117, PR #124).

Fixed

  • Hardened release supply-chain bootstrap, dataset SHA-256 verification, tag ruleset governance, and deterministic complexity tests: replaced pipe-to-shell and unverified third-party toolchain installers in .github/workflows/release.yml with cached 4-architecture cargo-dist v0.33.0 SHA-256 archive verification, macos-15 aarch64-apple-darwin runner migration, SLSA v1.0 resolvedDependencies[0] alignment, workflow_dispatch recovery, and 6-job step-security/harden-runner audit; upgraded harness/assets.tsv to 6 columns with 40 verified SHA-256 digests, atomic stage_verified_sha256, and unconditional disk rehashing across harness/fetch_data.sh and slice stagers; enforced lockout-safe refs/tags/v* ruleset 24867690 in harness/configure_github_repo.py; and replaced sub-second wall-clock test assertions with deterministic step and probe bounds (.github/workflows/release.yml, harness/assets.tsv, harness/fetch_data.sh, harness/lib/portable.sh, harness/configure_github_repo.py, crates/vardictrust-core/src/) (Issue #116 SEC-05 / SEC-14 / SEC-12b, PR #119, PR #120, PR #121, PR #130, PR #131).

1.0.8 - 2026-11-14

Added

  • Native direct file output, BGZF compression, Tabix/CSI indexing, run telemetry, and explicit parity pinning: --output <PATH> (streaming .vcf, .var, and -i splice counts directly to plain files or multithreaded BGZF .gz/.bgz via noodles::bgzf::io::MultithreadedWriter with File::sync_all verification), --tbi / --index pure-Rust Tabix (.vcf.gz.tbi) and --csi pure-Rust CSI (.vcf.gz.csi) index generation (noodles::tabix and noodles::csi, honoring INFO/END coordinate spans for symbolic <DEL>, <DUP>, <INV>, and <INS> records, with an actionable --csi hint when --tbi encounters coordinates exceeding Tabix's 512 Mbp limit), --no-end (var2vcf_valid.pl -E INFO/END suppression), --stats-json <PATH> pipeline telemetry, --parity and --compat vardictjava-1.8.3 CLI forward-compatibility pinning, and UPSTREAM.toml reference provenance manifest (crates/vardictrust/src/cli.rs, src/main.rs, crates/vardictrust-core/src/lib.rs, src/output/vcf.rs) (Issue #93, Issue #94, PR #100, PR #102, PR #104).
  • Commons-CLI single-dash long-option compatibility (-fisher, -adaptor, -chimeric, -deldupvar, -nosv, -splice, -header, -dedup, -debug, -verbose, -amplicon, -DP, -default-printer, -defaultPrinter, -mfreq, -nmfreq, -insert-size, -insert-std, -ref-extension, -crispr, -?/--?), --default-printer/--insert-size/--insert-std/--ref-extension/--crispr long aliases, and -C and -Z / -downsample / --downsample explicit VardictError::Unsupported reporting (crates/vardictrust/src/cli.rs) (PR #104).
  • Additional upstream VarDictJava CLI parity, short-option cluster normalization, thread-pool environment fallback, and workspace package metadata: -T / --trim (-trim) per-base pileup read trimming (trim_bases_after / is_trim_at_opt_t_bases), -n <REGEXP> sample-name regex extraction, -VS / --VS SILENT/LENIENT validation stringency acceptance (-VS STRICT fails fast with VardictError::Unsupported), clustered boolean-prefix short options (-pz, -pz0, -uk, -ua, -pR), RAYON_NUM_THREADS fallback when -th / --threads is omitted, and MSRV rust-version = "1.91.0" + crates.io metadata inheritance across Cargo.toml, crates/vardictrust/Cargo.toml, and crates/vardictrust-core/Cargo.toml (crates/vardictrust/src/cli.rs, crates/vardictrust-core/src/config.rs, src/cigar/parse.rs) (PR #105).
  • Cross-tile .var intermediate boundary deduplication via SplitVarDeduper (SPLIT_VAR_RETENTION_WINDOW_BP = 200_000) across split tiles in SimpleMode and SomaticMode, preserving within-tile multiplicity and -p shifted-singleton position-0 companion triples, verified by multi-tile .var/.vcf/SV/splice conservation suites (crates/vardictrust-core/src/lib.rs, tests/engine_behavior.rs) (Issue #91, PR #99, PR #100, PR #101, PR #104).
  • Certified 92-chromosome per-contig parity suite (docs/validation/chr-parity-v107.md, benchmarks/chr-parity-v107.json: 92 / 92 MATCH, 0 diffs across 5 cohorts including full 22-autosome GIAB HG002 WGS 8,111,171 variants), strict Markdown relative-link and MkDocs build audits, clinical/engineering SWOT ecosystem review (docs/ecosystem-survey.md), Bioconda and Nextflow nf-core/modules v1.0.7 packaging sync (with MIT AND GPL-2.0-or-later block-sequence meta.yml), 29 zero-conda / 7 oracle CI self-test wiring, 5-target release performance budget guard, and live --verify-cargo-list release-consistency validation (PR #86, PR #87, PR #88, PR #89, PR #97).
  • Expanded the automated Cargo workspace test suite from 519 to 657 tests (460 vardictrust-core library unit tests + 110 corpus_parity + 29 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 28 CLI bin + 25 CLI integration binary tests) (PR #104, PR #105, PR #106, PR #107).
  • Consolidated var2vcf_valid.pl / var2vcf_paired.pl VCF post-filter CLI flags (--pass-only, --paired-strict, --vcf-pval <FLOAT>, --min-splitreads <INT>, --no-pstd-filter; porting var2vcf_valid.pl -S/-T/-P 0 and var2vcf_paired.pl -S/-M/-P with verbatim P$PVAL token preservation and programmatic resolve_effective_config bounds validation) plus GNU-only single-dash typo guards failing fast with actionable "did you mean '--...'?" errors and tightened split_bool_prefix_cluster tail checks (crates/vardictrust-core/src/config.rs, src/lib.rs, src/output/vcf.rs, crates/vardictrust/src/cli.rs) (PR #106).
  • Promoted -n <REGEXP> and -T / --trim to corpus parity status (0 unexercised CLI flags remaining in README.md) via zero-subprocess in-process corpus_parity coverage alongside --fisher VCF raw-cell formatting assertions, and closed the resolved --fisher VCF raw-cell divergence in DIVERGENCES.md (crates/vardictrust-core/tests/corpus_parity.rs, golden/PROVENANCE, README.md, DIVERGENCES.md) (PR #106).
  • Completed all 11 remaining live var2vcf_valid.pl / var2vcf_paired.pl VCF threshold, genotype, and cluster-filter CLI flags (89 total CLI flags across 7 functional groups together with --completions and --manpage): --vcf-af <FLOAT> (-f), --vcf-min-depth <INT> (-d), --vcf-min-vd <INT> (-v), --vcf-qmean <FLOAT> (-q), --vcf-mapq <FLOAT> (-Q), --vcf-pmean <FLOAT> (-p), --vcf-sn <FLOAT> (-o), --vcf-max-nm <FLOAT> (-m), --vcf-gt-freq <FLOAT> (-F, validated in [0, 1]), --vcf-msi <FLOAT> (-I), and --vcf-cluster-dist <INT> (-c), modeled via VcfThreshold<T> with explicit GNU --vcf-* defined() (Option::Some) zero semantics (honoring 0 on explicit overrides while preserving legacy bare -f 0 0.02 single-sample fallback) and SingleRecordStreamer + 4-state SingleVcfEvent bounded-memory Cluster<N>bp sliding-window buffering across tiled and disk-spilled single-sample/amplicon streams (crates/vardictrust-core/src/config.rs, src/lib.rs, src/output/vcf.rs, crates/vardictrust/src/cli.rs) (PR #107).
  • Added zero-dependency --completions <SHELL> (bash, zsh, fish) and --manpage (vardictrust(1) roff) generators backed by clap::CommandFactory introspection, reorganized CLI --help (-H / --help) into 7 help_heading sections matching README.md, added cross-compile-safe completion and manpage installation in packaging/bioconda/recipes/vardictrust/build.sh, authored the docs/migration.md Rosetta Stone guide from VarDictJava + R + Perl (var2vcf_valid.pl / var2vcf_paired.pl) pipelines, recorded [advisory_comparators.vardictcpp] (version = "3", bioconda_build = "hc52dbad_0") in UPSTREAM.toml, and expanded check_release_consistency.py structural guards (crates/vardictrust/src/completions_man.rs, src/cli.rs, docs/migration.md, packaging/bioconda/recipes/vardictrust/build.sh, UPSTREAM.toml, .agents/skills/vardictrust-release/scripts/check_release_consistency.py) (PR #108).
  • Added end-to-end GRCh38 HLA/alt-contig colon-name support (e.g., HLA-A*01:01:01:01:100-200[:GENE]) across -R / --region and BED calling via right-to-left known-contig prefix matching in regions::parse_region_flag and zero-allocation pub(crate) bam::build_noodles_region (replacing string-formatted "{}:{}-{}" region reparsing), alongside MkDocs 1.6 top-level not_in_nav validation, Nextflow nf-core CRAM/CSI/ReadTheDocs packaging metadata, and MSRV 1.91.0 / DIVERGENCES.md release-consistency guards (crates/vardictrust-core/src/regions.rs, src/bam.rs, src/reference.rs, mkdocs.yml, packaging/, harness/tests/, .agents/skills/vardictrust-release/) (PR #107).

Changed

  • Landed zero-output-diff Tier-1 performance and memory optimizations across CIGAR parsing, BAM/CRAM I/O, local realignment, Fisher exact statistics, and VCF/table serialization (Issue #90, PR #98, PR #99, PR #100, PR #101, PR #102, PR #103, PR #104, PR #105, PR #106):
  • Added single-Match (150M) and pure S/M in-place modify_cigar fast-paths, zero-copy seq/qual read slices, modify_cigar_preserving_buffers scratch buffer capacity restoration, hoisted adjusted_nm, stack ByteSet ([u64; 4]), and direct byte-slice CIGAR scanners in crates/vardictrust-core/src/cigar/modify.rs and src/cigar/parse.rs.
  • Parallelized multi-tile scan_multi_tile_max_read_lengths pre-scans across run_parallel_for_bam and added an automatic 64 MiB worker stack floor for .cram inputs (CRAM_WORKER_THREAD_STACK_FLOOR_BYTES) (crates/vardictrust-core/src/lib.rs, src/runner.rs).
  • Expanded BGZF_BLOCK_CACHE from 8 to 32 shards (BGZF_CACHE_SHARDS = 32), added LUT/vectorized BAM sequence decode, switched -t duplicate tracking to typed FxHashSet<DupKey>, cached per-handle SharedBamMeta contig tables, decoded BamFeed CIGAR operations in a single pass, validated CRAM container spans lock-free via Header::reference_sequences(), shared Arc<[u8]> Reference spans (RegionSpanSlot), inlined Reference::get_base primary-region lookup, packed [u64; 3] SeedKey entries, and pre-sized SeedMap hash tables (crates/vardictrust-core/src/bam.rs, src/reference.rs).
  • Added inline single-allele VariationEntries storage with JavaHashMap new-key delta logs, Somatic RefSiteMode / CompactRefSite elision, and O(W_mate log W_mate) sv::partial_pipeline delta-log merging; eliminated FisherExact::support and sum_elements heap allocations via algebraic support_len(), 1-point fast return, f80_sum_iter, 4,096-entry thread-local LRU memoization, and stack odds_ratio_buf / write_odds_ratio_into formatting; removed redundant Variant and Vars::var_desc_to_variant clones via Vars::variant_by_desc, ZERO_VARIANT, StackBuf, Cow<[u8]> splice/marker helpers, single-winner BTreeMap bucketing, and single-buffer VCF formatting (crates/vardictrust-core/src/stats/fisher.rs, src/stats/f80.rs, src/tovars.rs, src/variations/mod.rs, src/javamap.rs, src/realign.rs, src/sv.rs, src/postprocess/, src/output/).
  • Refactored PairedVcfRecord to a single contiguous String buffer with usize byte-span FILTER offsets (3 -> 1 heap String allocation per somatic VCF candidate, u64 spill serialization in SomaticVcfCandidate, and zero-copy PairedRecordStreamer emission) (crates/vardictrust-core/src/output/vcf.rs, src/lib.rs) (PR #106).
  • Replaced perl_num_str heap String allocations with stack-formatted write_perl_num_str across single-sample and paired VCF FILTER/INFO emission, short-circuited single-sample/amplicon FisherExact and uniroot strand-bias calculation in build_single_vcf_event under --pass-only when non-Fisher filters already fail, formatted worker candidates through a per-tile String::with_capacity(512) scratch buffer retaining exact-sized String::from(scratch.as_str()) lines in SingleVcfRecord, added an IndexMap::get_mut(chr) fast-path in SpillableVcfAccumulator::insert avoiding per-candidate chr.to_string() allocations, reused pre-allocated Variant.bias capacity across postprocess/{simple,amplicon,somatic}.rs, and eliminated avoidable per-call heap allocations in cigar/parse.rs, realign.rs, sv.rs, and tovars.rs (crates/vardictrust-core/src/output/vcf.rs, src/lib.rs, src/postprocess/, src/cigar/parse.rs, src/realign.rs, src/sv.rs, src/tovars.rs) (PR #107).

Fixed

  • Added StagedFileTarget atomic .tmp.<pid>.<seq> staging and Drop residue cleanup across --output, --tbi, --csi, and --stats-json (preserving live existing targets on early abort while falling back directly for character devices/FIFOs such as /dev/null or read-only parent directories), alongside input/output file collision guards refusing output paths that resolve to any input reference, .fai, BED, BAM/CRAM, or .bai/.csi/.crai index (crates/vardictrust-core/src/lib.rs, crates/vardictrust/src/main.rs) (Issue #93, PR #104, PR #105).
  • Eliminated stderr BrokenPipe (EPIPE) panics across -y verbose logging, --DP ERR debug printing, and profiling warnings via verbose_eprintln!, hardened hostile CIGAR/alignment/CRISPR arithmetic (TLEN = i32::MIN, 268435455D, i32::MAX & i64 CRISPR/SV/realignment coordinate saturation, missing * qualities, -x extension saturation, and cov_cap bounds) against signed overflow or OOM allocation, fixed paired-VCF omitted--N sample extraction (bam1|bam2) and #CHROM sample-name whitespace normalization, enforced value-aware UNSUPPORTED_FLAGS and 1-based -c/-S/-E/-s/-e BED column validation without -R, emitted -i splice junction rows in deterministic sorted key order, added actionable 5/6-column BED column hints (-c 1 -S 2 -E 3 -z), and synchronized vardictrust --version license text to MIT AND GPL-2.0-or-later (crates/vardictrust/src/cli.rs, src/main.rs, crates/vardictrust-core/src/config.rs, src/output/vcf.rs, src/cigar/, src/sv.rs, src/realign.rs, src/tovars.rs, src/bam.rs, src/regions.rs, src/lib.rs) (Issue #91, Issue #93, PR #98, PR #104, PR #105).
  • Hardened remaining production arithmetic and hostile-input bounds (AGENTS.md §9): rejected hostile BAM/CRAM CIGAR reference-span overflows with io::ErrorKind::InvalidData across bam_alignment_end, BamFeed, and validate_cram_span and enforced unconditional i32::MAX coordinate/tag bounds in RecordPreprocessor (bam.rs), guarded slice-end wrap in util::subseq and sequence offset/length casts in reference.rs, widened iteration/exponent bounds and negative-input NaN guards in stats/{zeroin,f80}.rs and stats/rmath/stirlerr.rs, replaced unchecked arithmetic and u32 -> i32 threshold casts with checked/saturating and i64-widened math across cigar/parse.rs, realign.rs, sv.rs, tovars.rs, variations/, postprocess/somatic.rs, and output/table.rs, and aligned DIVERGENCES.md with ##source=VarDict_v1.8.2 byte-parity and certified 3.14x scale.json metrics (crates/vardictrust-core/src/bam.rs, src/util.rs, src/reference.rs, src/stats/zeroin.rs, src/stats/f80.rs, src/stats/rmath/stirlerr.rs, src/cigar/parse.rs, src/realign.rs, src/sv.rs, src/tovars.rs, src/variations/, src/postprocess/somatic.rs, src/output/table.rs, DIVERGENCES.md) (PR #107).
  • Completed comprehensive pre-v1.0.8 adversarial security hardening across input parsing, VCF/stderr output sanitization, temp-file/symlink safety, and CI/supply-chain gates: enforced .fai/.gzi/.crai/CRAM container & slice-header allocation caps and out-of-bounds landmark guards before noodles container/slice reads (reference.rs, bam.rs, output/vcf.rs), rejected control/newline/NUL injection across -G, -R, -N, .fai contigs, and BED records before emitting ##fileformat=VCFv4.2 while preserving SAM = (Seq::Eq) bases and single-BAM colon paths (chr17:100-200.bam) during SV calling (regions.rs, cigar/parse.rs, output/vcf.rs, sv.rs, lib.rs), neutralized C0/C1/OSC terminal escapes on stderr CLI diagnostics and closed profiling/temp-file TOCTOU and 0555 read-only-parent symlink overwrite vectors via O_CREAT | O_EXCL (0600/0700), O_NOFOLLOW, and DirectTempStaged / DirectPinned staging (main.rs, profile.rs, lib.rs), and hardened wiki.yml (persist-credentials: false, ::add-mask::, job-scoped contents: write), release.yml (origin/main ancestor tag guard), deny.toml (yanked = "deny", wildcards = "deny", required-git-spec = "rev"), dependabot.yml (cooldown default-days: 7), and packaging/nf-core/modules/vardictrust/main.nf shell quoting (PR #114).

1.0.7 - 2026-11-01

Added

  • Bounded 512 MiB reference sequence cache (DEFAULT_FASTA_CACHE_BUDGET_BYTES) with active-CramFeed Arc<ContigSlot> pinning (Arc::strong_count == 1 eviction), RegistryDelegatingAdapter handle pooling (MAX_POOLED_FASTA_ADAPTERS = 8), and IndexedCrai binary-searched slice seek (crates/vardictrust-core/src/bam.rs) (PR #81).
  • Multi-threaded amplicon execution across (chrom, seg_idx) groups via runner::run_parallel with deterministic input-order reassembly (crates/vardictrust-core/src/lib.rs) (PR #82).
  • Production no-panic lint ratchet (harness/lint_ratchet.sh) wired into harness/pr_check.sh and harness/rgate.sh, plus x86_64 80-bit long double oracle platform guard (harness/run_oracle.sh, harness/compare.sh, harness/golden_store.py) and POSIX-portable shell helpers (harness/lib/portable.sh) (PR #71, PR #72, PR #80).
  • Expanded the automated Cargo workspace test suite from 427 to 519 tests (350 vardictrust-core library unit tests + 110 corpus_parity + 26 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 19 CLI bin + 9 CLI integration binary tests) and expanded the harness diagnostic self-test suite to 36 scripts (25 shell tests and 11 Python test suites).

Changed

  • Replaced hot-path VariationMap::get_variation string formatting/cloning with indexmap::map::RawEntryMut, switched Vars::var_desc_to_variant to FxBuildHasher, boxed VariationMap::sv: Option<Box<Sv>>, added an integer u128 fast path in types::round_half_even, and eliminated redundant per-variant heap allocations across tovars.rs, sv.rs, util.rs, and variations/util.rs (crates/vardictrust-core/src/variations/mod.rs, src/types.rs, src/tovars.rs, src/sv.rs, src/util.rs, src/variations/util.rs) (Issue #63, PR #82).
  • Enforced hg008-cram-twin (cram_to_bam_wall_ratio <= 2.50) and cram_parity (cram_to_bam_wall_ratio <= 1.50) in harness/perf_budget.py, harness/pr_check.sh, harness/recertify.sh, and harness/gcp_paper_runner.sh (PR #73, PR #81).

Fixed

  • Resolved comprehensive A–N VarDictJava v1.8.3 parity and robustness findings across PR #67–PR #82:
  • Split _rjem_malloc_conf by target OS (background_thread:true on Linux vs background_thread:false,dirty_decay_ms:250,muzzy_decay_ms:0,narenas:8 on non-Linux via MALLOC_CONF_LINUX_DEFAULT, MALLOC_CONF_NON_LINUX_DEFAULT, malloc_conf_bytes_for_target in crates/vardictrust/src/main.rs) (PR #70).
  • Replicated HashMap.putVal 9-node treeify trigger (bin_len >= TREEIFY_THRESHOLD in JavaHashMap::insert), JavaHashMap::get_or_put_with / variations::get_or_put_vars, ToVarsBuilder::build_aligned_variants empty-Vars insertion parity before collect_reference_variants, and STRICT_VAR_ORDER=1 unsorted .var row-order verification (crates/vardictrust-core/src/javamap.rs, src/variations/mod.rs, src/tovars.rs, src/realign.rs) (PR #74).
  • Replicated inc_cnt / insertion tp signed i32 arithmetic and realignlgins signed max_read_length - 10 bounds, excluded =/X from get_soft_clipped_length/get_match_insertion_length/prepare_sv_structures_for_analysis (query_consumed_len in bam.rs), scaled CigarModifier::modify_cigar's iteration bound with CIGAR operator count, and traversed svffus/svrfus in is_best_sv_used in OpenJDK HashMap<String, List<Sclip>> bucket order (java_string_hash, java_hashmap_key_order in crates/vardictrust-core/src/cigar/modify.rs, src/cigar/parse.rs, src/realign.rs, src/javamap.rs, src/sv.rs, src/variations/mod.rs) (PR #75).
  • Replicated DUPRATE=0 snapshot parity, Utils.getRoundedValueToPrint "N."/"-0." formatting (push_java_rounded), FisherExact::get_odds_ratio java_double_to_string scientific notation under --fisher, Apache Commons Math 3 SaddlePointExpansion / HypergeometricDistribution (--fisher), and R 4.x fround 5-decimal even-mantissa tie-break (round_as_r) (crates/vardictrust-core/src/output/table.rs, src/output/vcf.rs, src/stats/fisher.rs, src/types.rs, src/variations/mod.rs) (PR #76, PR #77).
  • Replicated whole-stream VCF $hash{chr}{start} candidate accumulation and 4-decimal round_half_even AF winner selection across BED regions, Perl sub reorder chromosome ordering (perl_reorder_chromosomes), and > 1 Mbp multi-tile max_read_length pre-scan (scan_multi_tile_max_read_lengths) plus -t (config.dedup) boundary duplicate continuity (crates/vardictrust-core/src/lib.rs, src/output/vcf.rs, src/cigar/modify.rs) (PR #78).
  • Replicated Commons-CLI createNumber (parse_java_number_*) & first-wins scalar options, -F Integer.decode & samfilter_raw != "0", adaptor 6-mer i + 6 < sequence.len() & ACGTacgt-only complement (realign::fill_adaptor_maps), BED header/delimiter/4-col auto-detect (java_split, detect_amplicon_bed, parse_amp_bed_from_reader java_hashmap_key_order), resolve_mode precedence (#378 / --DP ERR), amplicon segment splice chaining, and zero-coverage -p amplicon null-row formatting (amplicon_38_into / amplicon_40_into) (crates/vardictrust/src/cli.rs, crates/vardictrust-core/src/realign.rs, src/regions.rs, src/postprocess/amplicon.rs, src/output/table.rs) (PR #69, PR #79).
  • Added truncated BGZF EOF (UnexpectedEof) detection, CRAM/FASTA contig span validation (validate_cram_span, fetch_subsequence past-end error) and 3' chromosome-end overhang padding (CRAM_REF_OVERHANG_PAD = 65_536), raw Vec<u8> quality byte preservation for Phred >= 95 (normalize_cram_base), i32 region coordinate bounds (parse_int_with_commas <= i32::MAX), checked integer conversions across crates/vardictrust-core, and the 16 MiB worker stack floor (WORKER_THREAD_STACK_FLOOR_BYTES / run_with_worker_stack in crates/vardictrust-core/src/runner.rs) (PR #80).

1.0.6 - 2026-10-29

Changed

  • Increased Rayon worker thread pool stack size to 16 MiB (WORKER_THREAD_STACK_BYTES = 16 * 1024 * 1024 in crates/vardictrust-core/src/runner.rs) to prevent stack exhaustion on deep CRAM rANS/LZMA container decoding and recursive structural variant realignment paths, and eliminated per-region HashMap allocation in reference::get_reference_with_chr_len (crates/vardictrust-core/src/reference.rs, src/realign.rs) (Issue #60, PR #61, PR #62).
  • Expanded the in-process workspace test suite from 416 to 427 tests (263 vardictrust-core library unit tests + 110 corpus_parity + 25 engine_behavior + 2 amplicon_stream_mem + 2 cram_stack + 17 CLI bin + 8 CLI integration binary tests) and codified the mandatory multi-skill PR review and inline review thread resolution gate (AGENTS.md §15.8, CONTRIBUTING.md §6.1, .github/pull_request_template.md, .agents/skills/vardictrust-pr/SKILL.md, harness/tests/test_bioconda_recipe.py) (PR #61, PR #62).
  • Synchronized in-tree Bioconda recipe metadata (packaging/bioconda/recipes/vardictrust/meta.yaml) with the v1.0.5 source tarball digest (PR #59).
  • Simplified harness/engine_fingerprint.sh by removing the legacy normalize_gate_blob() / blob_oid() SemVer normalization workaround so FP and PERF_FP hash raw HEAD:<path> git blob OIDs directly under the Two-Tier Release Recertification Policy (AGENTS.md §15.4).
  • Recertified all 16 release evidence artifacts in benchmarks/evidence/*.json under engine fingerprint 5865a2a0b24a8c17 (perf_fingerprint c490c36317b8f25b; harness/acceptance.sh 8/8 PASS) against live pinned VarDictJava v1.8.3 and vardictcpp oracle executions on an isolated 32-vCPU GCP n2-standard-32 host (2 hit / 90 live golden-store executions).

Fixed

  • Resolved 14 deep-coverage VarDictJava v1.8.3 parity edge cases across Simple, Somatic, Amplicon, and Splicing modes and 7 sequencing chemistries (Illumina, PacBio HiFi, ONT, Element, Ultima, MGI, Roche SBX) at both -f 0.01 and -f 0 (-r 2 and -r 1 noise floor) (Issue #60, PR #61, PR #62):
  • Cleared per-BAM duplicate tracking while preserving cumulative total_reads/duplicate_reads (RecordPreprocessor::reset_for_next_bam, Scope.resetDuplicates), replicated BAMReader.hasMoreBams (if idx > 0 && !any_passed { break; }) across colon-delimited multi-BAM inputs (bam1:bam2), and validated both tumor and normal BAM specifications upfront (parse_colon_bams in crates/vardictrust-core/src/lib.rs, src/bam.rs, src/realign.rs, src/sv.rs).
  • Seeded BAM2's CigarParser and sv::find_all_sv (find_del_disc) with BAM1's discovered splice set and propagated updated max_read_length and splice state across subsequent combine_analysis windows in somatic mode (crates/vardictrust-core/src/lib.rs, src/postprocess/somatic.rs, matching SomaticMode.java:104-122 and SomaticPostProcessModule.java:198-200, 303-311, 398-406).
  • Updated max_read_length prior to the 0x800 supplementary-read early return (CigarParser.java:181-190), counted reference N bases as mismatches (nmm++, m++) with unconditional offset increment in M-after-I lookahead (CigarParser.java:460-476), and used signed i32 loop bounds (for k in 0..element_len) when rescuing trailing mismatches into a \(3'\) soft-clip (CigarParser.java:1322-1457) (crates/vardictrust-core/src/cigar/parse.rs).
  • Unconditionally cached adaptor-cleared empty consensus sequences (soft_clip.sequence = Some(final_seq.clone())) in find_conseq (VariationUtils.java:136-148, crates/vardictrust-core/src/variations/util.rs), delegated ensure_reference_loaded to reference::get_reference_with_chr_len (VariationRealigner.java:149, 250, 916, 1020, crates/vardictrust-core/src/realign.rs), preserved vref.cnt in \(5'\)/\(3'\) SV inversion branches (StructuralVariantsProcessor.java:781-795, 922-936, crates/vardictrust-core/src/sv.rs), and allowed signed next_var.fwd/rev decrements during DUP/INV reference adjustment (ToVarsBuilder.java:337-340, crates/vardictrust-core/src/tovars.rs).
  • Selected somatic max_af_variant on 4-decimal banker-rounded freq (SomaticPostProcessModule.java:118-127, 219-227), emitted tlamp = 0, ncamp = 0 on amplicon null pileup rows while persisting good_variants across amplicons (AmpliconPostProcessModule.java:152-246), canonicalized negative-zero round_half_even formatting (-0 $ o$ "0"), applied two-stage 1dp -> 0dp HALF_EVEN rounding to paired MQ (var2vcf_paired.pl), evaluated VCF filter thresholds on rounded HIAF/SN/MSI/SBF, and emitted ;CRISPR= in single-sample VCF INFO when -J is enabled (crates/vardictrust-core/src/lib.rs, src/postprocess/amplicon.rs, src/output/table.rs, src/output/vcf.rs).

1.0.5 - 2026-10-27

Added

  • First-class in-process vardictrust-core test suites (crates/vardictrust-core/tests/corpus_parity.rs [110 tests] and crates/vardictrust-core/tests/engine_behavior.rs [25 tests], 416 total workspace tests: 252 core lib + 110 corpus_parity + 25 engine_behavior + 2 amplicon_stream_mem + 2 cram_stack + 17 CLI bin + 8 CLI integration binary tests) enforced with a >= 90% cargo-llvm-cov line coverage gate in CI (PR #49).
  • Public vardictrust_core::run_with_writer API for direct in-process streaming and testing without subprocess spawn overhead (PR #49).
  • Supply-chain, CI workflow, and git hook hardening: .cargo/audit.toml (cargo-audit 0.22+ schema with deny = ["warnings"]), deny.toml ([graph] all-features = true and [sources] registry lockdowns), reusable .github/actions/setup-conda-env composite action, expanded .github/dependabot.yml across all 19 direct crate dependencies plus /docs pip dependencies, and offline-safe cargo deny / cargo audit checks in .githooks/pre-commit, harness/pr_check.sh, and harness/acceptance.sh (PR #49, PR #51).
  • Automated documentation fingerprint and 16-file SHA-256 manifest synchronizer (harness/sync_evidence_docs.py) integrated into harness/recertify.sh (PR #49).

Changed

  • Accelerated VariationRealigner::find_35_match via SWAR u64 8-byte word comparisons (crates/vardictrust-core/src/realign.rs), replaced eager CRAM slice vector buffering with streaming cached CRAM container decoding in crates/vardictrust-core/src/bam.rs, and borrowed single-allele somatic Vars in crates/vardictrust-core/src/postprocess/somatic.rs (Issue #45, PR #46).
  • Added a synchronous single-thread runner fast-path (num_threads == 1) in crates/vardictrust-core/src/runner.rs and eliminated ~582,600 redundant per-region stat() syscalls on BAM metadata cache hits in crates/vardictrust-core/src/bam.rs (PR #49).
  • Consolidated October 2026 dependency and GitHub Actions updates: bumped noodles (0.117 \(\to\) 0.118), noodles-bam (0.96 \(\to\) 0.97), noodles-cram (0.100 \(\to\) 0.101), noodles-fasta (0.67 \(\to\) 0.68), noodles-sam (0.91 \(\to\) 0.92), noodles-vcf (0.94 \(\to\) 0.95), rustc-hash (1.1.0 \(\to\) 2.1.3), lzma-rust2 (0.21.0 \(\to\) 0.22.0), clap_lex (1.1.0 \(\to\) 1.1.1), libc (0.2.186 \(\to\) 0.2.191), mkdocs (1.6.1), mkdocs-material (9.8.0), pymdown-extensions (12.3), and SHA-pinned GitHub Actions (step-security/harden-runner v2.22.2, taiki-e/install-action v2.87.31, actions/cache v6.1.0, actions/setup-python v7.1.0, github/codeql-action v4.39.1) (PR #52, PR #57).
  • Audited and compressed README.md with Progressive-JPEG layout, 5-channel installation instructions (including Seqera Wave container digests and Nextflow nf-core/modules), and verified CLI flag documentation (PR #50).
  • Recertified all 16 release evidence artifacts in benchmarks/evidence/*.json under engine fingerprint d925892846918c2a (perf_fingerprint b7decb95be6077f1; harness/acceptance.sh 8/8 PASS) with 100% pinned VarDictJava/vardictcpp golden-store baseline reuse.

Fixed

  • Achieved 100% full-genome parity (56,642 / 56,642 intervals, 8,111,171 variants, 0 diffs) against VarDictJava v1.8.3 across GIAB HG002 chr1..chr22 (Issue #47, PR #48):
  • Preserved soft-clip unused state across find_sv (<DEL>, <DUP>, <INV>) and synchronized find_conseq soft-clip mutations back to the live Sclip entry via sync_sclip_after_conseq in crates/vardictrust-core/src/sv.rs, matching StructuralVariantsProcessor.java:687-965.
  • Used config.extension (-x, default 0) instead of config.extension_nuc (-X, default 3) when computing reference seed fetch bounds in crates/vardictrust-core/src/reference.rs (get_reference), matching ReferenceResource.java:85-89.
  • Removed the paths: filter from .github/workflows/differential.yml so the required Dual-Engine Differential Parity (Tier-2) status check executes on every pull request (PR #50).
  • Replaced hardcoded noodles version string matching in harness/tests/test_evidence.sh with a version-agnostic sed -E substitution (PR #57).

1.0.4 - 2026-10-25

Fixed

  • Achieved 89 / 89 MATCH (fp=0, fn=0 across 1,202,444 compared oracle .var/.vcf/splice records and 36 multi-slice/mode suites) against VarDictJava v1.8.3 across the 12-cell full-corpus validation sweep (Tier-P 30,267x–45,707x AML panels SRR15006540 / SRR8657348 / SRR15006375 / SRR15006376 / SRR15006386, 51.8 GiB HG002 STAR RNA-seq -i splice & cDNA, direct whole-chromosome -R chr1:1-249250621, full-cohort Amplicon / HG002 Deep WGS / HG008 Somatic WGS / SEQC2 WES 690,800 variants, 24-arm WGS/WES MRD -f 0.001 / -f 0 / --fisher matrix, 30-arm ultra-deep 7,361x–173,132x MRD stress matrix, and G4/E2 CRAM 3.0 twins; Issue #42, PR #43):
  • Bug A (crates/vardictrust-core/src/cigar/parse.rs, src/reference.rs): Select the covering secondary LoadedRegion (region_slice_for_span) on self.region.chr during structural-variant partial_pipeline re-parsing and spliced alignments (CigarParser.java:181–193, 257).
  • Bug B (crates/vardictrust-core/src/reference.rs): Truncate loaded reference sequences to site_end = bases.len() - 17 after seeding PendingSeedChunk (ReferenceResource.java:106–112) so the trailing SEED_1 (17 bp) lookahead is excluded from region_sequences and reference_sequences while remaining indexable by overlapping subsequent regions.
  • Bug C (crates/vardictrust-core/src/bam.rs): Normalize CRAM reference-matching bases decoded against soft-masked lowercase FASTA contigs (a/c/g/t/n) to uppercase (A/C/G/T/N) in SamRecord::fill_from_alignment_record, and reconstruct omitted CRAM 3.0 (store_nm=0) NM edit distance tags via compute_cram_nm per SAMtags §1.5.
  • Bug D (crates/vardictrust/src/cli.rs, crates/vardictrust-core/src/config.rs, src/output/vcf.rs): Replicate Perl falsy $opt_f ? $opt_f : 0.02 fallback (var2vcf_valid.pl:21) via valid_freq_threshold(config) when -f 0 is passed in single-sample mode, while preserving 0.0 for truthy decimal/scientific zero strings (-f 0.0, -f 0e0).
  • Bug E (crates/vardictrust-core/src/postprocess/somatic.rs): Propagate in-place v2nt.is_noise() coverage decrements (total_pos_cov -= pos_coverage) back into v2.var_desc_to_variant and v2.variants so subsequent tumor alleles at multi-allelic somatic loci observe the mutated v2.variants[0] (SomaticPostProcessModule.java:172–186).
  • Bug F (crates/vardictrust-core/src/realign.rs): Fix <dupN> \(3'\) flank substring offset in realignins (start_idx = sv_flanking, matching VariationRealigner.java:744–746 substr(ins3, SVFLANK - ins3.length())).
  • Bug G (crates/vardictrust-core/src/sv.rs): Query var_data.ref_coverage.get(&(p5_adj + 1)) after p5-- in find_sv \(5'\) candidate deletion scan (StructuralVariantsProcessor.java:732, 748).
  • Bug H (crates/vardictrust-core/src/stats/fisher.rs, src/output/table.rs, src/output/vcf.rs, src/lib.rs): Add FisherExact::new_java / new_with_mode(..., config.fisher) emulating FisherExact.java:72, 112, 129 with 7-decimal logdc banker's rounding (round_half_even(value, 7)) and OpenJDK DoubleStream.sum() Kahan-Babuška compensated summation (java_stream_sum) for ultra-deep --fisher parity.
  • Adaptive Region Tiling (crates/vardictrust-core/src/lib.rs, crates/vardictrust/src/cli.rs): Execute BED intervals <= 1 Mbp (DEFAULT_UNTILED_SPAN_MAX) as single untiled intervals matching VarDictJava while tiling multi-megabase intervals > 1 Mbp into 100 kbp (DEFAULT_TILE_SIZE) windows to preserve < 1.5 GiB bounded WGS memory; raise MAX_TILE_SIZE to 500 Mbp.
  • Wired harness/scale_bench.sh and harness/run_integration.sh to cache and replay vardictcpp invocations via harness/golden_store.sh, eliminating redundant multi-minute vardictcpp re-executions across test and scale loops.
  • Added unit and real-data end-to-end regression tests across crates/vardictrust-core and crates/vardictrust/tests/flags.rs (293 total workspace tests: 241 core lib + 4 core integration + 15 CLI unit + 33 CLI integration tests).
  • Recertified all 16 release evidence artifacts in benchmarks/evidence/*.json under engine fingerprint 552856835a1eec01 (perf_fingerprint 9346a6e5419cc5e2; harness/acceptance.sh 8/8 PASS).

1.0.3 - 2026-10-24

Added

  • Opt-in zero-default-overhead profiling subsystem (crates/vardictrust/src/profile.rs, crates/vardictrust/tests/profile_smoke.rs) with Cargo features profile-cpu (pprof + inferno SVG flamegraphs), profile-heap (tikv-jemallocator + jemalloc_pprof), and profile-dhat (dhat::Alloc allocation-site churn), driven by harness/profile.sh and stdlib-only harness/profile_catalog.py (PR #35).
  • Golden Baseline Store (harness/golden_store.sh, harness/golden_store.py, harness/tests/test_golden_store.py) and turnkey G4 cohort stager (harness/stage_g4.sh) for hash-verified, host-scoped caching of pinned VarDictJava v1.8.3 and vardictcpp 3 oracle outputs (PR #32, PR #33).
  • Complete 10-class vardictcpp divergence forensic catalog (CPP-1 through CPP-10) in docs/upstream-bugs.md, cross-linked across README.md, benchmarks/README.md, and docs/validation/omnibus-empirical-validation.md (PR #37).
  • In-tree Nextflow nf-core/modules packaging (packaging/nf-core/modules/vardictrust/, packaging/nf-core/prepare_nfcore_pr.sh) with multi-arch Seqera Wave containers (linux/amd64, linux/arm64) and nf-test snapshots.
  • Four repository-specific Agent Skills under .agents/skills/ (vardictrust-issue, vardictrust-pr, vardictrust-profiling, and vardictrust-release with stdlib-only check_release_consistency.py), validated in harness/tests/test_bioconda_recipe.py.

Changed

  • Zero-allocation get_variation / get_variation_maybe (IndexMap raw_entry_mut_v1 with FxBuildHasher, stack UTF-8 key buffer) and FxHashMap ref_coverage + borrowed-key increment in CigarParser (PR #35).
  • Replaced per-bucket Vec allocations in JavaHashMap with an OpenJDK-isomorphic flat intrusive node arena (buckets: Vec<u32>, nodes: Vec<Node<K, V>>, free-list reuse), preserving exact bucket/chain iteration and treeify_bin semantics while eliminating inner-bucket heap allocations and bare slice indexing (PR #35).
  • BAM I/O and record decoding optimization (O-1 + O-3): share parsed .bai/.csi index and SAM header metadata across worker threads via META_CACHE, pool up to 4 BGZF readers per thread/path via BAM_READER_POOL (cleared via RAII guard around run()), and decode concrete noodles::bam::Record fields and auxiliary tags (nM/NM/SA/MC/MQ) in a single pass without per-read trait-object allocations (PR #35).
  • CigarModifier::modify_cigar: added dynamic (has_d, has_i, has_s) byte pre-filters across pre-loop and fixpoint-loop regexes (recomputed on every cigar_str mutation) and replaced the 5 unconditional post-loop regexes with bounds-checked, allocation-free byte-slice matchers (PR #35).
  • VariationRealigner::realignlgins30 / find_conseq / find_35_match (NEW-1): hoisted sc5_used and integer distance bounds ahead of BTreeMap lookups in realignlgins30, cached empty consensus Some(Vec::new()) in find_conseq, and pre-reversed seq3 once for forward slice comparison in find_35_match (PR #35).
  • ToVarsBuilder and realignlgdel optimization (O-9): replaced upfront non_insertion_variants.clone() and per-position VariationMap::clone() with a sparse copy-on-write FxHashMap overlay, eliminated per-position Vec and Variant clones and HashSet<String> allocations in is_the_same_variation_on_ref, and guarded realignlgdel soft-clip loops on live cnt/used/consensus length before cloning Sclip (PR #35).
  • Reference k-mer seed indexing (O-4 + O-5): replaced HashMap<Vec<u8>, Vec<u32>> with SeedMap (SeedKey 17-byte inline key + SeedPositions::One/Many + FxBuildHasher) and eliminated redundant bases.clone() and LoadedRegion String clones in get_reference (PR #35).
  • Stack-buffered round_half_even (StackBuf<64> in types::round_half_even with heap fallback for oversized values, O-12a) and allocation-free integer CIGAR deletion suffix check cigar_contains_dlen_d in VariationRealigner::no_passing_reads (O-7, PR #35).
  • Enabled noodles-bgzf/libdeflate for whole-block BGZF deflate decompression in BAM/BAI/CSI/VCF.gz readers (O-2, +3.74% median wall-time improvement on hg002 chr20, PR #35).
  • Configured tikv-jemallocator as the default Linux global allocator with static _rjem_malloc_conf (background_thread:true,dirty_decay_ms:250,muzzy_decay_ms:0,narenas:8) and guarded StructuralVariantsProcessor::find_sv to filter out sub-minr soft-clip clusters before cloning Sclip, 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 with 1.22× flat RSS scaling, PR #35, PR #37).
  • High-region-count Exome BED optimization (EBO-1..EBO-3, Issue #36, PR #37): added CachedBgzfReader with a 1-block thread-local cursor and 8-shard × 16-slot LRU process-wide BGZF_BLOCK_CACHE in bam.rs (EBO-1), deferred Reference::seed 12-mer/17-mer hashing until the first soft-clip realignment query via OnceCell<RawSeedMap> in reference.rs (EBO-2), and batched up to 16 consecutive small same-chromosome tiles in regions::batch_tiles and runner::run_parallel_batched (EBO-3), cutting 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).
  • Recertified all 16 release evidence artifacts in benchmarks/evidence/*.json under engine fingerprint 27f3667b32ac14f5 (perf_fingerprint 9f75643cf12aa988; harness/acceptance.sh 8/8 PASS, PR #37).

Fixed

  • Per-tile BAM streaming for chrM RNA splicing (-i), ungated parity-restoring splice-tile-ownership and mate-window-ownership tile ownership rules, and lowercase-n allele_key passthrough (PR #29).

1.0.2 - 2026-10-17

Fixed

  • Bounded-memory amplicon calling: per-base insert expansion replaced with an interval-overlap test plus a streaming -p path (active-interval sweep), eliminating OOMs on huge BED intervals with byte-identical output.

Added

  • Harness gates: pinned cpp --chunk (default 50000) recorded to evidence, ORACLE_XMX_GB heap sizing for the Java oracle, and a gated truvari SV wrapper with loud SKIP when truvari is absent.
  • All 16 evidence artifacts recertified under the new engine fingerprint (acceptance 8/8 PASS).

1.0.1 - 2026-10-15

Added

  • Official Bioconda package distribution for vardictrust (anaconda.org/bioconda/vardictrust) supporting linux-64, linux-aarch64, osx-arm64, and osx-64 via conda install -c bioconda -c conda-forge vardictrust. Galaxy wrapper distribution remains an explicit follow-up.
  • Advisory vardictcpp third arm everywhere VarDictRust compares against VarDictJava: pinned vardictcpp 3 hc52dbad_0 bioconda (same vardict-oracle conda env as the Java oracle; pin mirrors the vardict=2019.06.04 pattern in benchmarks/env/vardict-oracle.yml). Every gate arm records a CPP: MATCH/MISMATCH/SKIP line plus compare_cpp.txt; evidence extra gains cpp_version, cpp_head, cpp_wall_s, cpp_maxrss_kb, cpp_f1, cpp_skip_reason; CPP_SKIP=1 escapes the arm. The release gate stays java==rust — cpp never masks a verdict, and harness/acceptance.sh fails loudly (not silently) when Tier-2 evidence lacks cpp_version/cpp_skip_reason. Known cpp divergences are normalized in docs/upstream-bugs.md.
  • Three-way CRAM twin (harness/cram_twin.sh): rust and cpp each call the hg008 slice pair from BAM and CRAM; gate is rust-BAM == rust-CRAM (18,426 variants MATCH), cpp twin recorded advisory. The rust-CRAM arm runs with RUST_MIN_STACK=64M: the default 2 MiB rayon worker stack overflows inside noodles-cram 0.100.0 rANS/name-tokenizer decoding (~97 frames; BAM unaffected; pinned by crates/vardictrust-core/tests/cram_stack.rs), not a parity issue. Rebase note (2026-10-12; finalized 2026-10-14 per docs/validation/scale-recalibration-proposal.md sign-off): scale PASSES under the signed host-class bar bar(P) = 0.6 × min(8, P) (P=4 on i7-13700H taskset 0-7 → bar 2.4; RSS leg unchanged ≤ 1.5×); medians across 3 full runs give 3.72× (th1 1769s/th8 476s) with RSS 1.448× ≤ 1.5×, so scale.json records PASS (median 3.72 >= 2.4, RSS 1.448 <= 1.5). RSS headroom is thin (one run reached 1.489×) — variance watch only, no bar change. Java -th 8 is OOM-killed on high-depth paired slices on 31G hosts (bisected 1✓/4✓/8✗); hg008/seqc2-exome evidences run at -th 4 with cmds recorded verbatim.
  • Expanded harness/run_extended_coverage.sh from 9 to 17 clinical calling modalities (--crispr, -u, -A, --chimeric, -k 0, --fisher, -3, -O, -X, -c/-S/-E/-g, -M, --deldupvar, --DP ERR) and added 19 CLI flag integration tests in crates/vardictrust/tests/flags.rs plus 2 CRAM decoder stack tests in crates/vardictrust-core/tests/cram_stack.rs (230 total workspace tests).
  • Documentation and governance infrastructure: MkDocs Material site (mkdocs.yml, harness/prepare_docs_site.py, .github/workflows/docs.yml), automated GitHub Wiki sync (wiki/, .github/workflows/wiki.yml), ReadTheDocs API trigger (harness/trigger_rtd.sh), Playwright/GFM documentation UI test suite (harness/tests/test_docs_ui.py), and the end-to-end release engineering runbook in CONTRIBUTING.md §9.

Changed

  • Canonicalized workspace-only SemVer fields (Cargo.toml, crates/vardictrust/Cargo.toml, Cargo.lock) inside harness/engine_fingerprint.sh (normalize_gate_blob()) so pure release version bumps preserve the certified engine fingerprint (388f4a545470d12a) while external dependencies, profiles, features, and sources remain hashed.
  • Re-certified all 16 evidence artifacts in benchmarks/evidence/ under fingerprint 388f4a545470d12a on the 14-core i7-13700H workstation (chip; benchmarks at -th 8, scale pin P=4 physical).

Fixed

  • Fixed multi-sample BAM header extraction on -b "b1|b2" in crates/vardictrust/src/main.rs, added warning when -N omits the second sample name, and guarded end == 0 in StructuralVariantsProcessor::find_inv.
  • Fixed harness/record_evidence.py stale compare_cpp.txt / cpp.time leak on KEEP_DIR reuse when extra.json records a pre-execution skip.

1.0.0 - 2026-10-10

First release of VarDictRust: an idiomatic-Rust rewrite of VarDictJava v1.8.3 (single static binary; no Java/R/Perl required).

Added

  • All four calling modes: Simple (germline), Somatic (paired tumor/normal), Amplicon, and Splicing/SV.
  • Complete VCFv4.2 output plus the legacy intermediate .var table (--emit-intermediate).
  • In-engine Fisher exact test (--fisher) — no R dependency.
  • Bounded-memory region tiling + rayon parallelism for deep WGS.
  • CRAM input support.

Parity

Output validated against VarDictJava v1.8.3 (commit 0886261), across 92 integration fixtures, 17 differential benchmarks, and 5 ground-truth cohorts. Full results, per-slice exceptions, and the divergence ledger live in README §Empirical Parity & Validation Status and DIVERGENCES.md.

Fixed

Robustness improvements by design (no valid-input output changes relative to VarDictJava v1.8.3):