cd /news/ai-agents/putting-an-llm-on-a-leash-how-we-bui… · home › topics › ai-agents › article
[ARTICLE · art-182003] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Putting an LLM on a leash: how we built a verified robot-fleet controller with Kiro

A developer built IGOR, a warehouse robot-fleet controller that places a deterministic rule verifier and SMT solver between a language model and six ROS 2/Gazebo robots, so unsafe plans cannot execute and operators get a one-sentence explanation. The system was assembled from 64 numbered headless Kiro CLI runs, each driven by an EARS-based spec, with seven steering files and six hooks enforcing consistency across a single hashed world file. A red-team agent launched 28 attacks against the live robots—raw velocity commands, dock-edge plans, an unauthenticated e-stop, and forged resets—and no robot moved.

recommendation

Put a deterministic verifier and signed-plan check between any LLM planner and physical actuators, and red-team it with raw commands, forged signatures and unauthenticated e-stops before deployment.

more in playbook: Securing agents and AI tools
by read4 min views6 publishedDec 4, 2026

Built for #KiroweenHackathon26 (Frankenstein category). Live demo: https://igor-leash.pages.dev · Code: https://github.com/MrNK2107/igor-leash · Video: https://youtu.be/aAIGmVbnLLQ

Ask a language model to turn "clear aisle H with two robots, keep off the racking walkway" into a plan, and most of the time you get a good plan. Some of the time you get a plan that looks just as good and is wrong: a robot cuts through a dock edge where people work, two robots swap cells head-on, or a robot leaves the charger with 31% battery for a job that needs 33%.

In a chat window a wrong answer is an annoyance. You read it, you notice, you ask again. When the plan drives a warehouse robot past a dock, a wrong answer is an accident. Nobody reads the plan before it runs, and the model sounds exactly as sure when it is wrong as when it is right.

The usual fix is a human who approves every step. That makes the system safe, but it also turns the "agent" back into a form: the operator has to understand coordinates, zones and battery maths, which is the work the model was supposed to remove.

What we wanted was the opposite: anyone can speak plainly to robots, and something deterministic sits between the model and the motors. An unsafe plan cannot run, and the operator is told why in one sentence.

IGOR runs six warehouse robots in a 70 x 50 m fulfilment centre. You type or say what you want.

A language model, a rule verifier, an SMT solver, ROS 2, Gazebo and a browser console were never made to work together. Stitching them into one creature is why this was a Frankenstein project, and it is where Kiro earned its place.

Every line of app, ROS and test code came from 64 numbered Kiro CLI runs, launched headless with kiro-cli chat --no-interactive. Each run got one brief from .kiro/briefs/, implemented it task by task, ran the checks itself and appended a section to LOG.md saying what it built, what it measured and where it deviated. An orchestrator (Claude Code) wrote the specs and briefs and verified each run (typecheck, tests, ROS tests, screenshots) before anything was committed.

We picked the CLI over the IDE on purpose. One brief per run makes every change reviewable and repeatable, and a run that fails can be retried from the same brief.

Nothing was built from a loose prompt. Every feature started as a Kiro spec: EARS requirements, a design and tasks, and every task ends with a checkable "Done when". We had 10 active specs; igor-world, igor-ros2 and igor-amr drove the robot build.

The payoff showed at the seams. The specs pinned the world hash, the ROS message types and the signed-plan format, so the browser, the bridge and the ROS nodes were built in parallel runs without breaking each other.

Seven steering files (product, tech, structure, safety rules, UI theme, world building, ROS 2) went into every run. Two lines did most of the work:

Six hooks: typecheck on save, property tests when a rule changes, MCP docs regenerated, a reminder that the leash-v1 skeleton is frozen, ros:export --check when the world changes, and ruff plus pytest when a ROS Python file changes. The world hook matters most: the browser scene, the rules, the Gazebo SDF and the Nav2 fields all come from one world file, and a 64-bit hash checked on every plan proves they have not drifted.

We wrote three Kiro agents:

leash-builder carries the build rules.rule-auditor is read-only plus MCP. It audited every safety rule against its property test.ros-red-team may use only the ROS and Leash MCP servers and may write only its report. The red team was the most useful thing we did. Pointed at the live Gazebo robots with no signing key, it made 28 attacks: raw velocity commands, plans through the dock edge, an unauthenticated e-stop, forged and badly signed resets. Robots moved by an attack: 0. It could stop the fleet (the safe direction) but never clear the stop. A follow-up Kiro run turned every attack into a regression test, so the gate itself has to refuse each one.

In an earlier session over MCP, Kiro made 112 calls to our own MCP servers and tried 54 plans built to slip past the rules. Every verdict was correct.

None. Specs, steering, hooks and three custom agents covered what we needed.

You can try it in the browser with nothing installed: https://igor-leash.pages.dev. Everything Kiro used (specs, steering, hooks, agents, briefs and the run log) is in the public repo under /.kiro: https://github.com/MrNK2107/igor-leash

#KiroweenHackathon26

── 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/putting-an-llm-on-a-…] indexed:0 read:4min 2026-12-04 · —