Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Chore/roundtrip property and threadsafety note#10

Merged
Tatarinho merged 2 commits into
mainfrom
chore/roundtrip-property-and-threadsafety-note
Apr 22, 2026
Merged

Chore/roundtrip property and threadsafety note#10
Tatarinho merged 2 commits into
mainfrom
chore/roundtrip-property-and-threadsafety-note

Conversation

@Tatarinho
Copy link
Copy Markdown
Owner

No description provided.

Michal Piotrowski added 2 commits April 22, 2026 19:19
Hypothesis-driven tests covering the top-level contract users rely on:
deanonymize(anonymize(x).text) == x. Two strategies — arbitrary safe
text, and randomly-interleaved valid PII samples — extend hypothesis
coverage past the validator layer to the full anonymize/deanonymize
pipeline.
Spell out that Mapping (and therefore Shield) is not thread-safe:
token_for mutates dicts and a counter without locking. Adds a paragraph
to the Mapping docstring and a new 'Concurrency and thread safety'
section to docs/limitations.md describing the one-Shield-per-thread
and external-lock workarounds.
@Tatarinho Tatarinho merged commit c09f073 into main Apr 22, 2026
7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant