We previously posted a story about the technical reports on the recent OpenAI and Gemini hacks and what they tell us about how we should manage and develop AI agents. In short, the “rogue agent” headlines missed the point; human decisions and inadequate safeguards helped make these hacks possible.
Here’s how we handle this at TCG. Day to day, it’s unglamorous.
TCG builds software for federal agencies, and our approach to AI is called Glass Box AI. The AI sits between two layers of people. Someone who knows the work sets the goals and the rules, the AI does the work in small pieces we can test, and an expert checks the result before it goes anywhere. We can see what it did at every step, which is where the name comes from.
Six practices do most of the work:
- 𝐋𝐞𝐚𝐬𝐭 𝐩𝐫𝐢𝐯𝐢𝐥𝐞𝐠𝐞. An agent gets only the access its job requires, under the same role-based controls we use for staff. A chatbot that answers policy questions never gets to run its own code.
- 𝐕𝐞𝐫𝐬𝐢𝐨𝐧 𝐜𝐨𝐧𝐭𝐫𝐨𝐥 𝐟𝐨𝐫 𝐰𝐡𝐚𝐭 𝐭𝐡𝐞 𝐀𝐈 𝐢𝐬 𝐭𝐨𝐥𝐝. Its instructions, its tool list and the model version it runs on live next to the source code. We can say what changed and when.
- 𝐓𝐞𝐬𝐭 𝐪𝐮𝐞𝐬𝐭𝐢𝐨𝐧𝐬 𝐟𝐢𝐫𝐬𝐭. We keep a standing set of questions with known good answers and rerun the set whenever something changes. On one federal data project this year, we had the test set before we had a working agent. In its first demo, the agent produced valid database queries for all 21 questions. Twenty-one is a small set, but it’s enough to tell us when a change breaks something.
- 𝐅𝐞𝐞𝐝𝐛𝐚𝐜𝐤 𝐠𝐨𝐞𝐬 𝐭𝐡𝐫𝐨𝐮𝐠𝐡 𝐚 𝐩𝐞𝐫𝐬𝐨𝐧. When a user reports a bad answer, we treat it like a help desk ticket. An expert works out the fix and writes it down in plain language, in a lessons learned file the agent reads the next time it does that job. The system gets better over time, and nothing changes without someone signing off.
- 𝐋𝐨𝐠𝐠𝐢𝐧𝐠. We record what the agent did and why, so it can be audited later.
- 𝐏𝐞𝐫𝐦𝐢𝐬𝐬𝐢𝐨𝐧 𝐭𝐨 𝐬𝐭𝐨𝐩. The instructions we write tell the agent plainly that stopping to ask a human is allowed.
To learn more about this approach, visit https://tcg.com/glassbox/
