Skip to content

Epic: fixes from the October 2026 audit (0.17.3 to 0.17.6) #87

Done
16 of 16 issues completed
Done

Description

@Claptar

Why

An audit of 0.17.1 (2c18e74, still current at 0.17.3) found 164 defects: 3 critical, 38 high, 53 medium and 70 low. The core design holds up: staging, Zarr-version preservation and the fan-out writer are sound on the paths they cover. The defects cluster at four kinds of place:

  • The edges of the safety net. Some commands bypass staged_outputs and same_path, and close-time errors are swallowed.
  • Inputs nobody tested. Empty fields, repeated names, --chunk 0, legacy anndata 0.7 encodings, scanpy rec-arrays.
  • Paths where memory is not set by --chunk. Fixed block sizes, whole-array checks, and anndata 0.13's sharded Zarr v3 layout.
  • Packaging. An undeclared click import breaks adata convert on every fresh install from 0.7.0 to 0.17.2.

Security findings are described here only in general terms until their fix is released.

Plan

16 batches, each one PR and each owning a set of files. Batches in the same wave touch different files, so they run in parallel; a batch that shares files with another starts after it has merged.

Wave Batches Release Theme
0 B0 0.17.3 convert broken on fresh installs
1 B1, B2a, B2b, B3a, B7 0.17.4: data safety every critical, the write-safety holes, silent wrong values, patched Pillow
2 B3b, B4, B5, B8a, B8b, B9 0.17.5: fidelity anndata parity, legacy stores, converters, CI hardening
3 B6a, B6b, B8c 0.17.6: streaming memory bounded by --chunk, Zarr v3 shards, pickles
4 B10 with 0.17.6 CLI output and docs sweep

Decisions

  • Versioning: all of it ships as 0.17.x patches.
  • Concat order: outer-join var order and category order match anndata (sorted), and the changelog says so.
  • Pickles: reading is hardened, and the docs say pickles are trusted input.
  • Full disk mid-write: the HDF5 library aborts, which the tool cannot catch, so writers check free space against the estimated output size first, and troubleshooting explains it.

Rules for every batch

  • One PR, on a fix/<batch> branch from main.
  • A regression test for every finding. Its docstring names the ref and says what used to go wrong, and it checks the result with an oracle (anndata, scipy or pandas), not only against the tool's own output.
  • Root causes are fixed once: one output check for every writer, one shared --chunk option with min=1, one way to choose a text encoding.
  • Docs and a ### Fixed changelog entry in the same PR. A new refusal or flag goes into docs/reference/commands.md.
  • Merged only after review, and with CI green on the exact commit. The PR lists the refs it closes.
  • A finding marked plausible or unverified (F036, F107, F137) is reproduced first, and closed with a note if it does not reproduce.

Sub-issues

Done when

  • Every batch is merged, and 0.17.4 to 0.17.6 are tagged.
  • Each ref is closed in its PR, or closed as not reproducing (plausible and unverified only).
  • The audit's repro scripts give a refusal or the correct output against main.
  • The new tests guard the general rules, not only the findings: oracle checks for non-X elements, the memory harness with wide and sharded fixtures, the fresh-install CI job and the write-safety matrix.

Sub-issues

Sub-issues

16 of 16 Issues completed
Loading 16 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions