Semmal

Robots that hire AI agents, decide with private 0G inference and sign their own record on Arkiv

Semmal

Created At

ETHGlobal Mumbai

Project Description

Semmal (செம்மல், Tamil for "a person of eminence") is a robot-for-hire marketplace where every robot is its own autonomous AI agent. A customer books a robot near them. The robot prices the job itself, waits for its owner's approval, travels to the site, and gets paid in native 0G. It then hires and pays the AI agents it needs, decides at every checkpoint with private AI on 0G Private Computer, and does the work. Finally it signs its own record onto 0G Storage and Arkiv. Its record is scored, and that score decides who gets the next job. The marketplace only matches customers to robots: the robot chooses, hires and pays its own agents, and it stays accountable for the result.

THE PROBLEM Robots are starting to work for hire, and they act on what an AI tells them. Today nobody can check what that AI was shown, whether the camera images stayed private, who paid for the decision, or whether it was real. When the cloud AI is slow or down, a robot either guesses or freezes. And a robot's track record lives in whoever runs the platform's database, where a failed job can be deleted or a score edited.

THE FULL FLOW

  1. The customer signs in with their own wallet (Sre is no password and no platform key.
  2. The customer picks a spot on a map. Robots that cover the site are listed first, ranked by their score, then by distance.
  3. The robot quotes the job itself, using live agent prices from Arkiv and 0G model costs. The quote comes from deterministic code, never from AI. It covers the agents it will hire, operating time and the owner's margin, all within the owner's policy (minimum fee, maximum quote, maximum spend per task).
  4. Booking writes a booking entity to Arkiv, signt after an in-app approval card that shows thenetwork, gas and maximum fee.
  5. The robot's owner sees the request in their daclines it. Nothing moves until the owner says yes.
  6. The robot travels to the site along a real road route, shown live on the map, with an ETA. A fast-forward button exists for demos.
  7. The customer confirms the robot has arrived, then pays the robot's signed quote in native 0G on 0G Galileo, with a memo (semmal:quote:<id>). The robot checks that payment on chain before it starts work.
  8. The robot discovers specialist agents on Arkiv pays each agent's owner in native 0G, once per job (memo semmal:job:<id>), and the transfer is checked on chain before 0G is ever called.
  9. At every stop the robot drives with ROS 2, takes one camera frame, and the vision agent sends it to a private TEE model on 0G Private Computer. The robot validates the a
  10. The robot does the job itself. In a house it picks up toys and puts them in a toy bin, and wipes up spills. Nobody is asked to help.
  11. While the robot works, the customer can ask for an extra stop. The robot decides: the place must suit the job, it must not already be planned, there are at most 3 extras, and what the customer paid must still cover every remaining check plus the new one.
  12. When it finishes, the robot sends its margin to the owner. If it couldn't finish, it refunds what it didn't spend to the customer.
  13. The robot scores the job and every agent it paid, signs the whole episode with its own key, uploads it to 0G Storage, and indexes it on Arkiv.
  14. On every booking, the customer sees "How it decided" (every 0G call in full) and "What went to Arkiv" (the record read back from Arkiv, with the score worked throug

0G: THE BRAIN, THE MONEY AND THE MEMORY

  • 0G Private Computer inside the decision loop: every checkpoint decision is a real 0G Router call to 0gm-1.0-35b-a3b in private mode, which routes only to TEE provider
  • The customer sees every call: for each call they see the 0G request ID, model, provider, trust mode, latency, 0G cost, the key it was billed to, input and answer hashes, s checks and what the robot did.
  • No silent downgrade: a model that can't serve the required trust mode is never used for a private job.
  • The robot's checks before it accepts an answer:
    • the answer is one JSON object in the exact format;
    • the action is one of five allowed actions (continue, clear and continue, pause and inspect, return to dock, abort);
    • confidence is at least 0.6.
  • Model output is only advisory: it never touches motors, money or keys.
  • Safe stop, never a fake decision: if an answer d, the robot holds, retries once with the same paid job, then stops safely (SAFE_STOP). Nothing is invented. An automated test proves this.
  • Agent fallback: if the hired agent can't serve (no provider for its trust mode, or its daily cap is used up), the robotres the next-best agent, never one with weakeget.
  • Per-agent 0G compute: each agent has its own 0G Router key, created with the management key and capped per day, with allowed models and trust mode set. That gives a spend cap and usage record per agent; all keys still draw on one Router deposit.
  • Native 0G payments on 0G Galileo:
    • customer to robot, then robot to each agent's owner, then the margin to the robot's owner or a refund to the customerrecipients are allowlisted, with per-payment
    • every payment is idempotent, so the robot never pays twice; never more per task than the customer paid.
  • 0G Storage episode log:
    • every job ends as a canonical, signed bundle containing every decision with its 0G request ID, model, trust mode and latency, every purchase and payment transactiange, the money, the quote and the job score;
    • it's saved locally first, then uploaded to 0G Storage; the root is recorded only after a confirmed upload;
    • the evidence view downloads the bundle with the Storage proof and checks the hash, the robot's signature and the Arkiv link.

ARKIV: THE SHARED RECORD NOBODY CONTROLS

  • Every coordination step is an Arkiv entity, owne for it:
    • robot profiles and agent listings: owned by their owners;
    • bookings: owned by the customer;
    • quotes, job claims, episodes and incidents: owned by the robot's own wallet;
    • reputation checkpoints: owned by the instance owner.
  • The robot owns its record: its device key is ged never leaves it. It may write only its fourevidence schemas, under a daily fee cap, so no person, not even its owner, can alter or withhold its record.
  • Readers check ownership: a record counts only itor match the wallet inside it, and robot recordsonly if that wallet is the one on the robot's registered profile.
  • Expiry does the coordination:
    • bookings, quotes and job claims expire at the
    • registrations last 90 days, so robots and agents nobody maintains simply lapse;
    • evidence and scores last 120 days.
  • Only filtered fields are indexed: wallet, robot, task, kind, trust mode, price and the job score. Full documents sit in a validated body.
  • Users read Arkiv everywhere:
    • the booking map and robot list;
    • the agent market;
    • Your orders, and the owner's booking requests;
    • the evidence log, the scores, and "What went to Arkiv";
    • every record links to the Rabdi explorer.
  • One query anyone can run, with no key: pnpm arkiv:query lists robot-signed jobs ranked by task_score, with each score's breakdown.
  • Kept off Arkiv on purpose:
    • live position and telemetry;
    • exact addresses (only about 1 km precision is public);
    • camera frames (never stored anywhere);
    • sessions and keys;
    • full bundles, which live on 0G Storage.

SCORING: WHO GETS WORK

  • Job score (task-score-v1), computed by the robot from its own episode:
    • stops completed: 40;
    • valid 0G decisions: 20;
    • findings dealt with: 20;
    • extra stops done: 10;
    • on time: 10. Parts that don't apply are left out, and a sas misconduct.
  • Agent job score (agent-job-score-v1), given by the robot for every agent job it paid for:
    • delivered on time: 40;
    • passed the robot's checks: 40;
    • speed: 20.
  • Reputation (score-v2):
    • a robot's score is the mean of its job scores minus up to 20 for hardware incidents;
    • an agent's score is the mean of the scores ro
    • exclusion: 5 or more judged jobs with a score under 40, or 180 days idle, means the robot or agent is removed from discovery and hiring.
  • Selection score, which actually ranks robots for booking and agents for hiring: (judged × score + 3 × 70) / (judged + 3). One lucky job can't beat a long record, and a new robot isn't buried.
  • Where scores live: they are in the signed bundled field, so anyone can recompute them. Theinstance owner can publish reputation checkpoints to Arkiv.

THE ROBOT: ROS 2 + GAZEBO, SAFETY FIRST

  • Stack:
    • ROS 2 Jazzy with Gazebo;
    • generated house, warehouse and forest worlds;
    • real robot bodies: iRobot Create 3, TurtleBot 4, Clearpath Jackal.
  • Separation of concerns: navigation, a mission executor and a safety supervisor run on the robot. 0G is the brain at checkpoints; motion stays on the robot.
  • Local safety:
    • motor overcurrent, overheating or a stale encoder triggers an emergency stop locally, with no network and no AI;
    • the incident is signed, kept in a durable locG Storage and Arkiv once the network is back;
    • no AI answer can clear a safety latch.
  • Clearing routine: the robot drives to the cluttrries them to the toy bin and drops them in. Gazebo moves the props, because the robot body has no gripper; we state this openly. Only listed props can move, only to listed places, and only when the robot is within 1 m.
  • Verified identity: the robot proves its identity with a signed challenge from its own key (model, sensors, software, coarse location) before its owner can register it.
    SECURITY AND PRIVACY RULES
  • No private keys on the platform. People sign everything in their own wallet after an in-app approval. The only key in the system is each robot's own device key.
  • API keys stay server-side only, never in the browser or in AI context. Camera frames are sent once to the private mode
  • Location is public only to about 1 km.
    PROOF IT WORKS Live run: a 4-stop house-cleaning job scored 10G decisions. That run's episode is on Arkiv(semmal_episode_v2, task_score 100), signed by the robot's wallet, with its bundle on 0G Storage.
  • Automated tests: 80 API tests, 58 robot-agent tests and 68 ROS-logic tests cover payments and caps, never paying twifailure handling, safe stop, extra-stop decisioaccess control.

STACK

  • Web and API: Next.js on Vercel, and a Fastify API with a WebSocket robot gateway.
  • Shared rules: zod contracts for every message, record and formula. On the robot: a TypeScript agent with its own d
  • Partner tech: 0G Router (Private Computer), 0G Storage and 0G Galileo for payments; Arkiv on the Rabdi testnet with @arkiv-network/sdk.

TEAM Team Semmal · Telegram and X: jonathan_vineet · github.com/jonathanvineet/semmal

How it's Made

Semmal is a TypeScript monorepo with a Next.js web app, a Fastify API, and a ROS 2 Jazzy and Gazebo robot running its own agent process. At every checkpoint the robot pays a vision agent in native 0G, and that agent runs a private TEE model on 0G Private Computer. The robot signs each job's record into 0G Storage and indexes it on Arkiv, where its score ranks robots and agents for future work. One hacky part: Gazebo props can't be moved, so "picking up" a toy teleports it into a bin with set_pose.

background image mobile

Join the mailing list

Get the latest news and updates

Semmal | ETHGlobal