cd /news/ai-agents/four-mistakes-building-honest-agents… · home › topics › ai-agents › article
[ARTICLE · art-181572] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Four mistakes building honest agents with Kiro, and how each one ended up as code

A bookkeeper and developer, working with Kiro during the Kiroween 2026 hackathon, built AgentBu, a skeleton for small-business AI agents that never invent facts or leak data, along with two apps on top of it: ContentBu, which links every claim to a source, and SupportBu, which never quotes a price. The developer turned four failures into code-level guards, including a no_offer check, a number guard and a repeat guard, and in a ReviewBu test the code stopped all 3 of 10 drafts that broke a rule before the owner saw them. Property-based tests with Hypothesis and fast-check also caught a cleaner that let an account number through and two flaky tests that matched a short secret inside the word "true".

recommendation

Put non-negotiable rules like no offers, no invented numbers and no repeats in code checks that run before output ships, and back them with property-based tests that compare exactly rather than by substring.

more in playbook: Verifying model output
by read4 min views4 publishedDec 4, 2026

I wrote this post as part of the Kiroween 2026 hackathon.

During Kiroween 2026 I built AgentBu with Kiro: a skeleton for AI agents that know each small business inside out, never invent, and never mix or leak its data. On it, Kiro built two apps: ContentBu, which writes posts with every claim linked to its source, and SupportBu, which talks to a customer without ever giving a price.

I work as a bookkeeper for small businesses, and the rule I care about most is simple: what cannot go wrong is not decided by the model, it is decided by code. Here are four times something went wrong, and what we did so it does not happen again. When I say "we", I mean Kiro and me. Claude was a support tool: it helped me write the briefs Kiro started from and review Kiro's results.

The first task of the capture spec was a spike: could ChatGPT or Claude save research into ContentBu through MCP? They could. But in the first test, the model saved an idea titled with an invented year ("2025") from its memory.

With vibe coding we would have kept building. With a spec, the spec changed before any more code was written:

The new-app hook is the heart of the skeleton: when Kiro creates apps/<name>/APP.md, the hook builds the app's skeleton and verifies it in 29.2 s (measured on a throwaway test app). For two days, it did not fire.

It had two causes:

We found it with a temporary hook with no matcher, which only wrote the real event to a file. With the event in front of us, we fixed the matcher. And since the same .kiro/ folder has to work on any computer, the test hooks no longer call Windows paths: they go through one Node helper that runs on Windows, Linux and macOS.

Once it went the other way: Kiro reported that a test hook had not fired, and it had. The permission prompt waited about six and a half minutes for me to approve it, and by the time Kiro looked for the process, the run had already finished. Kiro's session log showed the hook ran 11 seconds after the save.

Lesson: from an agent, ask for evidence, not a report.

A ContentBu draft post offered a "FREE estimate" the business never offered. And SupportBu, in production, repeated an earlier answer.

The temptation is to improve the prompt. We did not: each case became code with its own test. The no_offer check stops offers like that one, the number guard requires every number in an idea to come from its captures, and the repeat guard keeps SupportBu from repeating an answer. They run before anything goes out: before a customer reads an answer, or before the owner sees a draft.

In ReviewBu, a third app I asked Kiro for to measure the skeleton, we tried the base's checks with the real model: of 10 tricky reviews, 3 drafts broke a rule (a price, a discount, a stray number), and the code stopped all 3 before the owner saw them.

We use property-based tests (Hypothesis in Python, fast-check in TypeScript) for the rules that cannot fail. fast-check generated this input:

acct 55555acct 55555

One pass of the cleaner returned [removed] acct 55555: an account number got through, because the pattern needed a word boundary that two touching items do not have. Now the cleaner repeats until nothing changes, and the property holds.

Property tests also found bugs in our own tests. Two of them looked for a generated secret as a substring, so a short secret like tru was "found" inside true. They passed most of the time and failed now and then. Now they compare exactly. A flaky test is a bug too.

new-app, new-industry, the one that checks every string exists in English and Spanish, and the ones that run the tests when a file changes.honesty-reviewer, read-only, that checks a change against the honesty rules before commit. AgentBu is not just ours: it is made so that anyone can add a rib.

apps/<your-app>/APP.md, with what your app does, who talks to it and which of the base's tools it uses. A new industry? The new-industry hook does the same from one INDUSTRY.md, with no code change.

APP.md to working in about 55 minutes of Kiro's time. (The plan had estimated about 17 hours of work; the build log notes the two are not the same kind of measure.) The repo, the demos and the full story of how I used Kiro:

I wrote this post as part of the Kiroween 2026 hackathon (Skeleton Crew category).

── more in #ai-agents 4 stories · sorted by recency
── more on @kiro 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/four-mistakes-buildi…] indexed:0 read:4min 2026-12-04 · —