cd /news/ai-agents/i-measured-before-building-and-the-d… · home › topics › ai-agents › article
[ARTICLE · art-179234] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

I measured before building, and the data stopped my project

A developer measured whether two proposed linter rules for coding-agent CI workflows would find real issues before building the tool, and the data met both stop criteria: hidden-content checks found 4 hits and 0 real problems across 294 files, and pull-request-head checkout checks found 20 jobs and 0 real issues. The workflow rule surfaced 11 true findings out of 57 (19%), all of them the broad "anyone can reach a powerful agent" case already covered by existing tools, so the linter was abandoned. The measurement did yield a new figure: in 93 of 178 sampled repositories (52%), a coding agent runs in a workflow an outsider can trigger by opening an issue, commenting or sending a pull request, often protected only by an agent-action default not visible in the workflow file.

recommendation

Audit CI workflows that let outsiders trigger coding agents, and check the agent action's default permissions rather than trusting the workflow file alone.

more in playbook: Securing agents and AI tools
by read3 min views7 publishedDec 1, 2026

I wanted to build a linter for one question: can a pull request change what a coding agent obeys, or what it is allowed to do, without a reviewer noticing? The idea had two rules that no existing tool had, as far as I could find. Before writing the tool I spent one evening measuring whether those rules would find anything in real repositories. They did not. This is the measurement, the decision, and what turned out to be worth keeping.

Coding agents now run in CI: an issue is opened, a workflow starts an agent, the agent comments or opens a pull request. Several public incidents and studies show the ways this goes wrong. Free tools already check the workflow side (zizmor, sisakulint, CodeQL's Actions queries, a Trail of Bits auditor skill, Aikido's open rules). My two rules were meant to cover what they do not:

I wrote down the criteria before the test. Go: at least 15 true findings in 200 repositories that the existing tools miss, and at least 80% precision per rule. Stop: precision under 60%, or fewer than 5 true findings.

Hidden content: 4 findings, 0 real. All four were a zero-width joiner inside an emoji. No bidirectional controls, no tag characters, no instruction hidden in a comment, in 294 files.

Checkout of the pull request head before an agent: 20 jobs, 0 real. Fifteen had a guard, three were misread by my script, two I could not decide.

The workflow rule overall: 11 true of 57 (19%). All 11 are the broad case "anyone can reach a powerful agent", which is the case the existing tools already describe. They sit in 3 repositories.

Both stop criteria were met. The go criteria were not. I did not build the linter. I removed the empty repository I had prepared for it.

A number I could not find anywhere else. In 93 of 178 sampled repositories (52%), a coding agent runs in a workflow that an outsider can trigger by opening an issue, commenting or sending a pull request. Most of them are protected, and often by a default of the agent action that is not visible in the workflow file. That is reassuring and fragile at the same time: the protection is one input away from being switched off, and the file does not show it.

The real problems were boring and serious. In three repositories, any GitHub user can reach an agent that holds broad permissions. Two of them carry the same copied template with the same flaw. No clever rule was needed to see this. The findings were checked independently, and the one repository with a private reporting channel has been told; nothing that identifies any of them is published here.

Copied templates spread. Two unrelated repositories had byte-identical vulnerable workflows. A fix in a popular template reaches more repositories than a linter does.

The measurement stays, as something to repeat: same sample method, a second labeller, every quarter, published as aggregate numbers only. The engineering time goes into the tool I already have, a security gateway for MCP, and into making its attack corpus runnable against other gateways.

The work was done by one person directing AI coding agents, with the criteria written down before the test and the labels read by hand.

Originally published at https://basartuncay.github.io/notes/measured-before-building/. This article was written with AI assistance. I directed the work, and the numbers and findings in it were checked against the repository before publishing.

── more in #ai-agents 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-measured-before-bu…] indexed:0 read:3min 2026-12-01 · —