The Yearly Update: Ideal for AI, Dangerous for AI
Every year-end, authorities publish new contribution rates, ceilings, tax brackets and allowances. Someone reads the publications, compares them with last year, enters the new values and hopes nothing was missed. Across several countries this is hundreds of values — and some of them change again in the middle of the year.
It is exactly the work AI agents are good at: reading long documents, comparing tables, entering values, checking them again. And it is exactly the work where an agent is a risk. A number from the agent’s training data, last year’s value or a figure from a secondary website looks just like the correct one. In payroll, a wrong rate is not a typo: it is a wrong payslip for every affected employee, every period, until someone notices.
So the useful question is not “can the agent do it?” but “what is the agent allowed to do, and who checks that it stays inside those limits?”
The short answer: the agent prepares, the tooling enforces, a person decides. The agent may collect sources, enter values with their source, check them and prepare every change. It may never confirm a value on behalf of a person — and the server does not offer a way to do so.
The Precondition: A Record for Every Value
Rules for an agent need something to check against. In PayrollEx, every statutory value in a country pack carries a provenance record, the lex entry:
- Source — the official publication, stored unchanged as evidence, with a fingerprint that detects any later change
- Location and quote — where in the document the value appears
- Legal basis — the statute or ordinance behind it
- Verification record — found automatically in the source, or confirmed by a named person where automation is not enough, optionally reviewed by a second person
Without such a record, “let the agent check the value” means “trust the agent’s value”. With it, every value the agent touches can be compared with the document it claims to come from. How a compliance owner uses these records in an audit is described in “Show Me Where This Number Comes From”.
Who Does What
MCP Server Pro adds a Regulator role to the MCP server. It works on the regulation files and their provenance records, not on employee data. The division of labour is fixed:
| Agent | Tooling | Person |
|---|---|---|
| Collects the official publications and stores them as evidence | Accepts web sources only within a size limit and never overwrites changed evidence silently | Decides which sources are authoritative |
| Enters new values with source and legal basis | Rejects a value without a declared source and a legal basis | — |
| Checks each value against the stored document | Writes automatic records only for strong matches; ambiguous matches go to the review list | Confirms what automation cannot: tables, ambiguous matches, values that need interpretation |
| Prepares the change of the regulation | Writes regulation values only after a preview of exactly that change | Reviews the preview and the changed files before committing |
| Runs the release check and lists what is open | Fails the gate on any untraced value, broken evidence or missing confirmation | Runs the regression tests and releases the pack |
A Yearly Update with the Agent
A guided procedure for the next cycle takes the agent and the consultant through the same steps every year, in every country:
- Prepare the next year. The agent creates next year’s data package from the current one. A preview lists every place that mentions a year, so nothing is carried over unnoticed. All values of the new package start as open — they are last year’s values until verified again.
- Collect the new sources. The new official publications are downloaded into the evidence folder of the package.
- Enter and update values. Each changed value is entered with its source and legal basis. Values that did not change are verified again against the new publication, not just carried over.
- Check against the documents. An automatic check looks for every value in the stored evidence. The agent reports what it could confirm and what it could not.
- Hand over the review list. Everything that needs a human decision is listed with the evidence file, the location and the quote. The consultant confirms these values — personally, with name and date.
- Freeze, preview, apply. The evidence is frozen, the preview shows exactly which regulation values change, and only then are they written. Open values are skipped.
- Gate and test. The release gate runs over the whole country pack. The team runs the regression tests against the new values.
Mid-year rule changes follow a second procedure: which entries are affected, whether a separate mid-year edition of the data is needed or an entry update is enough, and which tests move with the changed value.
Rules in the Tooling, Not in the Prompt
Instructions in a prompt are conventions. An agent can misread them, forget them in a long session, or be told otherwise. The rules of the Regulator role are checks in the server instead; the agent has no tool that bypasses them:
- One way in. Regulation values are written only by the apply step, from the provenance records. The server has no generic file write tool.
- No apply on stale evidence. Apply refuses when the frozen evidence is out of date or the records have validation errors.
- Preview before write. Apply, the preparation of the next year and every removal write only with the token of a preceding preview of the same input. A file that changed in between invalidates the token.
- Traceability on entry. New and updated values require a declared source and a legal basis.
- No silent loss. A value that backs a regulation value cannot be removed; a source still in use cannot be removed; evidence files are never deleted.
- No silencing. Every exception to a check needs a written reason, and every exception is reported in the response.
- No vouching. No tool writes a manual verification record, and the person’s name never comes from a tool argument. The release gate additionally rejects any manual record that names a configured agent identity as verifier or reviewer.
- No lost edits. A write is rejected if the record file changed since the agent read it.
The state of a data package is computed from the files on every call. An edit made by hand in the IDE or with the command line tools is therefore never out of sync with the server.
The Release Gate per Country Pack
Before a country pack is released, the gate runs over all of its data packages: the release check (every value traced, every main source official, no weak match accepted, every exception justified), the integrity of the frozen evidence, and a strict verification against the source documents. The result lists every finding per package, together with the review list of values that still need a person.
If anything is missing, the gate fails — and a failed gate is not a problem to argue away, but a work list. The gate does not interpret the law and does not replace regression tests: it checks the values, the tests check the calculation.
Safe Access for the Agent
Giving an AI agent access to regulation files is a decision for IT and security as much as for payroll. The Regulator role is built for that conversation:
- Off by default. The role has no access until it is granted explicitly; an update of an existing installation adds no file access.
- Confined to workspace folders. Every path is resolved below configured root folders and a repository mask. Paths leading outside, and links that escape, are rejected.
- No backend needed. The role works on files and runs without a connection to the payroll backend — locally, over stdio, with no network exposure except source downloads and URL checks.
- Clear startup errors. A misspelled permission or isolation setting stops the server with a message instead of silently falling back.
- No commits, no test runs. The server reports changed files; committing, importing and running regression tests stay with the team.
Open Foundation, Commercial Workflow
The provenance format, the command line tools and the read-only Regulator tools are part of the open-source Payroll Engine (MIT): anyone can list, inspect and check provenance records from any MCP client. MCP Server Pro adds what turns the records into a working process:
| Open source (read) | MCP Server Pro (write and workflow) |
|---|---|
| List data packages and their verification state | Collect sources, add, update and remove values, sources and exceptions |
| Read a single value with source, location and record | Write automatic records, freeze evidence, apply values, prepare the next year |
| Run the consistency and release check | Review list for human confirmation and release gate per country pack |
| Verify evidence and sources without writing | Guided procedures: yearly rollover, mid-year change, new data package, finding resolution, release gate |
What the agent does not do: It does not interpret the law, it does not confirm values, it does not commit, and it does not run regression tests. It saves the hours of reading, typing and cross-checking — the responsibility for a value stays with the person who confirms it, and that confirmation is on record.
See a yearly update with the agent
Walk through the next-year preparation of a PayrollEx country pack — from the new publication to the release gate.
Request a Demo →