Skip to content

TN-57749 - Future-proof Python SDK PII configuration - #127

Merged
Travmatth merged 2 commits into
mainfrom
codex/future-proof-pii-config
Aug 26, 2026
Merged

TN-57749 - Future-proof Python SDK PII configuration#127
Travmatth merged 2 commits into
mainfrom
codex/future-proof-pii-config

Conversation

@Travmatth

@Travmatth Travmatth commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Bumps the Python SDK version from 3.21.0 to 3.22.0.
  • Preserves unrecognized PII labels decoded from Solar dataset settings and permits those server-supplied labels when the settings are copied back to Solar.
  • Accepts built-in generator-config labels and PII-state values case-insensitively, then sends Solar canonical casing (for example, name_given: redaction becomes NAME_GIVEN: Redaction).
  • Keeps validation for unknown labels that a caller supplies directly, so ordinary typos still fail locally.

Why

Solar can introduce PII labels independently of the SDK release cadence. Previously, an SDK that decoded a newer server configuration would reject that same configuration when a caller copied or edited a dataset. Case-sensitive configuration also made integrations brittle despite Solar using canonical labels.

Validation

  • pytest tests/tests/test_future_pii_compatibility.py tests/tests/test_pii_type_catalog.py -q
  • ruff check tonic_textual/generator_utils.py tests/tests/test_future_pii_compatibility.py

@Travmatth
Travmatth marked this pull request as ready for review August 26, 2026 16:03
@Travmatth
Travmatth merged commit bfe1e1c into main Aug 26, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants