Repository navigation
fix: unify SplitMind redaction source of truth - #10
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the first small step of SplitMind privacy routing round 2. It fixes the redaction contract base before touching provider prompt injection, restoration metadata, MCP, or larger orchestration.
The read-only review found two privacy paths:
PrivacyHandlergenerated the privacy reportTaskSplitterindependently performed the actual subtask redactionThey could disagree. For example,
TaskSplitterfalsely redacted手机号是as[REDACTED_NAME_CN_0], whilePrivacyHandlercorrectly reported only email + phone.Changes
TaskSplitternow usesPrivacyHandler.detect()as the source of truth for detection/redactionset(matches)id_card_cn->id_card,address_cn->address)PrivacyHandlerTests
Added coverage for:
name_cnredaction on手机号是privacy_reportand actual subtasksensitive_infoagree on basic typesValidation
Result:
Review notes:
~/pip/reviews/splitmind-privacy-routing-round2-readonly-2026-06-21.md~/pip/reviews/splitmind-redaction-contract-base-2026-06-21.mdNot included