Brazil's Receita Federal Posts Tax Calculator Under MIT With 16 Open Issues
Software / news
Brazil's Receita Federal Posts Tax Calculator Under MIT With 16 Open Issues
The agency published three repositories on Nov. 16 for the new consumption taxes, and outside developers had filed bug reports against the first within days.

Brazil's federal tax authority, the Receita Federal, published the source code of its tax calculator on GitHub under the MIT licence, announcing it on Nov. 16. By Nov. 21 the main repository carried 16 open issues, several of them reporting wrong calculation results.
The agency said it was the first time it had officially released a software project. The release was authorised by Portaria Cotec nº 342 of Nov. 12, published in the Diário Oficial da União on Nov. 13, according to the agency's announcement. The Portaria records hashes of the initial repository versions so the code can be checked against what was authorised.
Three repositories, two languages
The calculator implements the rules for the CBS, the federal consumption tax created by Brazil's consumption tax reform, along with the IBS and the Imposto Seletivo. It was developed with Serpro, the federal data processing company. The code had been downloadable from the Plataforma CBS since 2025; GitHub is new.
| Repository | Language | Stars | Forks |
|---|---|---|---|
| calculadora-rtc-regime-regular | Java | 860 | 218 |
| calculadora-rtc-simples-nacional | Java | 643 | 163 |
| calculadora-rtc-gerador-danfse | Go | 514 | 148 |
Figures are from the GitHub API on Nov. 21. The regime-regular README describes a REST API on Java 25, Spring Boot 4.1.2, SQLite and Flyway. Its POST /regime-geral endpoint calculates CBS, IBS and Imposto Seletivo for an operation, and a separate endpoint returns per-item errors instead of failing the whole operation. The third repository generates the PDF auxiliary document for electronic service invoices from XML.
GitHub lists all three as created on Oct. 13, a month before the Portaria. The latest commit to the main repository is release 1.7.2, merged Nov. 19.
What outside developers reported in the first week
The agency says the tool is meant to be built into existing billing and compliance systems, not to replace them. Tecnoblog added that MIT still attaches conditions to redistribution.
The issue tracker shows how much of that integration work falls on users. Issue 15, filed Nov. 19, says the repository sits at database base V0059, dated Sept. 30, while the production calculator runs V0073, dated Nov. 9, and that downloads of the offline package return a 404. Issue 17 asks the agency to document the licence and redistribution terms of that offline package.
Two other reports concern results. Issue 19 says the NBSA_ANXO_ID field points at the wrong annex item in 81 of 82 NBS rules. Issue 20 says the CBS calculation adds the Imposto Seletivo in 2026, although its start year is 2027. Issue 10 reports a R$ 0.01 difference between the IBS total and the sum of its state and municipal parts, which the reporter traces to rounding that happens only at serialisation. The Terminal did not run the code, so these are the reporters' claims, not confirmed defects.
Issue 4 asks for a SECURITY.md with a private channel for vulnerability reports.
What to watch next
A company that adopts the code has to track two moving targets: the legal tables, which the production service updates faster than the repository, and the licence terms of the offline package. The Receita Federal did not say in its announcement how often the repository will be synced to production. Release 1.7.2 landed three days after the announcement, which sets the first data point.
Related open-source reporting on The Terminal: Postgres 19's REPACK limits and Vim Classic 8.3.1's backports.
Sources
More in Software
- 01OpenSRE Hits 13,884 Stars After Repositioning Toward CI/CD FailuresThe Apache-2.0 agent is labelled public alpha, ships a dated release almost every day, and sends analytics and crash reports unless users set an environment variable.
- 02Microsoft 365's 1,430-Minute Outage Traces to a July Windows ChangeMicrosoft's preliminary report blames a latent lock-contention defect, a Teams failover and 14 percent of gateway capacity already offline, and customers have until the end of December to claim service credits.
- 03Firecrawl's Alexandria Data Library Is Missing From Its 205,955-Star RepoThe AGPL-3.0 repository covers scraping and a self-hosted server, while the 550-provider data library and search run on Firecrawl Cloud.
- 04Vim Classic 8.3.1 Backports Patches to 8.2.3237 and Drops Python 2The AI-free Vim fork's second release is signed by Drew DeVault, and its announcement does not say which CVEs the new patches fix.