Field notes · Philosophy

AI agents that propose, never mutate

We use AI heavily — for compliance scanning, payroll readiness checks, recommendation generation. We never let it mutate state directly.

Published

Every global-employment vendor talks about AI now. Most of them are vague about what their AI actually does.

We're not. Here's the rule.

AI agents in Asure produce recommendations. They never mutate state directly.

Every recommendation requires a human-approved action to become a mutation. Every approval writes an audit event. The agent's reasoning, sources, and confidence are attached as evidence on the recommendation.

Why this matters

When an EOR-class platform tells you "our AI flagged a compliance issue and rolled back the deployment," you should be alarmed, not reassured. AI hallucinates. AI follows shortcut paths. AI sometimes confidently produces output that's wrong in ways that look right.

In our category, the consequences of a bad AI mutation are concrete:

  • A misapplied tax bracket → underpaid taxes → penalty + back-pay
  • A mishandled termination → labour-court exposure in a country whose rules you don't know
  • A miscalculated benefits enrolment → coverage gap → real person can't see their doctor

We don't accept this risk. So we built the constraint into the architecture.

How it works in practice

When our compliance agent scans your payroll readiness and finds an issue — say, a German employee's social security number is in a malformed shape that won't pass the next return — it does this:

  1. Produces a recommendation row with: the issue (malformed_ssn), the resource (employee_xyz), the suggested fix (prompt user for correction), the evidence chain (which check fired, which source paragraph backs the format requirement), and a confidence score.

  2. The recommendation appears in /app/recommendations for an operator to review.

  3. The operator clicks "send for approval" — which creates an approval_request. Now another human is in the loop.

  4. The approver decides. If they approve, an audit event is written and the underlying action is queued. If they reject, the recommendation is dismissed (also an audit event).

  5. The agent never touches the employee record directly. Even after approval, the mutation runs as a human-initiated action, with the recommendation/approval chain attached as source.

What we DO use AI for

  • Anomaly detection — flagging payroll runs that look statistically unusual for review
  • Compliance triage — surfacing the most-likely-relevant statute paragraph for an operator's question
  • Summarisation — turning a 47-row audit chain into "here's what happened" in plain English
  • Recommendation drafting — generating the suggested action + evidence package an operator reviews

What we don't do is let the agent be the actor on a write.

Reflection

The line we draw — agents propose, humans approve — is older than current AI. It's the same line we draw with the country-authority pipeline: the pipeline produces evidence; humans approve before it shows up as a citation in the product.

The discipline is the same. Software produces options. Humans pick.

See the audit trail explainer for how agent-originated mutations look in the chain, and /proof for the Playwright specs that drive the recommendation → approval → mutation flow end-to-end on every commit.