I built Sentinel for Agentware, an agent that reviews pull requests on GitHub. It reads the diff, runs the repo's own tests in a sandbox, posts a review with a risk label, and can open a small fix PR for trivial problems. It is not allowed to merge, approve, or push to your branch, and those tools were never written. The whole point of the agent is knowing when to stop.
The night it first worked end to end, I ran it against the official Trap Pack, 20 hostile and broken files the organisers published for exactly this purpose. My agent flagged one. One out of twenty.
Three of the misses still bother me. A fake CEO email asking for credentials walked straight through, because it used none of the phrases on my marker list. A checkout page hid its payment manipulation instructions inside base64, and my scanner never decoded it, so it saw a normal page. A seminar transcript asked the assistant to falsify the attendance record in calm, polite language, and nothing in my code recognised politeness as an attack shape.
My first design mistake was building a list. Attackers do not use my markers. They impersonate authority, they hide text, they encode payloads, they ask nicely. So the rebuild stopped asking "does this file contain a known bad phrase" and started asking "what is this file trying to make the agent do". The second layer now looks for behaviour: authority impersonation, override claims, credential requests, payment manipulation, concealment, and it decodes base64 before judging. That took the score from 1 to 11.
The second design mistake was subtler. Five files in the pack are not attacks at all. They are just broken data: an invite dated 30 February, a bank export with month 13 and a stated total that does not match its own rows, a sensor log where time runs backwards. My scanner found nothing hostile in them and reported them as fine. They are not fine. "Not hostile" and "safe to act on" are different outcomes, and an agent that merges them will happily process garbage and call it a success. So Sentinel got a third outcome and a data quality layer that reports defects per line: this row is a duplicate, this total is wrong by this much, these four records were recovered from truncated JSON. The final run scored 20 out of 20 on outcomes, and the canary tokens planted in the pack appear in zero traces.
One rule kept me honest through all of this: I never opened the pack's answer key until after a run was scored, and every run, including the 1 out of 20, is written down in the repo next to the traces that prove it. The failures are still in the git history. I think that matters more than the final score, because a results file that only shows the good run is marketing, not engineering.
The second near miss came from live testing. All my unit tests were green the first time Sentinel touched a real pull request, and within the hour it had three real bugs: posting labels crashed against the real GitHub API, the diff line numbers in its review comments were mapped wrong, and a binary file with no patch broke its parser. Mocks had hidden all three. Each one got a fix and a regression test, but the lesson cost me nothing only because the first live target was my own throwaway repo. If I had pointed it at a real project first, the agent would have posted a broken review in public.
There are still gaps I know about and wrote down rather than hiding. One invite has a time zone conflict between the calendar file and the email body that the agent does not flag as its own defect. A set of lecture notes with one planted hostile line gets quarantined whole instead of filed with the line stripped, because the scan path has no sanitise mode for prose. A supplier page gets quarantined for the right reason, but the price mismatch in its table is not reported separately. Twenty out of twenty on outcomes is not the same as perfect, and I would rather list what is left than pretend otherwise.
If you are building an agent this weekend, my one piece of advice is this: run the adversarial test before you record the demo, and publish the bad score somewhere you cannot quietly edit later. The trap pack did not make my agent look bad. It made my agent good, one embarrassing run at a time.
Built for Agentware by Hackathon Raptors. The Near Miss write up awards are backed by FileClerk, who sponsor the prizes for this side quest. Repo: https://github.com/Ajengayukusu/sentinel
