Repository navigation
Conversation
…, opção D) Rascunho: testes ainda não executados localmente (sem Python na máquina); depende do CI e da revisão. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… ponto de verificação (#46) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Vinny1313
added a commit
that referenced
this pull request
Nov 9, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Vinny1313
marked this pull request as ready for review
November 9, 2026 14:25
Vinny1313
added a commit
that referenced
this pull request
Nov 9, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Refs #46. Rascunho: nada foi executado ainda.
O que muda
Na partida fria (processo novo, sem cache), a primeira gravação verificava a trilha inteira sob o lock exclusivo (~1 s com 100 mil entradas; com vários processos nascendo juntos, fila e lock expirado). Agora a trilha tem um arquivo ao lado,
<trilha>.checkpoint, com contagem, último hash,kide o SHA-256 dos bytes já verificados, assinado por HMAC (com prefixo de domínio, para não se confundir com entrada da cadeia). A partida fria calcula o SHA-256 do trecho antigo, compara com o ponto e verifica só o que veio depois.O que NÃO muda
verificar()eresumo()continuam percorrendo a trilha inteira.CHECKPOINT_INTERVALO) e nunca levanta erro.Limites de segurança (a documentar no ADR 0002)
Estado e riscos
engenharia/tests/test_audit_checkpoint.py; as contagens esperadas foram calculadas à mão e podem precisar de ajuste. O CI é a primeira execução._avancar, de propósito, para não alterar código já revisado; unificar depois.benchmark_auditoria_contencao.pyganhou--sem-ponto; a medição antes/depois está planejada para o computador do estágio.🤖 Generated with Claude Code