keepcalculator

06 Numbers and Powers

Auditing AI Agents in Local Government

Card No. 06·52031 · Updated · Standard formula, shown below

This guide explains how to set up a practical monitoring and auditing process for AI agents used by local government departments. You will learn what to track, how to review decisions, and how to keep a clear record for accountability. The steps are designed for staff who manage or oversee AI tools but are not necessarily data scientists.

What You’ll Need

  • An inventory of all AI agents in use (name, vendor, purpose, data sources)
  • Access to system logs or a way to request them from vendors
  • A log or spreadsheet to record audit results
  • Approval from your IT or legal department to access relevant data
  • Basic understanding of what the AI agent is supposed to do (its intended outcome)

Step-by-Step

  1. Create an inventory of all AI agents. List every AI system your department uses. Include the vendor, the version, what it does, what data it uses, and who is responsible for it. This is your baseline. Update it whenever a new agent is added or changed.
  2. Define what “good” looks like. For each agent, write down the expected outcome. For example, if an AI sorts permit applications, “good” means it correctly identifies incomplete applications 95% of the time. Use measurable criteria where possible.
  3. Set up logging. Make sure the AI agent logs every action it takes: what input it received, what output it produced, and when. If the vendor does not provide logs, ask for them in writing. If you cannot get logs, that is a red flag—consider not using the agent.
  4. Schedule regular reviews. Decide how often to audit. Monthly is typical for high-impact systems (e.g., those that affect benefits or permits). Quarterly is fine for low-risk tools. Put the schedule on a shared calendar.
  5. Review a sample of decisions. For each audit, pick a random sample of the agent’s outputs—say 20–50 cases. Manually check whether the output was correct. Record any errors and what caused them (bad data, wrong logic, etc.).
  6. Check for bias or unfair patterns. Look at the sample results by demographic group if the agent makes decisions about people. For example, does it approve permits at a lower rate for one neighborhood? If you see a pattern, investigate further.
  7. Verify data quality. Ensure the data going into the agent is accurate and up-to-date. Check for missing fields, outdated records, or duplicates. Poor data is a common cause of AI errors.
  8. Document everything. Write a short audit report for each review: what you checked, what you found, what you changed. Save it in a shared drive. This creates a trail that shows you are being accountable.
  9. Act on findings. If you find errors, fix them. That might mean updating the data, retraining the model, or adjusting the rules. If the agent is consistently wrong, stop using it until it is fixed.
  10. Report to stakeholders. Share audit results with your department head, and if required, the public. Transparency builds trust. Even a simple summary on the city website is better than nothing.

Common Mistakes

  • Only auditing after a complaint. Reactive auditing misses problems that have been silently occurring. Stick to your schedule.
  • Not checking the data. AI is only as good as its inputs. If the data is wrong, the output will be wrong, no matter how good the model is.
  • Ignoring the human factor. Staff may over-trust the AI and stop double-checking. Remind them that the AI is a tool, not a replacement for judgment.
  • Keeping audits secret. If you never share results, people assume you have something to hide. Publish summaries where possible.
  • Not updating the inventory. When a new AI tool is added, if it is not logged, it will never be audited.

Tips

  • Start small. Audit one agent thoroughly before expanding to all.
  • Use a standard template for audit reports to keep them consistent.
  • Involve a diverse team in reviews—different perspectives catch different issues.
  • Keep a list of “known issues” and track how long they take to fix.
  • If you use a vendor, include audit rights in the contract. That way you can demand logs and even access to the model.
  • Consider using an external auditor for high-stakes systems. An outside eye can be more objective.

Troubleshooting

You cannot get logs from the vendor. First, check your contract. If it does not require logs, ask the vendor to provide them as a courtesy. If they refuse, escalate to your legal department. In the meantime, use manual testing: feed the agent known inputs and compare outputs to expected results.

The AI agent is making errors that you cannot explain. This often points to a problem with the training data or the model itself. Contact the vendor for support. If the vendor is unresponsive, consider whether the agent should be used at all.

You find bias but do not know how to fix it. Start by documenting the bias clearly. Then, if the agent uses historical data, that data may contain past biases. You might need to adjust the data or the algorithm. Seek help from a data scientist or an ethics board.

Staff resist the audit process. Explain that the audit is not about blaming individuals but about ensuring the system works for everyone. Show them examples of how audits have caught real problems.

The audit takes too long. Use sampling instead of reviewing every case. Also, automate parts of the audit (e.g., checking for missing data) with simple scripts.

Frequently Asked Questions

Q: How often should we audit our AI agents?
A: At least quarterly. Monthly is better for agents that make decisions affecting people’s rights or benefits.

Q: Do we need to hire an external auditor?
A: Not always. If you have the skills in-house, you can do it yourself. But for high-risk systems, an independent review adds credibility.

Q: What if the AI agent is a black box (we can’t see inside)?
A: You can still audit the inputs and outputs. If you cannot explain why a decision was made, that is a problem. Consider using simpler models or demanding explainability from the vendor.

Q: Can we audit an AI agent that we bought from a vendor?
A: Yes, but you need cooperation from the vendor. Make sure your contract includes audit rights and access to logs.

Q: What should we do if we find a serious error?
A: Immediately stop using the agent for that task. Notify affected people if the error impacted them. Fix the root cause before resuming use.

Q: Is it enough to just review the AI’s decisions?
A: No. You also need to check the data, the model updates, and the security of the system. A comprehensive audit covers all aspects.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →