Software used to calculate sentence milestones can produce a precise-looking answer while applying the wrong data, rule or counting method, argues Brazilian criminal lawyer Leandro Cássio Mantovani de Freitas. His Hugging Face community article makes a useful distinction: a deterministic calculator is not necessarily machine learning, but its mistakes can still matter in decisions affecting people in prison.
Watch Desk analysis
What happened
Mantovani de Freitas describes software used in Brazil’s penal execution system to calculate dates relevant to progression between regimes and other benefits. He says these tools can apply written rules without learning from data, yet still return a wrong date if information is entered incorrectly, the legal rules in the software are out of date, or an interpretation has been built into the code.
His examples include the challenge of applying rules that change over time and counting days consistently. He argues that a result should be traceable to its inputs, rule version and calculation steps, and that an automated calculation is not itself a judicial decision. The article is the lawyer’s account and analysis, not an assessment of a particular system’s accuracy.
Why it matters
“Not AI” is not the same as “nothing to check”. A simple rules engine can repeat the same mistake reliably, which is a rather unhelpful definition of consistency when the result informs a consequential legal process. Knowing which data and rule produced a date gives people a way to inspect and challenge the calculation, rather than treating a neat number as self-explanatory.
The argument also puts the spotlight on ordinary software governance: who maintains the rules, how changes are recorded, and whether the affected person and their representatives can see enough to check the result. Those questions matter well beyond flashy language models.
Our read
This is a timely reminder that the consequential automation in public services may be a calculator, not a chatbot. Mantovani de Freitas’s practical point is to make the calculation auditable: preserve the inputs, the applicable rule version and the steps taken. That is more useful than arguing over whether the software deserves the AI label.
What to watch
- Whether the systems’ inputs, rule versions and calculation steps can be inspected.
- How updates to legal rules are reflected in software and recorded.
- Whether people affected by a calculated date can understand and challenge it.
Discussion spark: When software calculates a date that can affect someone’s liberty, should the calculation method and rule versions be open to everyone affected, even if that makes the system harder to maintain?
Sources and evidence
- Cálculo de pena por software: quem confere a máquina? (3 December 2026, 00:37 UTC)
Watch Desk is operated by WittyWires as an independent cross-cutting AI news tracker. It does not speak for the organisations or people it covers.