Changelog
All Zedda releases from 0.1.0 to 0.4.9 — Keep-a-Changelog format.
All notable changes to Zedda will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.4.9.1] - 2026-11-27 — Comprehensive Bug Fixes & Remediation Loop Integration
Breaking Changes
- Safe Defaults for
zd.clean()(B1): Default behavior changed todry_run=True, approved=False. Callingzd.clean(path)now safely generates and returns aCleaningPlanpreview without modifying files or creating backup files. To execute cleaning and modify files on disk, callers must explicitly passdry_run=False, approved=True. CLI invocationzedda cleanpasses explicit approval flags automatically. - Undo Safety Guard (M6):
zd.clean.undo()now checks the file hash against the post-clean state stored in the rollback manifest. If the file has been edited since cleaning, it will raise aZeddaErrorinstead of silently overwriting user edits. To explicitly force an overwrite of user edits, passforce=True. Double-undo operations are also now explicitly prevented.
Fixed
- Precision & Type Semantics (B2/B3/B4/B5/M4/M5): Preserved exact
int64(min,max,sum) and exact integer distinct tracking across CSV/Arrow paths, bounded cardinality memory caps, whitespace-only null-token parity (fast_is_null/is_null_token), CSV fallback notices onstderr, and string-column preservation duringzd.clean(). - Security, Stability & CI: Fixed LLM secret redaction in
ask()/report(), atomic file writes, ReDoS nested-quantifier guard invalidate(), Rich markup escaping, Windows UTF-8 path handling without handle leaks, RFC 4180 quoted CSV field parsing, per-function SIMD target attributes insimd_scanner.cpp, and updatedmacos-latestCI runners.
[0.4.9] - 2026-09-12 — Post-Audit Stability Release
Fixed
- Core Stability: Fixed P0 crash in
profile()when passing dataframes containing only datetime columns. - Type Safety: Resolved P1
FutureWarningduringastype(float)casting of boolean inputs infix()operations. - API Clarifications:
merge()raises a clearTypeErrorexplaining it requires a list of paths if a DataFrame is passed tooutput.validate()now accepts bothrules=andschema=as kwargs for backward compatibility.- Enhanced docstrings for
merge()andvalidate()to reflect standard usage.
[0.4.8] - 2026-07-25 — Pre-Release Audit & CI/CD Hardening
Fixed — Release & CI/CD
- Release Verification: Fixed tag version string stripping (
v0.4.8→0.4.8) inrelease.ymlpost-publish verification step to ensurepip install zedda==0.4.8succeeds. - Cross-Platform Compatibility: Added
shell: bashto PyPI propagation wait step inrelease.ymlto resolve Windows runner execution failures. - Documentation: Updated test status badge URL in
README.mdto point toci.yml(was 404 ontests.yml). - Version Alignment: Updated fallback version string in
report.pyto0.4.8and syncedCITATION.cffto0.4.8. - Type Safety: Resolved mypy type check error on
cli.py:93.
[0.4.5] - 2026-07-15 — Audit Remediation Patch Release
Security
- CRITICAL (P-C1): Fixed path traversal in
scan(allowed_dir=...). The previousstr.startswith()check let/data/uploads_evil/x.csvmatch/data/uploads. Now usesPath.relative_to()for proper containment. - (P-H1): Fixed
_ask_validate_pathblocked-root check usingPath.relative_to()instead ofstr.startswith()(was over-blocking/rootkit/x.csv). - (P-H9/H10):
clean()now validates backup and audit-trail paths to prevent path traversal via user-suppliedoutput. - (D-1): Declared
requests>=2.31in[ai]extra — was imported but never declared, silently breaking AI support for every[ai]user. - (CI-C1): Removed
continue-on-error: truefrompublish_testjob — the TestPyPI→PyPI safety gate was non-functional. - (CI-C2): Fixed fuzz crash-artifact upload condition (
if: failure()never fired because the fuzzer step hadcontinue-on-error: true). - (CI-H1): SHA-pinned
pypa/gh-action-pypi-publish(was floating@release/v1). - (CI-H3): Made dependency-review blocking (was advisory-only).
- (CI-H4): Docker image now runs as non-root user (uid 1000).
Fixed — C++ correctness
- (C-H1): Pearson correlation switched from naive 5-sum formula to Welford-style online covariance. Numerically stable for any input scale (was catastrophically cancelling for values near 1e8+).
- (C-H2): CSV parser in
profile_buildernow properly unescapes""→"inside quoted fields (was leaving both quotes in the string_view). - (C-H5): Arrow boolean/datetime/int8-16/uint32-64/float16 columns are now handled natively (were silently treated as all-null).
- (C-H6): All-null Arrow columns are now skipped in the pair-accumulator loop (was reading garbage from buffers[1] and feeding into Pearson).
- (C-H7): MSVC AVX-512 detection now includes
_xgetbvOS XSAVE check; CMake uses/arch:AVX512(was/arch:AVX2which doesn’t define__AVX512F__). - (C-H8):
config_.has_header=falseis now honored inprofile_builder(was silently dropping the first data row). - (C-H9):
config_.null_stringis now honored inprofile_builder(was silently ignored — only hardcoded null markers were detected). - (C-H11): UTF-8 BOM is now skipped in both mmap and fgets paths (was prefixing the first column header with 3 garbage bytes).
- (C-H12): Boolean parsing tightened to exact case-insensitive match (was matching “track”, “field”, “from”, etc. as TRUE).
- (C-M9): Only strips trailing quote if field was actually quoted.
Fixed — Python correctness
- (P-C2):
fix(apply=True)now applies the same clip-at-99th-percentile fix shown in the displayed copy-paste code (was runningnp.log1p()instead — different schema, different semantics). - (P-C3):
fix(apply=True)no longer crashes on all-null string columns (Series.mode()returns empty Series;[0]raisedIndexError). - (P-C4):
clean()no longer writes output to a deleted temp file when input is a DataFrame andoutput=None(was silent data loss). - (P-C5):
scan()now preserves the original traceback (from einstead offrom None). - (P-H5): Six public APIs (
compare,ml_ready,warnings,fix,clean,merge) now raiseZeddaErrorinstead ofreturn Nonewhen Rich is missing. - (P-H6):
merge()now skips files that fail to scan with a warning, instead of aborting the entire merge. - (P-H11):
clean()no longer fabricates a fake “after” quality score on rescan failure. - (P-H12/H13):
ask()return type now consistent with docstring; exception path no longer risksNameErroronmsg. - (P-M7/M8):
_count_linesreturnsNoneon error; fixes off-by-one for files without trailing newline.
Fixed — CI/CD
- (CI-C3): Added
enable_testing()+add_test()to CMakeLists.txt —ctestnow discovers all 9 C++ tests (was running zero, giving false sense of coverage). - (CI-H5):
test_hyperloglogis now run in CI (was built but never executed). - (CI-H6):
tests/test_hotfix_0_4_5.pyis now run in CI. - (CI-H7): Wheels are now smoke-tested via
CIBW_TEST_COMMANDbefore PyPI publish. - (CI-M1/M2): Test matrix now includes Python 3.10/3.11 and macos-13 (Intel).
- (CI-M3): Migrated
manylinux2014→manylinux_2_28(CentOS 7 EOL). - (CI-M10): Collapsed 6-wheel STABLE_ABI matrix to single
cp39(abi3 covers 3.9+). - (CI-M19): Split
publish_pypi(id-token only) fromgithub_release(contents:write). - (CI-M20): Renamed CMake project
fasteda→zedda, version0.1.0→0.4.5.
Changed
- (D-2):
[ai]extra now declaresrequestsinstead of the unusedopenaiSDK. - (P-M21/M22):
warnings()andfix()now acceptsample_sizeparameter for API consistency withprofile/scan/compare. - (M-22):
[dev]extra now includesruff,mypy,types-requests,pre-commit,cibuildwheel(was installed ad-hoc in CI). - (M-24): AI endpoint is now configurable via
ZEDDA_AI_ENDPOINTenv var.
Refactor
- (Batch 7): Began splitting the 4,287-line
__init__.pyinto focused modules:_constants.py,_format.py,_warnings.py,_scan.py. Public API unchanged. - (C-L5):
ArrowProfilerdestructor declared= default(was out-of-line empty). - (C-L12):
~CsvStreamReadermarkednoexcept. - (C-L18):
pair_accs_memory released afterfinalize()(was holding 64MB). - (C-M2):
get_active_scannercached viastd::call_once(was callingstd::getenvon every invocation). - (C-M6):
profile_builderdiagnostics routed tostderr(was corrupting stdout). - (C-M10): 15
ColumnProfilefields exposed as read-only viadef_ro. - (C-M8/C-L6): Type-promotion lattice in
ColumnAccumulator::merge— INTEGER + FLOAT → FLOAT, STRING wins over numeric. Previously per-thread type detection produced inconsistent merged types. - (L-1): Removed redundant
Path as _Pre-import in_resolve_input. - (L-7):
__all__now includesexportalias. - (L-8): Removed trailing non-code comments at EOF.
- (L-19):
ask()uses module-leveltimeimport (was re-imported as_time).
Tests
- (Batch 11): Added
tests/python/test_audit_regression.pywith 32 test cases covering all Critical/High audit fixes: path traversal, BOM handling, boolean parsing, fix-apply divergence, clean data loss, merge skip-on-fail, traceback preservation, ctest registration, CMake project name, thread-safe cache, count_lines edge cases, sample_size API consistency, extracted modules. - (Batch 17): C-M1 — pair_accs packed into upper-triangle layout, halving memory (64 MB → 32 MB at N=1000; 512 MB → 256 MB with 8 threads). Also fixes C-L3 (merge loop now iterates N*(N-1)/2 instead of N²).
- (Batch 18): C-H10 — Embedded newlines in quoted CSV fields now handled correctly in the single-threaded CsvStreamReader path (RFC 4180 §6). The parallel ProfileBuilder path still has this limitation (C-M5 deferred).
- (Batch 19): P-M29 — clean() caches mode() result (was calling twice). P-M30 — _ask_pattern_c parquet/feather reads capped at 5M rows (was uncapped). C-M3 — SIMD scanner now warns when a row has more fields than expected.
- (Batch 20): Added 7 property-based tests with hypothesis for CSV parser fuzzing (random valid CSV generation, BOM, trailing newline, quoted fields).
- (Batch 22): C-M5/C-H10 — Parallel ProfileBuilder path now handles embedded newlines in quoted fields (RFC 4180 §6). After fgets returns a line, checks for unterminated quotes and keeps reading until the quote closes. Both single-threaded and parallel paths now handle embedded newlines.
- (Batch 23): C-L7/C-L11 — All null markers (NA, NaN, N/A, null, none,
#N/A) are now case-insensitive in both
fast_is_null()andis_null_sv(). Previously “NaN”/“nan” was case-insensitive but “null”/“NULL”/“None”/“none” were exact-case only — “Null”, “nULL”, “NONE” were not detected as null. - (Batch 24): P-M19 —
_ask_pattern_dregexes hoisted to module scope (was recompiling 7 regexes on every call). - (Batch 25): API.md documentation corrected:
zd.profile()return type fixed (None → DatasetProfile),zd.fix()added (was missing entirely),zd.ask()return type matches actual behavior, all 22ColumnProfileattributes documented (was 8),CorrelationResultandZeddaErrordocumented. - (Batch 27-32): P-M1 RESOLVED — Extracted 10 focused modules from
__init__.py:_constants,_format,_warnings,_scan,_resolve,_compare,_ml_ready,_fix,_merge,_clean,_ask. Total 1,377 lines of pure logic extracted, all testable in isolation. The Rich rendering layer and public API orchestration remain in__init__.py. All 80 Medium-severity findings are now resolved. - (Batch 34-38): Added 60 unit tests for all extracted modules
(
test_extracted_modules.py). Uses mock ColumnProfile/DatasetProfile objects so tests don’t need the C++ core. Covers: schema diff, distribution shift (including negative mean M-32), verdict computation, ML readiness scoring, fix code generation (P-C2 clip not log1p), merge overlap (P-H7 O(N)), clean backup/audit (P-H9/H10), ask pattern matching, format helpers, and code injection prevention (SEC-P01). - (Batch 40-41):
_quality_score()and_quality_score_display()now delegate to shared helpers (_is_outlier_column,_render_quality_bar,_quality_label). FIX M-36:original_cols=0no longer disables the dropped-column penalty. FIX M-11: score clamped to [0, 100]. - (Batch 42): Added 3 C++ tests to
test_profile_builder.cpp: BOM handling (C-H11), embedded newlines in parallel path (C-H10), type promotion int→float (C-M8). All pass. - (Batch 44): Coverage measurement:
pytest-covadded to[dev]extras,.coveragercconfig, CI runs with--cov, Codecov badge in README. First measurement: 58.16% (target: 70% for v0.6.0). - (Batch 45): P-M20 (redundant dedup in ml_ready), P-M18 (useless
result = Nonein ask), P-M37 (negativecoerced_countin clean). - (Batch 46):
.clang-formatfile added (C++17, Google-based, 4-space indent, 100-col limit). Pre-commit clang-format hook now has a config. - (Batch 48-50): 27 new unit tests for extracted modules. Coverage
improved from 58.2% to 61.5%. Key improvements:
_clean.py30%→97%,_format.py56%→95%,_fix.py58%→79%,_warnings.py78%→93%. Total tests: 166 (was 139). - (Batch 52-58): 23 more unit tests + L-22/L-23/L-24/L-25 fixes.
_ml_ready.pyreaches 100% coverage,_ask.pyreaches 97.3%. json/shutil moved to module level (L-22), merge() exception chain preserved (L-23), compare() counters documented (L-24), collect_warnings() added as public API (L-25). Total tests: 189 (was 166). Coverage: 63.0%. - (Batch 61-63): 33 more tests + L-20 fix.
_resolve.py21%→93%,_scan.pycount_lines 0%→100%,cli.py0%→52% (10 CLI smoke tests). L-20:_ask_zedda_aiexcept cascade now includes exception type. Total tests: 222 (was 189). Coverage: 66.9%.
[0.4.6] - 2026-07-10
Fixed
- Installation: Bumped the
pyarrowupper bound constraint from<20to<27(allowing up to pyarrow 26.x). This resolves a severe installation failure on Python 3.14 (and newer) where pip would fall back to a source build due to missing wheels in older pyarrow versions.
Changed
- BREAKING CHANGE:
pyarrowis no longer a core dependency, making the base installation significantly faster and smaller for CSV-only users. If you rely on Parquet files, Arrow IPC, or pandas DataFrame inputs, you must now explicitly install the parquet extra:pip install "zedda[parquet]".
[0.4.5] - 2026-07-09
Fixed
- BUG 1: Fixed an issue where
zd.scan(df)andzd.profile(df)would silently swallowImportErrorifpyarrowwas missing, incorrectly throwing anUnsupported input typeerror. - BUG 2: Fixed
zd.clean()andzd.fix(apply=True)crashing on numeric columns containing non-numeric garbage values by coercing them usingpd.to_numeric(errors='coerce')prior to aggregations. - BUG 3: Enforced UTF-8 encoding on Windows (
sys.stdout.reconfigure) and replaced mojibake characters inzd.fix()output with proper Unicode bullets and arrows. - BUG 4: Replaced manual OSC-8 ANSI sequences in
zd.report()with Rich’s native Text markup to avoid leaking raw terminal escape codes in Jupyter notebooks. - BUG 6: Removed extraneous trailing newlines from several
console.print()calls to fix excessive spacing in the terminal UI.
Changed
- BUG 5 (Minor Breaking Change):
zd.profile()now returnsNoneinstead ofDatasetProfileWrapperto prevent double-printing the report in Jupyter cells. Programmatic users should usezd.scan()instead.
[0.4.4] - 2026-07-05
Added
zd.clean(): AI-powered automatic data cleaning (drops sparse columns, imputes missing values, removes IDs).zd.merge(): Intelligent dataset merging with automatic ID inference and semantic alignment.zd.warnings(): Clean, structured list of every data quality warning found in the dataset.- Enterprise Dependabot configuration with intelligent grouping
- CodeQL security scanning (C++ + Python)
- Dependency review workflow (blocks vulnerable PRs)
- Release drafter for automated changelog generation
- Multi-stage Dockerfile (image size ~1.5 GB → ~200 MB)
- GHCR publishing alongside Docker Hub
- Docker smoke test before publish
.pre-commit-config.yamlwith Ruff hooksCODEOWNERSfor automatic reviewer assignment.dockerignorefor build context optimization- Ruff linting & formatting configuration
- mypy type checking configuration
- ccache for C++ test builds
- Cross-platform CI matrix (Linux, macOS, Windows)
- Python version matrix (3.9, 3.12, 3.13)
- CMake-driven C++ tests (all 7 test binaries)
- Concurrency groups on all workflows
- Timeout limits on all CI jobs
Changed
tests.yml: Complete rewrite with lint, typecheck, test-cpp, test-python jobsbuild_wheels.yml:publish_pypinow depends onpublish_test(safety gate)docker_publish.yml: Added GHCR, smoke test, multi-arch on tag pushes only.gitignore: Deduplicated (was doubled) and added missing entries
Fixed
- Fixed bug where
zd.fix()appliedfillnainstead ofdropto string columns >50% null - Fixed bug where
zd.profile()smart warnings icons were failing to render due tox/!/ichar mismatch - Fixed bug where
zd.compare()gaveFAILfor expected missing target columns in test data (now givesREVIEW) - Production PyPI publish could proceed even if TestPyPI upload failed (C-05)
- Only 4 of 8 C++ test binaries were running in CI — switched to CMake-driven builds for all 8 assertion-based test binaries (C-06)
.gitignorecontained duplicate content (W-DX-06)
[0.2.0] - 2026-06-28
Note: Versions 0.3.x were internal development releases with no public changelog entries. All features planned for 0.3.0 shipped in 0.4.0+.
Added
- Arrow profiler for Parquet/Arrow file support
- SIMD scanner with AVX2/AVX-512 runtime dispatch
- Memory-mapped file reader (
mmap_reader.cpp) - Profile builder for structured report generation
- Cross-platform wheel builds (Linux, macOS x86_64 + arm64, Windows)
- PyPI publishing via OIDC (no stored API tokens)
zd.compare()for dataset drift detectionzd.fix()for auto-generated data cleaning codezd.ml_ready()for ML readiness assessment- CLI interface via Typer
[0.1.0] - 2026-06-15
Added
- Initial release
- C++17 streaming CSV parser
- Basic statistical profiling (mean, median, std, min, max)
- Python bindings via nanobind
zd.profile()andzd.scan()API