Where DataFog is today (4.8.x) and where it is going (v5.0.0). The 4.x line delivered the lightweight-core architecture and, from 4.6.0 on, an offline PII firewall for AI agents and gateways. The v5 cycle turns that foundation into the fastest, easiest offline PII firewall for AI apps, logs, and datasets.
Table of Contents
- Current status — 4.8.x
- ✅ 4.1.0 — Lightweight Core (Released)
- ✅ 4.2.x – 4.3.x — Engines and Operations (Released)
- ✅ 4.4.0 — Python 3.13 and v5 Migration Bridge (Released)
- ✅ 4.5.0 — Lightweight Text PII Screening (Released July 2026)
- ✅ 4.6.0 — Agent & Gateway Firewall (Released July 2026)
- ✅ 4.7.0 — Allowlists and Typing (Released July 2026)
- ✅ 4.8.0 — Redaction Correctness (Released July 2026)
- v5.0.0 — Offline PII Firewall for AI Apps (In Progress)
DataFog 4.8.0 is the current stable release (July 2026). Patch
releases on the 4.8.x line focus on redaction correctness, detection
precision, and keeping the 4.x agent/gateway firewall stable while v5.0.0
is prepared.
Every published performance number is reproducible with one command:
python benchmarks/run.py (see benchmarks/ for methodology,
pinned payloads, and comparisons against Presidio and spaCy NER).
A major architectural shift to a lightweight core with optional extras:
- Core package size reduced from ~8MB to <2MB
- Dependency splitting into optional extras (nlp, ocr, distributed, etc.)
- Simple API with
detect()andprocess()functions - Graceful degradation when optional dependencies are not installed
- 100x+ performance advantage over NER-based detection, now
reproducible with one command (
python benchmarks/run.py)
pip install datafog # lightweight core (regex engine only)
pip install datafog[nlp] # with spaCy
pip install datafog[ocr] # with OCR
pip install datafog[all] # everything- GLiNER engine (4.2.0): modern NER via the
nlp-advancedextra, with asmartcascade mode. - Anonymous opt-out telemetry (4.3.0) and consolidated CI workflows.
- Sample notebooks and performance-regression fixes.
The bridge release that introduced the v5 direction gently:
- Python 3.13 support for the core SDK and CLI.
- Dependency validation for optional profiles without blocking core/CLI.
- v5-style preview APIs where they could land safely.
- Targeted deprecation warnings with no warnings on import.
- Migration docs and release notes announcing the v5 path.
Scope artifacts: :doc:`v44-bridge-release`
A focus release that made the core package easier to install, reason about, test, and use:
- Core text scanning, redaction, and guardrail helpers that stay
dependency-light by default (
scan,redact,protectpreviews). - Clear install-profile documentation for core, NLP, OCR, Spark, CLI, and web surfaces.
- German PII locale support.
- Documentation cleanup separating the current package story from historical planning material.
Scope artifacts: :doc:`v45-release-readiness`
Two ready-made enforcement points that catch PII at the moment it would leave the machine — offline, with matched values never echoed into logs or transcripts:
- Claude Code hook (
datafog-hook): gates agent tool calls (shell commands, web requests, file writes, MCP tools) and warns the model when prompts or tool results carry PII. ~70–90ms per invocation including process startup; also installable as the Claude Code plugin. - LiteLLM guardrail (
DataFogGuardrail): redacts or blocks PII in requests and responses at the gateway, for any LiteLLM-proxied provider. In-process, ~40µs per message scanned — no sidecar service.
Both default to the high-precision entity set (EMAIL, PHONE,
CREDIT_CARD, SSN); noisier types are opt-in.
- Allowlist support:
allowlist=[...]for exact values andallowlist_patterns=[...]for full-match regexes (ReDoS-hardened), available in the API and both firewall adapters. - Presidio-style entity aliases (
EMAIL_ADDRESS,PHONE_NUMBER,US_SSN) for easy migration. - py.typed marker for type-checker support.
4.7.x patch releases: SSN and phone precision fixes (hex-string and no-dash false positives).
- Document-order redaction tokens: repeated entities are numbered from
left to right, so the first email in a document becomes
[EMAIL_1]. - Overlap-safe redaction: public
redact()calls now suppress overlapping and duplicate spans before applying replacements, avoiding corrupted output fragments. - Mask mapping preservation: same-length values no longer collide in
maskstrategy mappings; each masked value receives a stable indexed key.
The v5.0.0 release is scoped around a sharper adoption wedge:
DataFog should be the fastest, easiest offline PII firewall for AI apps, logs, and datasets.
The release prioritizes trust and time-to-first-value over broad enterprise surface area: a core install, a simple top-level API, no network surprises, and copy-pasteable workflows for LLM prompts/outputs, logs, JSONL datasets, and CI checks.
Themes:
- Precision: a zero-dependency validation pass on every hit (Luhn,
IBAN mod-97, SSN structure rules, IP plausibility), confidence scores
on findings, and strictness presets (
strict/balanced/lenient) — with precision/recall benchmarks published alongside the speed benchmarks. - EU language & entity coverage: generalize 4.5's German support into a locale pack system (new languages become data plus tests, not code changes), starting with locale-independent EU entities (IBAN, VAT IDs, national ID formats).
- A leaner package: core stays pydantic-only; the Donut/transformers OCR path is removed (pytesseract remains), the PySpark wrapper becomes a documented recipe, legacy duplicate modules are deleted, and CI enforces wheel-size and import-time budgets.
- Built for pipelines: pure, stateless, thread-safe
scan/redactwith batch/iterator APIs, plus recipes for Kafka consumers, Vector/Fluent Bit transforms, and OpenTelemetry collector processors. - Vault-friendly anonymization: deterministic tokenization with exportable mappings and format-preserving pseudonymization.
API direction: scan(), redact(), protect(), and restore()
become the primary documented API; legacy detect()/process() keep
working as compatibility shims throughout the v5.x line.
Deferred to v5.1+:
- OCR overhaul.
- Spark overhaul.
- Cloud DLP integrations.
- Enterprise dashboards and analytics.
- Broad multilingual model tuning.
- Large Presidio-style framework expansion.
Scope artifacts: