← All posts

How do you keep an AI agent up to date when tax rules change?

By Sebastian Grebe · · 6 min read

Don't put the rules in the model. Keep tax rates, thresholds and exemptions as dated entries in a table the agent looks up, and let the model do the reading and the matching. Then a rule change is an edit to one entry with a start date, not a retraining.

As of 19 November 2026. Rates and dates below come from the Malaysian Ministry of Finance and IRAS pages linked in the text. Those pages are the authority, not this post. The rest is a design question we are working through, not a measured result.

How often do the rules actually change?

More often than most people plan for, and with less notice.

Take one line on a Malaysian supplier invoice: rent for a piece of equipment. On 9 June 2025 the Ministry of Finance announced that service tax would be extended to leasing or rental, construction, financial services, private healthcare, education and beauty services from 1 July 2025. That is three weeks' notice.

On 27 June, four days before the start, the ministry revised the plan. Beauty services were dropped. The registration threshold for leasing or rental and for financial services went from RM500,000 to RM1 million. The rate for leasing or rental was 8%.

Then, in a release dated 5 January 2026, the rate for rental or leasing was cut from 8% to 6%, effective 1 January 2026. The start date is four days before the date on the release. The same release raised the sales threshold under which small-business tenants are exempt, from RM1 million to RM1.5 million.

So that one invoice line has had three right answers in seven months: outside service tax, then 8%, then 6%. Which one is right depends on the date, and on thresholds and exemptions that also moved.

Singapore changes less often, but a change is never just one date. When GST went from 8% to 9% on 1 January 2024, IRAS's transitional rules looked at three events: when the invoice was issued, when payment was received, and when the goods were delivered or the services performed. An invoice issued in January 2024 for something fully paid in 2023 was still an 8% invoice.

Why not just retrain the model?

You can teach a model the new rule by training it on new examples. I think that is the wrong tool for this job, for three reasons. This is reasoning, not a measurement.

Timing. The examples above gave businesses between three weeks and minus four days. Collecting examples, training and testing a model takes longer than that. And on the first day of a new rule there are no real invoices under it to learn from.

Old cases don't go away. An invoice dated December arrives in February. A credit note refers to an invoice from last year. The agent has to apply the rule that was in force for that supply, not the newest one. A model taught the new rate still has to remember the old one and know which applies. A table with a start date and an end date on every entry does that without being taught.

The auditor's question. When someone asks why this line was checked at 6%, "the model learned it" is not an answer. "The entry effective 1 January 2026, taken from the ministry's release of 5 January 2026, entered by this person on this day" is an answer.

What goes in the table, and what stays in the model?

The line I would draw: what the law changes goes in the table. What reading requires stays in the model.

In the table: the rate, what it applies to, the threshold, the exemptions, the date it starts, the date it ends, a link to the official source, and who entered and approved it. Someone on the finance side can read it and check it against the source. That matters more than it sounds. It means the people who are accountable for the tax treatment can see the rule the agent uses.

In the model: reading the document in whatever language it arrives in, working out what a line actually describes, matching the supplier and the order, noticing that something is missing. None of that changes when a rate does.

The agent then works the way a careful clerk does. It reads the invoice, looks up the rule for that kind of supply on that date, checks the invoice against it, and decides from a fixed list or hands the case to a person. That is the same pattern we describe on how it works.

Where this stops working

There is one place where a table is not enough, and it is the place to be honest about.

A new rule can bring in a category the model never had to tell apart. Before July 2025 nobody checking Malaysian service tax needed to decide whether a line was "leasing or rental" or a service that happens to come with equipment. After it, that distinction changes the tax. A new table entry does not help if the model cannot tell the two apart.

That part may well need new examples and new training. Until it is shown to work, the right behaviour is the dull one: cases that touch the new rule go to a person. A new rule is, in effect, a new decision type, and a new decision type starts in a parallel run like any other.

One model per country, or one for all?

If the rules live outside the model, this question gets smaller. The tables are per country; there is no sensible way to share them.

The reading is less clear. An invoice is an invoice in Johor and in Jurong, but the languages, layouts and habits differ. My guess is one model for reading and separate rule tables per country. It is a guess. The way to settle it is to run the same past cases through both set-ups and compare them decision type by decision type.

What we have not built or tested

All of the above is an argument about design. We have not measured rules in a table against a retrained model. We have not compared one model per country with one shared model. I have no numbers to give you, so there are none in this post.

The test I would run is simple to describe. Take past invoices from both sides of a real rule change, and 1 July 2025 and 1 January 2026 are convenient ones, including the invoices that arrived late. Then count how often each set-up applies the rule that was in force for that invoice, and how often it hands over when it should. It is the same idea as measuring any process on past cases with known outcomes before building.

One thing e-invoicing will not do is solve this for you. As an earlier post explains, the validation checks the document, not whether the treatment on it is right.

What to ask a vendor

If you are buying something that checks tax on invoices, four questions get you most of the way:

  • Where does the tax rate live: inside the model, or in a table I can read?
  • When a rate or threshold changes, who updates it, how fast, and can I see the history?
  • What happens to an invoice dated before the change that arrives after it?
  • What does the agent do when it meets a case the rules don't cover?

The answer to the last one should be: it hands the case to a person.

Questions

Do you have to retrain an AI agent when a tax rate changes?
Not if the rate is kept outside the model as a dated entry the agent looks up. Then the change is one new entry with a start date. Retraining may still be needed when a new rule brings in a category the model cannot yet tell apart.
How quickly do tax rules change in Malaysia and Singapore?
Quickly. Malaysia brought rental and leasing into service tax at 8% on 1 July 2025 and cut the rate to 6% from 1 January 2026, in a release dated 5 January 2026. Singapore's GST went from 8% to 9% on 1 January 2024.
Why do effective dates matter for an AI agent that checks invoices?
Because the rule that applies is the one in force for that supply, not the one in force today. Invoices arrive late, and Singapore's rules for the 2024 rate change look at the invoice date, the payment and the delivery.
Has SG Systems measured this against retraining?
No. This is a design position and an open question. We have not measured rules in a table against a retrained model, or one model per country against one shared model.

Pick one process. Book the call.

Within three weeks of the first call you know whether this process is worth automating, by how much, and what it costs.