Skip to content

test: compare epidemiology with pinned consumer dependency - #36

Open
BaruqueRodrigues wants to merge 6 commits into
codex/pr9-minimum-history-contractfrom
codex/pr10-epidemiological-equivalence
Open

BaruqueRodrigues wants to merge 6 commits into
codex/pr9-minimum-history-contractfrom
codex/pr10-epidemiological-equivalence

Conversation

@BaruqueRodrigues

@BaruqueRodrigues BaruqueRodrigues commented Oct 22, 2026 •

Copy link
Copy Markdown

Compare candidate epidemiological calculations against immutable historical AlertTools function bodies and a pinned principal-consumer dependency, using unique natural keys and explicit numeric tolerances. Preserve the historical snapshots rather than regenerating expected values from the candidate.

Add a real Bayesian reference scenario with the historical fitting budget of four threads. At this stack stage the mandatory INLA runner requires three scenarios, without depending on the consumer test introduced by #37. Keep comparison CSVs, source identities and environment evidence.

Validation already performed locally: 393 focused expectations passed with zero failures/warnings; four optional INLA cases in the general suite were skipped and validated separately by the mandatory native runner (three scenarios, seven expectations, zero skips/failures/warnings). The historical comparison uses the same available engine on both sides with explicit seed/dependency adaptation, not the old national deployment image. Cross-thread posterior interval differences remain documented in the concurrency benchmark; this is not production migration approval.

Stacked on #35.

@esloch esloch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BaruqueRodrigues.

Aqui temos um avanço importante na comparação com a versão utilizada pelo AlertaDengueAnalise. Os testes identificaram uma divergência real no formato do histórico, que foi corrigida, e as 232 métricas comparadas coincidiram.

A ressalva continua sendo o nowcasting bayesiano, que não está coberto por essa comparação. Precisamos manter essa validação como requisito antes da migração do consumidor, junto aos testes reais de concorrência solicitados no PR #34.

@BaruqueRodrigues
BaruqueRodrigues force-pushed the codex/pr9-minimum-history-contract branch from 2f5ad3e to c6696b3 Compare November 3, 2026 15:50
@BaruqueRodrigues
BaruqueRodrigues force-pushed the codex/pr10-epidemiological-equivalence branch from 1534d94 to cdec43b Compare November 3, 2026 15:51

@esloch esloch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BaruqueRodrigues, ve should update the documentation to reflect this validation while keeping the full operational comparison as a migration requirement.

I maintain my approval. This PR depends on #35, so let's follow the merge order and rebase onto master.

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.

2 participants