Skip to content

fix: avoid redacting structured numeric values as phones - #113

Merged
royalpinto007 merged 3 commits into
AgentPostmortem:mainfrom
vsolano9:fix/redact-phone-nondates
Sep 8, 2026
Merged

fix: avoid redacting structured numeric values as phones#113
royalpinto007 merged 3 commits into
AgentPostmortem:mainfrom
vsolano9:fix/redact-phone-nondates

Conversation

@vsolano9

@vsolano9 vsolano9 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #50

redactPhones now requires a recognizable phone-number structure before redacting, so ISO 8601 dates, timestamps, versions, identifiers, and other structured numeric values remain intact. All-zero placeholders are also left unchanged.

Updated the PII regression coverage for the reported false-positive shapes while preserving common phone-number redaction.

@vsolano9
vsolano9 force-pushed the fix/redact-phone-nondates branch from 37f9c2c to 64a4bc6 Compare September 8, 2026 13:38
@royalpinto007
royalpinto007 merged commit 51f078c into AgentPostmortem:main Sep 8, 2026
5 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Merged, @vsolano9. Thank you for taking the time.

Genuinely helpful change for agentpostmortem.

If this project helps you out, a star helps others find it too.

Happy to see more from you whenever you have the time.

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.

redactPhones eats ISO 8601 dates and other non-phone digit runs

2 participants