Analytics & feedback loop
Your agent shipped it. Here's how to check what else it broke.
A lot of what I shipped on Hidden Events with agents went the same way. The agent added a lot of things. And it messed up something else.
Hidden Events tracks 3,079 Luma events across 27 cities, with a lot of programmatic SEO on top. A lot of it was built with Claude Code agents. Their names are on the commits.
If you’re here for a prompt that makes agents never wrong, stop reading now. There isn’t one. This post is about the boring checks that catch the damage before it costs you.
Why is agent work so easy to trust?
Because it looks finished. The PR is tidy. The tests pass. The summary says done.
Here’s what “done” looked like for me:
- A build step meant to fix indexing ended up overwriting every city page on deploy. Production served a 76KB copy of the homepage instead of the 136KB city page.
- Fixing that removed an older canonical fix, so 10 new city pages pointed Google at the homepage.
- The sitemap listed pages that were never committed, so they returned 404.
- A GA4 event parameter called
sourcequietly credited 5-27% of daily sessions to traffic sources that don’t exist. - Two new automation workflows shipped with a syntax GitHub rejects. They never ran once.
None of these were stopped by the change’s own tests. They showed up later: on the live site, in the analytics, in the run history.
Should you even be auditing? A 60-second gut check
Answer yes or no:
- Do agents merge code that touches pages, redirects, sitemaps or analytics?
- Do you look at the PR more than the live site?
- Do you have a check that has never failed?
- Do your posts or dashboards contain numbers nobody re-derived?
- Does anything go out under your name without you reading it?
3 or more yes: read the rest of this post today. 1-2: pick the check that matches your yes. 0: you’re doing better than I was.
1. Are you checking production, or the PR?
The homepage-clone bug turned up while checking that a section from PR #97 was live. It’d been merged. It wasn’t on the site.
The PR was fine. The deploy step after it wasn’t, and that’s where it broke. You only see that on the live page.
Action Tip: after every agent merge that touches what users or crawlers see, open the live URL and fetch it with curl. Check the exact URL a search engine has indexed, including the trailing slash.
That last bit isn’t paranoia. Our rollback of a language experiment added redirects that missed /berlin/de/, the exact URL Bing had indexed. It returned 404 until we added an explicit rule.
2. Has every guard failed at least once?
A check that’s never gone red might be checking nothing.
When we built the page gate for this site, the unit tests passed. Then we ran a real build with fake rows: a stale one, a thin one, a type with too few entries. That run found two bugs the tests missed, including a hub page that would have disappeared after being indexed.
Action Tip: for each check, feed it one input it must reject and watch it fail. Then delete the fake input.
3. Did you re-derive the number, or trust the summary?
Here’s what one source can hide. Google Search Console says Hidden Events got 24 clicks from 10,996 impressions in 90 days.
GA4 says 1,946 users in the last 28 days, up 104%.
They’re both true. The traffic comes from Bing-powered search: 1,181 sessions in those 28 days from Bing, DuckDuckGo, Yahoo and Ecosia. If I only read the Google dashboard, I’d think the site was dead.
It’s the same with stats you find online. During research for this site, a tweeted “1.8x more AI citations” stat had no source we could find, so it’s not here. A repo the tweet said had 55,700 stars had 56,568 on the GitHub API the same week.
Action Tip: before you act on a number, open the primary source yourself. If you can’t, cut the number.
4. What does your guard do when it fails?
This one hurt.
An early rule said: skip any city page with fewer than 4 events, to avoid thin pages. Sounds responsible, doesn’t it? In practice the build deleted pages and re-created them later: 98 pages, 678 deletions in 30 days. Google saw sitemap URLs flip between live and 404.
Google impressions fell 93% between early September and mid-October. To be honest about it, our recovery plan rates the September spam update as the likely main cause (“Correlation, not proof”) and the deletions as “Certain it happens; likely contributes”. I don’t know yet how much each one cost.
The fix was to stop deleting. A page under the threshold now stays up with a fallback list, and a page we want out of Google gets noindex instead of a 404.
Action Tip: for every automated check, write down what happens when it fails. Delete, skip, pass, or shout. Don’t leave it to chance.
5. Can you open the source of every claim?
On Hidden Events, generated posts go through a gate. Every number has to come from a facts file, every date, name and quote needs a source, and every URL has to return 200. The rule in the code is “Never loosen this to get content through”.
Four dry runs were each rejected on one tiny slip, like a typed figure or a description a few characters too long. We fixed the prompt. We didn’t touch the gate.
On QAbyAI’s blog we typed numbers into each post by hand. Two pages now state different QA-staffing numbers: 83% on one, 31% on another. They measure slightly different things, but a reader can’t tell. A shared facts file, with one definition per number, would’ve caught it.
Action Tip: keep one facts file. Let the agent cite it. Don’t let it type numbers.
6. Did you read what carries your name?
Here’s my line. Agents can draft outreach, posts, skills and prompts. But I always read them before they go out. It’ll save you a lot of time in the long run.
I learned it the hard way. I switched on auto-merge for generated posts, and the very first one shipped with broken link text: “our guide to how to get your luma”.
And even correct, gated posts aren’t a win by default. At the last check, 0 of 13 autopilot posts were indexed by Google. Volume isn’t the point. Something only you have is.
What bad agent workflows do (so you don’t)
- Merge on green tests. Instead: check the live page.
- Keep checks that have never failed. Instead: break each one once.
- Quote dashboards without asking which one. Instead: re-derive from the source.
- Let a guard delete things quietly. Instead: decide what failure does.
- Let agents type numbers. Instead: give them a facts file.
- Auto-publish under your name. Instead: read it.
A prompt to audit your agent’s work
Paste this into a fresh session with read-only access, along with the work to check:
You are auditing the work below. Do not improve it. For each change or claim:
1. Say what the live result would look like if it were wrong, and check it.
2. Recompute every number from the original source or API, not from the text.
3. List any claim without a source I can open.
4. List any check that has never failed, and how to make it fail once.
5. Say what each guard does when it fails.
Report only problems, each with the evidence.
Final words
You don’t need a perfect prompt.
You don’t need a second AI to bless the first one.
You don’t need to stop automating.
You need to look at the real output, every time. And read what goes out with your name on it.
I’m still figuring out how much to hand over. What’s the last thing an agent shipped for you that quietly broke something else?
Questions people ask
Can I just ask a second AI to review the first one's work?
It helps, but it does not replace checking the output yourself. A reviewer agent reads the same diff the first agent wrote. The breakages that hurt usually only show up on the live site or in the real data.
Which check should I start with if I only have time for one?
Check production. Open the live page or the real report after every agent change. Most of the breaks in this post were invisible in the pull request and obvious on the live site.
Should I stop letting agents write my content?
No. Let them write, but give them a facts file and a story bank so they cannot invent things, run a gate before anything ships, and read every piece that goes out under your name.
How often should I run these checks?
Every time an agent change touches something users or search engines see: pages, redirects, sitemaps, analytics events, published posts and outreach.