Inspiration

At 3 a.m. in a biobank, a freezer door is ajar. The sensor dashboard knows. The ticketing system gets a Jira issue. Somebody's AI agent could help. The on-call human is in a chat app. Four systems, four protocols, nobody sees the whole picture. We asked: what if they were all sewn into one room?

What it does

Frankenroom stitches five things that were never meant to talk:

  • Physical sensors posting SenML (RFC 8428)
  • Enterprise tickets from Jira Cloud, ServiceNow and PagerDuty v3 webhooks
  • AI agents as tool clients over MCP (JSON-RPC 2.0, Streamable HTTP)
  • AI agents as peers over A2A (agent card + message/send)
  • Humans, chatting and approving

Every payload becomes the same RoomEvent on one timeline. A resident agent, the Warden (Workers AI, Llama 3.3 70B, with a deterministic playbook fallback), wakes on anomalies, tickets and @warden mentions, reads the whole room and proposes actions like close_door, switch_backup_compressor or comment_ticket. Nothing executes until a human approves; then the action goes back out through the right stitch: an actuator command to the device or a comment on the ticket.

The live demo runs a simulated -80 °C freezer at 12x speed: leave the door ajar, watch the anomaly, the ticket and the Warden's proposal meet in one place, approve, and watch the freezer recover. Every stitch is a real endpoint you can hit with curl.

How we built it

Spec-first with Kiro CLI, running headless with a custom "stitcher" agent:

  • Steering files fixed the architecture: each stitch is a pure function (foreign payload -> RoomEvent[]), typed StitchError on bad input, standard JSON-RPC codes, every stitch ships with a fixture and a property test.
  • Two specs (core + Warden) with EARS requirements, design and tasks; Kiro implemented them task by task and ticked tasks.md.
  • Agent hooks on the stitcher run the suite after every write and print pass/fail on stop; a read-only "judge" agent maps each acceptance criterion to code and tests.
  • IDE hooks: tests on save, a stitch contract guard, spec-task sync, and curl-docs sync.
  • fast-check property tests prove every stitch never throws on arbitrary JSON and always emits valid events.
  • .kiro/settings/mcp.json points Kiro at the room's own MCP endpoint. Stack: Cloudflare Pages + Functions, D1, Workers AI, vanilla JS + Canvas, all free tier.

Challenges we ran into

  • Workers AI returns already-parsed objects in JSON mode, so the Warden silently fell back to its playbook until live testing caught it; Kiro fixed the adapter and added a regression test.
  • A single debounce swallowed a Jira ticket arriving 2 s after a sensor anomaly; we moved to per-trigger debounce in the spec first, then the code.
  • Making a believable freezer: we tuned the simulator so equilibrium sits exactly at the setpoint and runs 12x faster for the demo.

Accomplishments that we're proud of

Four unrelated protocols behind one schema, with property tests on every seam, a human-approval gate no agent can bypass, and a demo that works with zero setup.

What we learned

Steering + specs + agent hooks let Kiro run unattended on whole tasks and still produce code we trust. Writing defects into the spec before fixing them kept the docs true.

What's next for Frankenroom

More stitches (MQTT, OPC UA, Slack/Teams), signed actuator commands, and bringing the pattern into Rooms by Aurmada for operations teams.

Disclosure

Frankenroom comes from the team behind Rooms by Aurmada (https://rooms.aurmada.com). The idea of a shared room for people and agents draws on Rooms; all code in the repo is new and was written with Kiro during the hackathon (a few small hand fixes are listed in KIRO.md). No Rooms code was reused.

Built With

  • a2a
  • cloudflare-d1
  • cloudflare-pages
  • cloudflare-workers
  • css
  • fast-check
  • html
  • javascript
  • json-rpc
  • kiro
  • kiro-cli
  • llama-3.3
  • mcp
  • node.js
  • senml
  • workers-ai
Share this project:

Updates

Submission history