Repository navigation
fix: cifra as colunas de risco e registra a exceção de alerts.riskLevel (#75) - #84
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.
Fecha #75.
O que muda
triage_sessions.resultRiskevisits.riskLevelBefore/riskLevelAfterem AES-256-GCM na borda ORM, pelo codecinfrastructure/crypto/encrypted_risk_level.dart. O nome do nível é preenchido até uma largura fixa, porque o AES-GCM preserva o tamanho do texto claro e"red"cifrado sairia mais curto que"yellow".triage_sessions.resultDisplay: era o rótulo derivado do risco e ninguém o lia.alerts.riskLevellegível, por decisão registrada no PRD (INV-04) e emspec/lgpd_data_audit.md§2.3: sóredé gravado, e a coluna sustenta os filtros SQL da INV-03 (escalonamento, guarda do expurgo, indicadores). O testeINV-04 (#75)detest/unit/red_alert_discard_paths_test.dartfalha se um construtorAlert(...)emlib/srcpassar a gravar outro nível.visits.pulle, nosync/syncLegacy/syncDeferred, receberejectedsó para ela, sem derrubar o resto do lote. Nunca um risco inventado (INV-02).Migrações (sem backfill)
20261016135918697(triagem) e20261016140159775(visitas) fazemDROP COLUMNdas colunas em claro. Umpg_data/antigo precisa ser recriado (verCLAUDE.md).Verificação
dart test -j 1no backend: 1367/1367;dart analyzesem erros nem avisos.flutter analyzelimpo emacs,patienteadmin.scripts/qa/e2e.sh --keepverde; no banco, os riscos gravados peloslive_checkestão em base64 de 48 caracteres uniformes.Adiados (Minor da revisão)
greensintético por SQL cru (bin/seed_e2e_fixtures.dart:162), fora do alcance do teste-guarda.resultRisk/resultDisplay:patient_risk_event.spy.yaml:2,docs/publicacao-google-play.md:601,spec/validation_report.md:114.decryptRiskLevellançaTypeError(nãoArgumentError) se o JSON decifrado não for texto.