Perspectives

Brazil’s tax lion opened its code

Published November 26, 2026, 4-minute read

Sculpture of a matte black lion on top of a black rock, on a cream background; the GitHub logo is carved into the face of the rock, with the bottom of the carving lit in magenta.

On November 13, Brazil’s official gazette published an order from the Federal Revenue Service, the tax authority that Brazilians nickname “the Lion”, authorizing the release, as open source, of three tools of the consumption tax reform: the calculator for the new CBS, IBS and Selective Tax under the regular regime, the calculator for Simples Nacional, the simplified regime for small businesses, and the generator of the auxiliary document for the service invoice. All three are on GitHub, the platform where programmers publish and review code, under the MIT license, which lets anyone use, copy and adapt them.

For taxpayers, nothing changes right away. There is no new obligation, and the calculation was already available on the official platform since 2025. What is new is that the rule that will define how much each company pays on what it sells can now be opened, read and tested by anyone.

What happened in one week

Together, the three repositories passed 2,600 stars (GitHub’s version of a bookmark) and 750 copies made by third parties for study or adaptation. Versions in other programming languages appeared, along with simulators for small businesses and tables synchronized every day with the official calculator.

The reviews came too. Between November 17 and 26, outside developers opened 38 problem reports, known as issues. Some deal with installation instructions that do not work. Others deal with the rule itself.

A tax that does not exist yet. One report points out that one of the routines adds the Selective Tax to the 2026 tax base, even though the code itself says this tax only starts in 2027. Another routine ignores the amount on the same invoice, and the two reach different bases.

The daycare that pointed to vinasse. Another report analyzed the table that links each service code to the section of the law that supports it. According to the author, in 81 of 82 rules the pointer lands on the wrong item. In the example given, the rule for early childhood education points to the item “vinasse”, a sugarcane byproduct, in another annex, one line before the right item.

The invoice that changes in December. In the service invoice generator, one report shows that four fields of the new layout, which goes into production on December 1, would no longer be read and would come out blank on the document.

So far, all of these reports are open and none has been confirmed by the Federal Revenue Service. They are findings from the community, made with method and citing the exact piece of code. The code has already received an update since then.

Transparency that can be checked

Many organizations say they are transparent. Few publish their material in a way that lets someone else check what was said. In a closed system, a table error may show up only as a rejected invoice or an odd amount at the end of the month. With the code in plain sight, the problems reported appeared within days, described in detail, in a public place where anyone can follow the fix.

This has a cost for whoever publishes: exposing the work means accepting to be corrected in public, and the first week was one of corrections. In return, an error has a better chance of being found before it reaches companies’ invoices.

Companies also make promises the public can check: deadlines, price, origin, impact. If someone is going to check, it is worth knowing beforehand what that person will find.

The question for your company

The reform will affect prices, invoices and, in many sectors, the conversation with customers. Developers are already reading the code. Inside the company, someone needs to turn all of this into decisions and messages: who decides what changes in the price list and how it will be explained to buyers, who follows the layout changes and checks that the invoice coming out of the system is right, and who answers when a customer asks why the amount changed.

Media Clorians is a services company and issues invoices like any other, so it is going through this transition too. Tax advice is your accountant’s job. Helping a company explain a change clearly, before customers are caught off guard, is ours. If you want to talk about it, get in touch.

Sources


Keep reading


A good conversation doesn't have to end at the last paragraph.

If this topic is also part of your company's challenges, we can keep the conversation going.