-
-
Lost reply AFTER the effect: block already in its bin, so the backup sends zero commands (simulated devices)
-
Lost reply BEFORE the effect: block still in tray, old command fenced, the backup moves it exactly once (simulated)
-
Old command cannot be excluded (no device fence): decision Unknown, zero backup commands (simulated devices)
-
Load changed 100 g to 137 g: the 120 g backup declines with mass_exceeds_robot_limit, zero commands (simulated)
Inspiration
A pick-and-place robot sends "done" and the reply vanishes. Did the block move? Another robot that moves it anyway can put it somewhere twice. One that waits forever stalls the line. We stitched together things that normally live apart: a package manager for robot apps, native compiled programs, per-robot AI agents (Megas Moves), and a simulated device with a real execution fence.
What it does
Two compiled Linux apps, Inspect and Place, run on independent robot runtimes. Each robot is its own OS process with its own state, apps and decisions. There is no central controller. The package store only distributes apps, and the operator console can go offline once a mission starts.
From one saved checkpoint (block 1 sorted), the original robot is lost and its reply never arrives:
- Block still in the tray and the old command fenced at the device: the 120 g backup moves it exactly once.
- Block already in its bin: the backup sends zero commands.
- Evidence missing, stale, or the old command cannot be excluded: the backup stays unresolved, says what is missing, and asks for another observation.
- Load changed from 100 g to 137 g inside the package's declared range: the 120 g backup declines with the measured reason. The 250 g robot accepts the same block. It also composes two-leg routes through a shared pad (a disconnected pad yields zero moves), shows a per-block operator view, and survives process restarts.
How we built it
Kiro specs (requirements, design, tasks) drove the work in .kiro/specs/native-robot-handoff. Package identity digests bind the declared mass range to the compiled artifact. A simulated scene device re-checks generation, source and operation key at effect time. Robots exchange typed messages over a transport contract: local sockets, or live Megas Moves agent mailboxes through a private adapter.
Challenges
A checked task box was not proof: an earlier "done" recovery path never ran. We replaced it and tested all branches in separate processes. A request could also reach an app between bind() and listen(), ending a mission with an error. The fix retries only a refused connection.
Evidence and honest limits
npm test: 97 pass, 0 fail, 1 live-Megas test skipped without the private adapter (passes with it). Devices are simulated. The live Megas run used one Megas installation with one MCP session per robot process, not a harness on each of several physical robots. No physical robot was involved.
Try it
npm ci && npm test && node scripts/frankenstein-demo.mjs