fix(dlp): emet les WatchEvents pour les actions DLP de sanitization#121
Merged
Destynova2 merged 4 commits intodevelopfrom Apr 10, 2026
Merged
fix(dlp): emet les WatchEvents pour les actions DLP de sanitization#121Destynova2 merged 4 commits intodevelopfrom
Destynova2 merged 4 commits intodevelopfrom
Conversation
added 4 commits
April 10, 2026 22:45
…ans bench Regroupe les 7-9 parametres partages entre cmd_bench, measure et run_escalation dans une struct BenchContext. Extrait la boucle de polling health dupliquee 3 fois dans un helper wait_for_proxy_ready. Supprime le #[allow(clippy::too_many_arguments)] devenu inutile.
Factorise le Span de timestamp duplique 9 fois dans format_event dans un helper timestamp_span, eliminant la violation DRY la plus visible du module watch TUI.
Factorise les deux blocs de merge imbriques (tool_use dans assistant, tool_result dans user) de transform_responses_to_canonical en helpers merge_tool_use_into_assistant et merge_tool_result_into_user. Reduit la profondeur max de 11 a 7.
sanitize_request_checked retourne maintenant Vec<DlpActionReport> au lieu de (). scan_dlp_input emet les WatchEvents pour les actions non-bloquantes via emit_dlp_events.
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.
Corrige la derive contractuelle : sanitize_request_checked retourne Vec, scan_dlp_input emet les WatchEvents pour les actions non-bloquantes (redact, canary, warn). 728 tests verts.