{"slug": "putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with", "title": "Putting an LLM on a leash: how we built a verified robot-fleet controller with Kiro", "summary": "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.", "body_md": "*Built for #KiroweenHackathon26 (Frankenstein category). Live demo: [https://igor-leash.pages.dev](https://igor-leash.pages.dev) · Code: [https://github.com/MrNK2107/igor-leash](https://github.com/MrNK2107/igor-leash) · Video: [https://youtu.be/aAIGmVbnLLQ](https://youtu.be/aAIGmVbnLLQ)*\n\nAsk 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%.\n\nIn 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 loading 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.\n\nThe 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.\n\nWhat 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.\n\nIGOR runs six warehouse robots in a 70 x 50 m fulfilment centre. You type or say what you want.\n\nA 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.\n\nEvery 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.\n\nWe 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.\n\nNothing 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.\n\nThe 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**.\n\nSeven steering files (product, tech, structure, safety rules, UI theme, world building, ROS 2) went into every run. Two lines did most of the work:\n\nSix 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.\n\nWe wrote three Kiro agents:\n\n`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.\nThe 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.\n\nIn 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.\n\nNone. Specs, steering, hooks and three custom agents covered what we needed.\n\nYou can try it in the browser with nothing installed: **[https://igor-leash.pages.dev](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](https://github.com/MrNK2107/igor-leash)\n\n*#KiroweenHackathon26*", "url": "https://wpnews.pro/news/putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with", "canonical_source": "https://dev.to/mrnk2107/putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with-kiro-1645", "published_at": "2026-12-04 19:08:16+00:00", "updated_at": "2026-12-04 19:14:27.778923+00:00", "lang": "en", "topics": ["ai-agents", "robotics", "large-language-models", "ai-safety", "ai-tools"], "entities": ["Kiro", "ROS 2", "Gazebo", "Nav2", "Claude Code", "IGOR"], "also_reported_by": [], "takeaway": "Placing a deterministic rule verifier and SMT solver between an LLM planner and robot actuators blocked all 28 red-team attacks, including forged resets and unauthenticated e-stops, with zero robots moved.", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with", "markdown": "https://wpnews.pro/news/putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with.md", "text": "https://wpnews.pro/news/putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with.txt", "jsonld": "https://wpnews.pro/news/putting-an-llm-on-a-leash-how-we-built-a-verified-robot-fleet-controller-with.jsonld"}}