AI agents for compliance checks: flagging rules, not making decisions

Updated · 5 min read

Why the rulebook has to be written down

An agent can check only what is written. A rule that lives in a senior reviewer's memory cannot be applied consistently, and it will be missed on the day that reviewer is away. Turn each rule into a short statement with its source, the scope it covers and examples of a pass and a fail. The agent can then apply the same test every time.

Each rule card should carry the same few fields so that every check reads the same way.

  • A rule identifier and the source document it comes from.
  • Scope: which document types, channels or product lines the rule applies to.
  • What a breach looks like, with one real example.
  • What a pass looks like, so the agent does not flag harmless wording.
  • The owner of the rule and the date it was last reviewed.

How the check works: retrieve, compare, flag, cite

A sound compliance agent follows the same four steps. It loads only the rules that apply to this type of document, rather than the whole rulebook each time. It compares each passage with those rules and marks the passage as clear, possible breach or not covered. For every flag, it cites the rule identifier and quotes the exact text that triggered the flag.

The output then goes to the reviewer with the suggested change. The reviewer accepts, edits or rejects it, and the decision is logged with the rule version that was in force at the time.

Flags, not verdicts

Treat every output as a flag, never as a finding. A model can misread a clause, miss an exception that appears elsewhere in the document, or flag wording that is perfectly acceptable. Measure the agent on past documents with known outcomes, including ones that were approved and ones that were rejected. Count the missed issues and the false alarms separately, because both cost you something.

Do not let the agent mark anything as compliant on its own. A clean run should be labelled as no flag raised, which the reviewer knows is not an approval. Reviewers stop trusting a tool that cries wolf, so keep the false-alarm rate under watch from the first week.

Keeping the rulebook current

Rules change, and a stale rulebook gives false comfort. Assign an owner to each rule, set a review schedule, and define what happens when a regulator publishes new guidance. Check current requirements on the regulator's official website rather than relying on a summary, including this one.

Version every rule. Then a past check can always be explained by the rule that applied at the time, which matters when a counterparty or an authority asks how a decision was reached.

Mistakes to avoid

Most failures come from the rulebook and the process, not from the model. Review these before you launch:

  • Treating a clean run as legal approval.
  • Writing vague rules such as “use appropriate language”, which the agent cannot test consistently.
  • Sending confidential contracts to a model provider without checking that provider's current data terms.
  • Letting the rulebook drift, so the agent checks against out-of-date text.
  • Skipping the audit log, which you need when someone asks how a flag was handled.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei. We build AI agents on Claude and on OpenAI models, and we choose the model for each task on cost, speed, quality and where the client's data has to stay. Compliance documents often hold confidential terms, so that last point usually decides the design more than any other.

Work starts with a scope step, about one week at a fixed price, that produces a written plan and a firm quote. Software follows in weekly releases, and the monthly run plan keeps the agent up to date as the rules it depends on change.

Questions

Can an AI agent approve a contract or a marketing claim as compliant?
It should not. The agent can flag passages that may breach a written rule and cite that rule. A qualified person decides whether the flag is a real problem and whether the document can go out. Label a clean run as no flag raised, never as an approval.
What makes a good compliance rule for an agent?
A rule the agent can test. Write what the rule covers, what a breach looks like with an example, what a pass looks like, and where the rule comes from. Vague instructions such as use appropriate language cannot be checked consistently, so rewrite them before they go in.
How do I know whether the agent is accurate enough?
Test it on past documents with known outcomes, including approved and rejected ones. Count missed issues and false alarms separately. Review the results with the people who will use the tool, because one that raises too many false alarms will be ignored.
Do I still need to check the current law myself?
Yes, and the agent cannot do that for you. Read the official text on the regulator's website, and take advice from a qualified adviser on your specific case. Rules differ by market and change over time, so version each rule and record which version was used for each check.
Can a model provider see the contracts I send through the agent?
When you send a document to a model, the provider processes it. Check that provider's current data terms and where it processes data, and confirm your contracts allow that use. Some clients need terms that limit how long data is kept or keep processing in a specific region.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutAI agents for compliance checks: flagging rules, not making decisions