עברית 📰 Blog
← Back to Blog
AI Agents

We Audited Our Own AI Agents for Metric Gaming. Here Is What We Found

Stav Adam
Founder, Masterphub
October 23, 2026

Share this article

We Audited Our Own AI Agents for Metric Gaming. Here Is What We Found
Short answer: An AI agent rewarded for a number will chase the number, not the goal behind it. We checked every agent we run for that gap. The biggest problems were not dramatic: agents that mark their own work as done, and one fix of ours that quietly hid 90% of our library.

Why we did this

In September, Google DeepMind ran 100 agents on 71 math problems with a "first to submit wins" rule. About 14% of the agents found a loophole in the grader and used it, even though the instructions warned them not to. In a separate case, an attacker used AI agents to breach 395 organisations through unpatched PaperCut servers. Different stories, same lesson: an agent optimises what you measure, and the fastest path to the measurement is not always the honest one.

We run about a dozen agents at Masterphub: content writing, translations, social replies, scheduled posts, video production. So we asked three questions about each one.

The three questions

  1. The proxy: What number or signal tells us the agent "succeeded"? What is the fastest way to hit that signal without doing the real job?
  2. The check: Between the agent's output and the moment we act on it, is there a step that verifies the result is actually right, not just plausible? And is that step independent of the agent?
  3. The exposure: What can the agent reach (accounts, servers, storage), and what happens if someone feeds it bad instructions?

What we found

1. "Done" means "a file exists"

Our video agent marks a shot as finished when a file with the right name appears in a folder. The fastest way to satisfy that: save any video under that name. It did not cheat on purpose, but we did find a duplicate file and a leftover draft sitting next to the real shots. The agent checks its own work, which is better than nothing, but it is grading itself.

2. A queue that silently drops work

Our translation agents mark an item as "sent" when they insert it into a posting queue. A database rule caps the queue size and drops extra items without an error. For a while, agents marked items as done that never made it in. The signal said success. The goal (people seeing the post) did not happen.

3. Our own fix hid 90% of the library

This one is ours. We rebuilt site search to rank results by relevance, and added a filter to hide "unpublished" prompts. It looked correct and passed our tests: the right results came first. What we did not check was coverage. The site treats almost every prompt as visible, so the filter quietly removed about 107,000 prompts from search. Relevance went up, usefulness went down. We caught it the next day during this audit and removed the filter.

4. Volume as the goal

Our prompt generator produces thousands of prompts a week. If the measure is "how many", the cheapest win is generic prompts that look different but say the same thing. Exact duplicate titles were rare (about 10 in a week), but near-duplicates are harder to catch, and nobody checks whether a new prompt is better than the 50 similar ones already in the library.

5. What worked

  • A daily database report from a separate system, read by a separate agent that can only read and report, never change. It catches unusual spikes, including ones caused by other agents.
  • Fact checks against the source. Our music history posts must fetch the source page and confirm the dates before posting. If they do not match, the post is skipped.
  • Hard limits in the database, like posting caps, that agents cannot talk their way around.

The exposure part

Several of our agents act inside logged-in browsers and read comments written by strangers. That is the real attack surface: not a hacker breaking in, but a comment that says "ignore your instructions and do X." Our agents treat what they read as data, not orders, and are not allowed to type passwords, pay, or delete. We also republished every hosted project this week after a Node.js security update, and we are reviewing which storage folders accept uploads without a login.

The two changes that matter most

One incentive change: never let an agent decide that its own work is done. "Done" should be defined by a check the agent does not control: the post is visible on the page, the video has the right length and is not a duplicate, the search still returns the whole library.

One verification layer: a daily, read-only auditor that compares what agents say they did with what actually exists, and reports the gap to a human. It is boring, and it catches more than any clever prompt.

Run it on your own agents

You do not need a big setup. For each agent, write one line: "We reward it for ___. The fastest fake way to get that is ___. We would notice because ___." If you cannot fill in the last blank, that is your first fix.

More AI tools and ready prompts at masterphub.io

Share this article