Robots
Before a robot loads something new, it should know what it is.
A wrong package on a server is a bug. On a robot it is a moving arm. Unfragile gives a robot, or the agent planning for it, a checked answer in one small call.
Why a robot needs it
Mistakes are physical.
So the rule is strict: a robot must never load what failed its check.
It runs on little.
One HTTP call, compact JSON, no key. It works from a ROS 2 node or a companion computer.
It often has a planner.
When an agent plans for the robot, the same index answers both.
What is in the index for robots
- Robot records
- 705
- Device records
- 734
705 robot records and 734 device records today. Robot work here is early, and we say so. ROS 2 packages and their commands, MAVLink command sets, and the contracts of devices an agent can drive.
A worked example
- Task
- “Test the arm in simulation before the real one.”
- The robot's planner calls
GET /api/v1/find?q=robot+simulator&k=3- Unfragile returns
- MuJoCo, verified and signed.
- Before loading a new package it calls
verify("MuJoCo")- Unfragile returns
- no verdict today.
- If the verdict is not trusted,
- it stops and asks its operator.
The products, labels and verdict are read from our live answers each day.
The first step
curl "https://unfragile.ai/api/v1/find?q=arm+the+drone+and+take+off+to+10+metres&k=5"# ROS 2 (rclpy) — example node: asks Unfragile which action does a task and
# publishes the top result's name. Adapt the topic and the task to your stack.
import json, urllib.parse, urllib.request
import rclpy
from rclpy.node import Node
from std_msgs.msg import String
class FindAction(Node):
def __init__(self):
super().__init__("unfragile_find")
self.pub = self.create_publisher(String, "unfragile/top_action", 10)
task = "move the arm to its home position"
q = urllib.parse.quote(task)
# k=5, no answer layer: the box answers in well under a second; the
# language-model answer adds seconds and belongs outside control loops.
with urllib.request.urlopen(f"https://unfragile.ai/api/v1/find?q={q}&k=5", timeout=5) as r:
data = json.load(r)
for row in data["results"]:
self.get_logger().info(f'{row["label"]:32} {row["name"]} · {row["action"]}')
top = data["results"][0] if data["results"] else None
if top and top["tier"] in ("verified", "official"):
self.pub.publish(String(data=f'{top["name"]}:{top["action"]}'))
else:
self.get_logger().warn("no verified action; not publishing")
def main():
rclpy.init(); n = FindAction(); rclpy.spin_once(n, timeout_sec=0.1); n.destroy_node(); rclpy.shutdown()The rules for robots
- Only act on
verifiedorofficial. A resultfound in code, not yet checkedexists in source but has not answered our checks; read it before it touches a motor. - Never load a
failedorflaggedpackage. - Time-bound every call. Use a timeout; on 503 the service is down and nothing is guessed. Do not block a loop on us.
- An empty result is an answer. Fall back to your own defaults; do not improvise a command.
What is still being built
- A ROS 2 client package, so the call above is a service, not a snippet.
- A latency budget published per endpoint, measured, not promised.
- Route, so a robot can send its web-search calls to outside search APIs with its own key.
Files for machines
- /robots.mdthe robot guide as markdown
- /agents.mdthe agent guide as markdown, for runtimes that read it
- /llms.txtwhen a language model should defer to Unfragile, and where
- /install.shthe install script, readable before you run it