Skip to content

Commit bffff50

Browse files
authored
Release DataFog 4.12 with qualified published Core 1.5 (#189)
Release DataFog 4.12 with qualified published Core 1.5
2 parents 822b79b + 3e48c34 commit bffff50

5 files changed

Lines changed: 95 additions & 19 deletions

File tree

‎CHANGELOG.MD‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
## [4.12.0]
6+
57
#### Security
68

79
- Preserve native structured PII detection in smart, spaCy, GLiNER, legacy and
@@ -23,7 +25,12 @@
2325
- Reuse tokens for repeated values, avoid existing token collisions, reject
2426
invalid explicit ranges and unsupported entity selections, and report backend
2527
entity capabilities. Async decorators await results before filtering.
26-
- Keep Core within the reviewed minor series, raise the Pydantic floor to 2.1,
28+
- Require the reviewed Core 1.5 minor series (`datafog-core~=1.5.0`) in the base
29+
package and `rust` extra; review native differences in `rust-1.5.0.json`.
30+
Core's complete mapped-IPv6 spans, email boundaries, Unicode mailboxes and
31+
phone-plus-ZIP classification are available through the wrapper. Published
32+
Core artifacts passed dependent installed-wheel qualification.
33+
- Raise the Pydantic floor to 2.1,
2734
include spaCy in `nlp-advanced`, and allow Torch 2.x versions compatible with
2835
`datafog-core[gliner2]`. Add an isolated build declaration and runnable sdist
2936
tests; remove unused duplicate implementation modules.

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ and `ADDRESS` from an embedded model, so name and address detection needs no
9696
spaCy and no model download. Findings keep `engine="regex"` provenance and
9797
`confidence=1.0` as compatibility values, not native confidence estimates.
9898
Reviewed differences from the Python engine are listed in
99-
[tests/contracts/rust-1.4.0.json](tests/contracts/rust-1.4.0.json).
99+
[tests/contracts/rust-1.5.0.json](tests/contracts/rust-1.5.0.json).
100100
`datafog.native` exposes the native schema directly.
101101

102102
Python 3.13 support is certified for the core SDK, CLI, `nlp`,
@@ -214,7 +214,7 @@ scan/redact helpers, or guardrail helpers.
214214

215215
DataFog deprecates OCR and Spark with visible use-time
216216
warnings; their APIs and extras will be removed in 5.0. The last supported
217-
version in this release train is 4.12.0 — after publication, pin it with
217+
version in this release train is 4.12.0 — pin it with
218218
`pip install "datafog==4.12.0"` — and every
219219
retired surface is tracked in the [retirement schedule](docs/retirement.rst).
220220
See the [4.9 migration guide](docs/migration-4.9.md) for the transition plan,
@@ -288,9 +288,11 @@ Telemetry does not include input text or detected PII values.
288288

289289
The native engine is the default, with a warned Python fallback. The 4.12
290290
review fixes preserve structured detection across every engine and legacy API.
291-
The dependency stays within the reviewed Core 1.4 minor series (`~=1.4.0`);
292-
Core 1.5 is a separate release candidate that must be published and qualified
293-
before this SDK raises its floor. See [release preparation](docs/review-remediation.md).
291+
DataFog 4.12 requires the reviewed Core 1.5 minor series
292+
(`datafog-core~=1.5.0`) in the base package and the `rust` extra. The published
293+
Core 1.5.0 wheel passed installed integration and compatibility qualification
294+
with this release. Python and Core have independent release versions.
295+
See [release preparation](docs/review-remediation.md).
294296

295297
Entity labels, locales and activation settings come from the installed Core.
296298
`get_supported_entities()` reports that backend's supported inventory, including

‎RELEASE_NOTES_4.12.0.md‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# DataFog 4.12.0
2+
3+
DataFog 4.12.0 carries structured PII detection through every engine, legacy
4+
API and CLI anonymization path. Smart, spaCy and GLiNER modes retain the same
5+
native card, IP and credential findings as the regex mode, then add NER spans.
6+
TextService scans complete documents, and spaCy/GLiNER character offsets prevent
7+
an earlier substring or repeated name from receiving the wrong redaction.
8+
9+
This release requires `datafog-core~=1.5.0` in the base package and the `rust`
10+
extra. Core 1.5 supplies complete IPv4-mapped IPv6 redaction, corrected email
11+
field boundaries and Unicode mailboxes, and phone-plus-ZIP classification that
12+
does not suppress the phone behind a false card finding. Native differences
13+
are recorded in `tests/contracts/rust-1.5.0.json`. Capability contract 1 remains
14+
unchanged; Python and Core have independent version numbers.
15+
16+
Lone surrogate characters no longer disable native scans. Dense overlap
17+
suppression, Python fallback patterns and allowlist matching have bounded work;
18+
typoed entity labels, invalid ranges and invalid locales raise explicit errors.
19+
Anonymizing pipeline operations imply scanning. Async guardrail decorators
20+
await their result, and non-string results raise TypeError.
21+
22+
LiteLLM scans nested tool/function arguments and prompt/input requests with a
23+
shared token assignment for the request. Repeated values reuse tokens, and
24+
existing markers do not collide. Streaming buffers the complete upstream
25+
response before emitting its first redacted chunk, including text and tool
26+
arguments split across deltas. This adds the full upstream completion latency
27+
to first output. Streams exceeding eight million text characters or 100,000
28+
chunks are rejected. Engine errors retain the configured `open` or `closed`
29+
failure policy. Image and binary parts remain opaque and receive no OCR.
30+
31+
The Claude Code hook asks for review, or denies according to configuration,
32+
when input exceeds its scan budget; it no longer silently permits an unscanned
33+
tail. Unexpected hook failures retain the documented fail-open policy.
34+
35+
Hash APIs honor the selected algorithm while preserving existing plain-hash
36+
formats. Engine APIs, the DataFog class and CLI retain SHA-256 with 12 hex
37+
characters by default. Deprecated top-level `datafog.process(method="hash")`
38+
retains MD5 with eight hex characters. The legacy Anonymizer model retains its
39+
existing full plain digest. Explicit `hash_key` adds full-length HMAC with at
40+
least 32 key bytes; omitting the algorithm in keyed mode selects SHA-256.
41+
Unkeyed hashes remain guessable deterministic pseudonyms, not protection
42+
against enumerating SSNs, phone numbers or other low-entropy values.
43+
44+
The minimum Pydantic version is 2.1. The `nlp-advanced` extra includes spaCy and
45+
permits Torch 2.x versions compatible with Core's GLiNER2 extra. Base installs
46+
show a CLI-extra installation hint instead of a missing-Typer traceback.
47+
Unused duplicate implementations are removed, source distributions include
48+
runnable tests and corpora, and CLI configuration output hides API keys.
49+
50+
Scheduled release jobs qualify candidates without publishing. Manual jobs
51+
default to dry runs, reject stale or occupied versions, and record immutable
52+
release refs before uploading artifacts.
53+
54+
The published Core 1.5.0 dependency passed installed-wheel qualification with
55+
this Python release, including the native bridge and compatibility contracts.
56+
The Python and Core versions are published independently.

‎docs/review-remediation.md‎

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# November 2026 review remediation
22

3-
This candidate addresses the review of DataFog 4.11.0 and Core 1.4.0. The
3+
DataFog 4.12.0 addresses the review of DataFog 4.11.0 and Core 1.4.0. The
44
review's suggested fixes were assessed against the local implementations;
55
regression tests cover the implemented behavior.
66

@@ -50,15 +50,26 @@ result = datafog.redact("mail jane@example.com", strategy="hash", hash_key=key)
5050

5151
## Release sequence and qualification
5252

53-
The Python candidate is 4.12.0. Its standalone CI uses the published Core 1.4
54-
minor series, pinned with `~=1.4.0`. Core 1.5.0 is prepared separately as a minor
55-
release correcting detection and transformation behavior through the existing
56-
APIs. Public APIs remain available and capability contract 1 is unchanged. Before
57-
shipping the combined fixes, publish the qualified Core candidate, then raise
58-
both Python dependency declarations to `~=1.5.0`, update the reviewed native
59-
contract/corpus, and run Python's installed-wheel and release qualification
60-
against the published artifacts. Source-candidate integration is additional
61-
evidence; it does not substitute for that post-publication gate.
53+
Python 4.12.0 declares `datafog-core~=1.5.0` in its base
54+
requirements and `rust` extra. Its reviewed native contract is
55+
[`tests/contracts/rust-1.5.0.json`](../tests/contracts/rust-1.5.0.json).
56+
Core 1.5.0 is published separately as a minor release with the detector and
57+
transformation safety fixes from the review, including bounded mask reveal
58+
and complete scanner coverage for automatic overlap handling. Public APIs
59+
remain available and both packages continue to use capability contract 1.
60+
61+
The actual PyPI Core 1.5.0 macOS ARM wheel was downloaded and verified against
62+
its registry SHA-256,
63+
`b3ebaca3c7751ec0288ffebec154ffbb6ba73e54b340f3c4e287e1946bbe5e87`.
64+
All five runtime package files, including the native library, exactly match
65+
the final qualified Core build from source `b183bede189ac35413120b995efcb9a29256b4b0`;
66+
only the build SBOM and RECORD differ. Installing that published wheel into
67+
the isolated Python 4.12 environment passes `pip check`, the installed native
68+
bridge smoke test, and the complete non-slow suite: 1,143 passed, 21 skipped,
69+
19 expected failures. The 726-pass real-model/native corpus qualification
70+
continues to apply through the verified byte-identical runtime payload.
71+
Hosted release gates independently qualify published Core on all required
72+
Python and platform combinations before publishing Python 4.12.
6273

6374
Scheduled Python jobs only qualify candidates. Manual `release.yml` runs default
6475
to `dry_run: true`; explicitly selecting false is the publication boundary.
@@ -82,7 +93,7 @@ build requirements are documented in Core's platform policy.
8293

8394
All 35 Python findings have a concrete resolution below. Core-owned fixes are
8495
separately tracked in Core's `docs/reviews/2026-11-core-findings.md`; their combined
85-
release still requires the Core publication and Python dependency update above.
96+
release includes the published-artifact qualification above.
8697

8798
| Finding | Resolution and proof |
8899
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

‎setup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Core lightweight dependencies only
2020
core_deps = [
2121
# Core minor releases may change findings; stay on this reviewed minor.
22-
"datafog-core~=1.4.0",
22+
"datafog-core~=1.5.0",
2323
"pydantic>=2.1,<3.0",
2424
"pydantic-settings>=2.0.0",
2525
"typing-extensions>=4.0",
@@ -89,7 +89,7 @@
8989

9090
extras_require = {
9191
# Retained for explicitness; the base install already pulls Core.
92-
"rust": ["datafog-core~=1.4.0"],
92+
"rust": ["datafog-core~=1.5.0"],
9393
"nlp": nlp_deps,
9494
"nlp-advanced": nlp_deps + nlp_advanced_deps,
9595
"ocr": ocr_deps,

0 commit comments

Comments
 (0)