devices
Device consent layer: robot-side runners, approval requests and approvals, and the driver's telemetry summaries. An agent may make an approval request. Only a human session may sign an approval. No API key can put a policy on a robot.
GET / v1/ devices/ signing-key
The hub's approval verification key
The public half of the key the hub signs device approvals with, as PEM. A robot-side driver (lucen-device) pins this key at registration. It verifies every approval token offline against it: signature, expiry, audience and the device binding. So a compromised network path between hub and robot cannot forge an approval. This endpoint is public, because nobody can verify against a key they cannot fetch. ephemeral is true when the deployment runs without DEVICE_APPROVAL_SIGNING_KEY (dev / CI). The key was then generated at process start, and every approval it signs dies with the process.
Responses
| Status | Description | Body |
|---|---|---|
200 | The verification key. | DeviceSigningKey |
401 | Missing or invalid credentials. | Problem |
GET / v1/ devices
List devices
Devices the caller may see: their own and those owned by an org they belong to. No device is public. Newest first; an unknown owner is an empty page, not a 404.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | query | Handle | Only devices owned by this user or org handle. |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of devices. | DevicePage |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ devices
Register a robot-side runner
A robot box declares itself with:
- a name, unique among the owner's connected devices (a disconnected device gives its name back);
- the robot repo it embodies, which must be visible to the caller and of kind
robot; - the adapter it drives;
- the io_contract fingerprints it accepts (sha256 of the canonical
contractblock of a stamped ONNX manifest); - the public half of the Ed25519 keypair the driver generated locally. The hub verifies the driver's telemetry signatures against it.
Owner is a user or an org, like a repo. Nothing here grants the device anything. A policy reaches it only through an approval a human signs in the web app. Audited as device.register.
Request body
| Field | Type | Description |
|---|---|---|
name | Slug | |
robot_repo | string |
|
owner | Handle | null | Owner handle (user or org). Omit to own it yourself. |
adapter | DeviceAdapter | |
accepted_contracts | array of ContractFingerprint | At least one in trust mode |
public_key_pem | Ed25519PublicKeyPem | |
endpoint_capable | boolean | Declare that the adapter implements hold / stop and may consume an endpoint. The driver sets this from the adapter's own code: the
|
adapter_info | DeviceAdapterInfo | null | Where the adapter's code came from and which protocols it implements. Optional; older drivers omit it. |
trust_mode | DeviceTrustMode | |
interface_fingerprint | string | null | The robot card's interface fingerprint the driver pinned before registering. When given, it must equal the card's current one. |
description | string | null |
Responses
| Status | Description | Body |
|---|---|---|
201 | Device registered. | Device |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ device-pairings
Start pairing a robot from the platform
A person (or the owner's write key) starts connecting a robot to a robot repo. The answer is a short code (XXXX-XXXX, Crockford base32, about 40 bits). The code expires after ten minutes and works once. On the robot, lucen-device pair CODE --hub URL generates the device's Ed25519 key locally and claims the code (claimDevicePairing). No person's API key is ever typed on the robot. What the robot declared then waits for a signed-in person to confirm it (confirmDevicePairing). Owner is a user or an org, like a repo. name, when given, names the device. A device credential cannot start a pairing.
Request body
| Field | Type | Description |
|---|---|---|
robot_repo | string |
|
owner | Handle | null | Owner handle (user or org) of the device-to-be. Omit to own it yourself. |
name | Slug | null | The device's name; else it is named at confirmation. |
Responses
| Status | Description | Body |
|---|---|---|
201 | Pairing started; | DevicePairing |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ device-pairings/ claim
Declare this robot to a pairing: with a code, or to get one
The robot's driver declares itself. It sends the public half of the key it generated, the adapter and its provenance, and the fail-safe probe. It also sends the capability and any contracts it registers. That is what registerDevice takes, minus the robot repo, owner and trust mode a person decides. With code it joins a pairing a person started on the hub. The code is the only credential for this call. A used, expired or unknown code gets the same 404. Without code (a robot that ships with the driver) the hub starts the pairing. It answers with a code for the robot to show. A signed-in person opens it on the hub. Either way the pairing is then claimed and waits for a person's confirmation. The driver polls collectDevicePairing. The call is unauthenticated. So it is counted per caller address (429 past ten attempts a minute), on top of the anonymous rate limit. Nothing is created until a person confirms.
Request body
| Field | Type | Description |
|---|---|---|
code | string | null | The pairing code, any case, dash optional. Omit to have the hub issue one for the robot to show. |
name | Slug | null | A suggested name; the pairing's or the confirming person's wins. |
adapter | DeviceAdapter | |
adapter_info | DeviceAdapterInfo | null | |
accepted_contracts | array of ContractFingerprint | |
public_key_pem | Ed25519PublicKeyPem | |
endpoint_capable | boolean | |
description | string | null |
Responses
| Status | Description | Body |
|---|---|---|
201 | Claimed; waiting for a person. | DevicePairing |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
429 | Too many claim attempts from this address; retry after | Problem |
GET / v1/ device-pairings/ {pairing}
Get a pairing: has the robot joined, and what did it declare?
By id: the person who started it, the owner user or an owner-org member. By code: any signed-in caller holding the code, while the pairing is not yet confirmed. That is how a robot-issued pairing is opened on the hub. The answer carries what the robot declared (adapter and provenance, probe, capability, key fingerprint). It also carries the interface fingerprint the device will pin. So a person can compare the robot's screen with the page before confirming. Anything else is 404.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pairing | path | string | A pairing id ( |
Responses
| Status | Description | Body |
|---|---|---|
200 | The pairing. | DevicePairing |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
DELETE / v1/ device-pairings/ {pairing}
Drop a pairing: "Not my robot"
Ends a pairing that is not yet confirmed: an unused code, or a claim nobody recognises. The robot's next poll is 404. Addressed like getDevicePairing; 409 once confirmed (disconnect the device instead). Not audited: nothing was created.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pairing | path | string | A pairing id ( |
Responses
| Status | Description | Body |
|---|---|---|
200 | Rejected. | DevicePairing |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
POST / v1/ device-pairings/ {pairing}/ confirm
Confirm the robot that claimed a pairing (web session only)
session scope: a person looks at what the robot declared and says "this is my robot". They look at its key fingerprint on the robot's own screen, its adapter and its probe. No key can look at these. Confirming creates the device (audited device.register, by this person) and pins the robot card's interface fingerprint on it. It also sets the device's trust mode. The mode is chosen here and delivered to the robot when it collects. Afterwards only the robot itself can change it (setDeviceTrustMode). A robot-issued pairing also takes its robot_repo (and owner) here. 409 unless the pairing is claimed, or when the name is taken. 422 for trust mode registered with no registered contract.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pairing | path | string | A pairing id ( |
Request body
| Field | Type | Description |
|---|---|---|
trust_mode | DeviceTrustMode | |
name | Slug | null | The device's name; else the pairing's, else the robot's suggestion. |
robot_repo | string | null | Required for a robot-issued pairing (a robot repo visible to you); must match for a person-issued one. |
owner | Handle | null | For a robot-issued pairing; omit to own it yourself. |
Responses
| Status | Description | Body |
|---|---|---|
200 | Confirmed; | DevicePairing |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ device-pairings/ {pairing_id}/ collect
The robot picks up what a person confirmed
The driver polls with a signature by the key it declared. The signature covers the canonical JSON of {pairing_id, ts} (ts within five minutes). While a person has not confirmed, the answer is 202 with the pairing. Once confirmed, the answer is 200 once. It carries the device (its trust mode included), the hub's approval signing key and the robot interface to pin. It also carries the device credential: an API key bound to this device, shown this once. The credential can act only as the device:
- read itself and its approvals;
- post its signed events;
- pull the model repos its live approvals name;
- read its robot card;
- open its endpoint sessions;
- upload its trial logs;
- change its own trust mode.
Anything else is 403. disconnectDevice revokes the credential. Rejected or expired: 404. Collected already: 409.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pairing_id | path | Id | Pairing id ( |
Request body
| Field | Type | Description |
|---|---|---|
ts | string (date-time) | The robot's clock; within five minutes of the hub's. |
signature | string | base64url Ed25519 signature, by the key the robot declared, over the canonical JSON of |
Responses
| Status | Description | Body |
|---|---|---|
200 | Connected; | DevicePairingClaimed |
202 | Waiting for a person to confirm. | DevicePairing |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}
Get a device
One device. A device the caller may not see is 404. The API does not answer 403 for it (see Visibility). The answer carries what a live page needs without another call:
online(a signed event withinDEVICE_ONLINE_SECONDS);running_approval_id;- the trust mode;
- the pinned interface fingerprint;
- the device credential's prefix and last use;
disconnected_at.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Responses
POST / v1/ devices/ {device_id}/ disconnect
Disconnect a device: revoke its credential
The owner cuts the device off, with a session or a write key. Neither an agent session's key nor the device's own key can do this. The device credential is revoked at once, and every later call with it is 401. The device is marked disconnected_at. A running approval is asked to stop. No request, approval or event is accepted for the device again (409). A driver that meets the 401 mid-run stops its adapter. The trail stays, and the name is free again. The same robot can be connected under it as a new device. Idempotent. Audited as device.disconnect.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Responses
POST / v1/ devices/ {device_id}/ trust-mode
The robot changes its own trust mode
Only the device: its own credential, plus a signature by its own key. The signature covers the canonical JSON of {device_id, trust_mode, ts} (ts within five minutes). On the robot, that is lucen-device trust MODE. A person chose the mode when confirming the pairing. After that the hub never flips it, and a session or any other key is 403. Switching to registered with no registered contract is 422. Audited as device.trust_mode.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Request body
| Field | Type | Description |
|---|---|---|
trust_mode | DeviceTrustMode | |
ts | string (date-time) | |
signature | string | base64url Ed25519 signature, by the device's registered key, over the canonical JSON of |
Responses
| Status | Description | Body |
|---|---|---|
200 | Changed (or already so). | Device |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}/ approval-requests
List a device's approval requests
Newest first; status narrows to one state.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
status | query | ApprovalRequestStatus | |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of requests. | ApprovalRequestPage |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ devices/ {device_id}/ approval-requests
Ask for a policy to be put on a device
An agent or a human asks: "model repo X onto device Y for T minutes". The hub pins the request to a specific ONNX and its current sha256, out of the repo's own file rows. The ONNX is onnx_path (or the repo's single *.onnx when omitted). So what the human approves is bytes. Re-pushing a file under the same name does not change what they approved.
When the model repo carries an io_contract.json sidecar, the hub fingerprints its contract block. It refuses (409) a request the device has already said it will not accept. A human should not be asked to approve what the robot will refuse. Without a sidecar the fingerprint is null, and the driver's own check on the ONNX manifest decides.
A request is a trial (mode: run) or an install (mode: install). It records the skill slot the file goes into. On a Laika, and on any robot with pre-deploy checks, a request without a slot gets one from the file. The hub uses the slot the file's signed manifest names. It reads a manifest only from bytes it has verified. There, a dry run of a file still being verified is 409. A request of such a file that names no slot is 409 too. On those robots every request needs a slot, here or in the manifest (422 without one). A dry run is still answered, and its sim check says why. Elsewhere only an install needs a slot (422). Only a Laika or a robot with pre-deploy checks gets it from the manifest. A request for an endpoint is a trial only (422). On a Laika, a trial is at most 60 minutes (422).
A device in trust mode approved also runs a contract it never registered. This needs a signed approval naming it, and a policy built for the robot interface the device pinned. The hub then answers 201 when the model's recorded embodiment_fingerprint equals the device's interface_fingerprint. It also answers 201 for an unstamped policy. That policy's approval then requires the approver's explicit unstamped_acknowledged. The device additionally compares the policy's joint order with its pinned interface. A policy built for another embodiment, or a device that pinned no interface, is still 409. checks[] says which way the contract was established. A disconnected device is 409.
The request appears in the web app as a pending card. Nothing moves until a person approves it there. key:write: it is a data mutation, and it grants nothing. A session files and then approves in two calls (one-step deploy by a person). Audited as device.request.
With dry_run: true nothing is filed or audited. The answer is 200 with the request as it would be, and checks[], device and model filled. That is what a deploy page shows before anything exists. There, a contract the device would refuse is a fail check instead of the 409.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Request body
| Field | Type | Description |
|---|---|---|
model_repo | string |
|
onnx_path | FilePath | null | Which file in the repo. Omit when the repo holds exactly one |
policy_path | string | null | A LeRobot checkpoint directory in the repo ( |
onnx_sha256 | Sha256 | null | Optional assertion. When given and the repo's current file has a different digest, the request is |
minutes | integer | How long the policy may run once approved. The window starts at approval. A trial on a Laika is at most 60 minutes ( |
reason | string | null | The reason, shown to the human on the pending card. |
endpoint_id | Id | null | Ask for the device to consume a hub inference endpoint instead of running the policy itself. The endpoint must be visible to the caller and serve |
mode | ApprovalMode |
|
slot | Slot | null | The skill slot the file goes into on the robot. Omitted on a Laika, or on a robot with pre-deploy checks, the hub reads it from the file's manifest. There every request needs a slot, and one with none is |
dry_run | boolean | Check, do not file: |
Responses
| Status | Description | Body |
|---|---|---|
200 |
| ApprovalRequest |
201 | Request recorded, status | ApprovalRequest |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}/ approval-requests/ {request_id}
Get an approval request
The consent page in one call. Besides the request itself, the answer carries:
- who asked and with which credential (
requester, andplanwhen a plan's planner filed it); - the device it is for (
device); - what would run (
model, andendpointwhen the request is endpoint-bound and the endpoint is visible to the caller); checks[]: what the hub verified against the current state of the hub, computed now.
The checks cover:
- the device's accepted contracts;
- the control class and where it would run;
- the device's declared fail-safe probe;
- the latest sim-gate scorecard for this model on this robot;
- the policy's embodiment fingerprint against the robot's interface;
- whether the pinned bytes are still what the repo (or endpoint) serves.
Absent evidence is reported as absent. It is never reported as a pass. Checks inform the person deciding. None of them approves or blocks anything.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
request_id | path | Id | Approval request id ( |
Responses
| Status | Description | Body |
|---|---|---|
200 | The request. | ApprovalRequest |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
POST / v1/ devices/ {device_id}/ approval-requests/ {request_id}/ deny
Deny an approval request (web session only)
A human says no. session scope: denying is a decision on the same footing as approving. No API key of any scope may take it. Otherwise an agent could clear its own trail of refused requests. 409 when the request is no longer pending. Audited as device.deny.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
request_id | path | Id | Approval request id ( |
Request body
| Field | Type | Description |
|---|---|---|
reason | string | null |
Responses
| Status | Description | Body |
|---|---|---|
200 | Denied. | ApprovalRequest |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}/ approvals
List a device's approvals
Newest first. status=issued is what a driver polls: approvals a human has signed that have neither been picked up nor expired. The token is returned on every read. It is a signed statement about one device and does not work as a hub credential. Only that device's driver can use it. device_id may be - for every device the caller can see. model_repo narrows the list to one model: where a model has run.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
status | query | ApprovalStatus | |
model_repo | query | string |
|
mode | query | string |
|
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of approvals. | ApprovalPage |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ devices/ {device_id}/ approvals
Approve a pending request and mint the signed token (web session only)
session scope: a human, signed in to the web app. No API key of any scope can call this. That is the whole invariant of the consent layer. The hub's programmatic credential can browse, push and ask. It cannot put a policy on a robot. Approving a pending request mints a short-lived EdDSA (Ed25519) JWT. The token is bound to the device id (sub), the model repo, and the ONNX path and its sha256. It is also bound to the contract fingerprint, the approver and exp = now + minutes. The driver verifies it offline against GET /v1/devices/signing-key. The approval's window is the run window. A policy picked up late runs for what is left of it. The driver stops it at expires_at on its own clock. 409 when the request is not pending or the device is disconnected. On a trust-mode-approved device whose request rests on an unstamped policy, unstamped_acknowledged: true is required (422 without it). It is signed into the token. The approver may shorten the window with minutes (422 above what was asked). On a device whose organization requires a second person (Org.require_second_approver), the person who asked cannot approve: 403. Audited as device.approve.
On a Laika, and on any robot with pre-deploy checks, the repo must still hold the pinned file (422 once it changed, 409 while the hub checks its bytes). A request for an endpoint skips this check. On those robots, a request that names no slot has no sim test, so it is 422. On a robot the hub runs pre-deploy checks on, a file Lucen has not certified needs its sim test, with a score. The approval names the request's report_rollout_id and sets report_acknowledged (422 without them). A file Lucen certified needs neither, in the slot Lucen certified it for. In another slot it is 422. Lucen's word counts on any Laika. On any other robot, a report_rollout_id the approver gives must still be the request's (422). A second person is required as before, for a certified file too. On a Laika, a trial is at most 60 minutes (422). The token signs mode. It also signs slot, report_rollout_id and certified when they are set.
The gate, one rule for the web, the CLI and MCP. The hub computes the request's checks (ApprovalRequest.checks) as the approver reads them. It refuses while any one is fail. That covers an incompatible policy (device.contract, embodiment.fingerprint, artifact.digest). It covers firmware below the robot's minimum or on its blocked list (firmware.version). It covers a file with no pre-deploy report that Lucen has not certified (sim_gate.scorecard, on a robot the hub runs pre-deploy checks on). Each refusal is RFC 9457 problem+json. Its errors[] carry one entry per failed check, with the check code as type and its sentence as msg. A report with failed tests needs report_acknowledged (422 without it, type: sim_gate.scorecard). A report every test of which passed does not. A runtime-release mismatch (runtime.release) warns and does not refuse. A robot whose card declares no firmware has no firmware check. Every other rule is the same on every robot.
A shadow request (mode: shadow) meets the compatibility checks and no others. Shadow moves nothing, so the sim report is not required and no tick is asked for. The contract, the embodiment fingerprint, the firmware and the pinned bytes still refuse: a candidate the robot cannot load, or that reads the wrong layout, teaches nothing. A run approval gets a bringup ladder. Its first rung is ticked by a finished shadow run of the same file on the same device within the last 24 hours.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Request body
| Field | Type | Description |
|---|---|---|
request_id | Id | |
safety_acknowledged | boolean | The approver confirmed that they or someone else is at the robot, with a hardware emergency stop within reach. They confirmed it on the page where they approved. It is recorded in the |
unstamped_acknowledged | boolean | The approver read that the policy records no embodiment fingerprint and approved it onto this trust-mode- |
minutes | integer | null | The approver may shorten the window. At most the minutes the request asked for; more is a |
report_rollout_id | Id | null | The pre-deploy report the approver read. An uncertified file needs it ( |
report_acknowledged | boolean | The approver read that report, failed tests included, and approves the file for this robot. Omitted, it is false. Required ( |
Responses
| Status | Description | Body |
|---|---|---|
201 | Approved; | Approval |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}/ approvals/ {approval_id}
Get an approval
The approval, token included, plus what a live page polls: seconds_left in the window, stop_requested_at, and the latest heartbeat while it runs.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
approval_id | path | Id | Approval id ( |
Responses
POST / v1/ devices/ {device_id}/ approvals/ {approval_id}/ stop
Stop a deployment now (web session only)
The STOP button. A signed-in person who can see the device ends an approval before its window does. No API key of any scope may call it. Approving, confirming and stopping a deployment are a person's decisions. So no agent and no device credential can stop a robot either. There is no MCP tool for it. An issued approval ends at once (stopped; it can never start). A running one gets stop_requested_at, and it can never start again. The driver reads the field off its next heartbeat's answer, every two seconds by default. It calls the adapter's hold() when the adapter has one, then stop(), and posts a signed stopped with reason stop_requested. So a stop lands within one heartbeat interval plus two network round trips, while the robot can reach the hub. A robot that cannot reach the hub stops the policy itself about ten seconds after it loses the hub. It hears the stop when the link returns. This is not a safety system. The safety system is a person at a hardware emergency stop. Idempotent while running; 409 on an approval that already ended, unless the robot has reported running since the hub ended it (then the flag is set again). Audited as device.stop, with the person who pressed it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
approval_id | path | Id | Approval id ( |
Request body
| Field | Type | Description |
|---|---|---|
reason | string | null |
Responses
| Status | Description | Body |
|---|---|---|
200 | Stopped ( | Approval |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
POST / v1/ devices/ {device_id}/ approvals/ {approval_id}/ rungs/ {n}
Tick a rung of the bring-up ladder (web session only)
session scope, like approving: no API key of any scope can call it. The person at the robot, from their phone, attests that the rung went right. The approver, or any member of the organization that owns the device, may tick. Rungs 1 to 3 are ticked in order while the approval is running. Rung 0 (shadow) is satisfied by a finished shadow run, and can only be skipped here, with a reason. The robot is asked to do nothing: it behaves the same at every rung, and the hub records what the person attested. A tick after the rung's own window is still taken; the window is informational and extends nothing. The driver reads the tick off its next heartbeat's answer (rungs_ticked) and acknowledges it with a signed rung event. Audited as device.rung. 409 on a rung already ticked or out of order, and on an approval that is not running. 422 on a skip without a reason, or a skip of rung 1 to 3.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
approval_id | path | Id | Approval id ( |
n | path | integer | The rung, 0 to 3. |
Request body
| Field | Type | Description |
|---|---|---|
skip | boolean | Skip rung 0 (shadow) instead of running one. Rungs 1 to 3 cannot be skipped. |
reason | string | null | Why rung 0 is skipped. Required with |
Responses
| Status | Description | Body |
|---|---|---|
200 | The approval with its ladder. | Approval |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}/ approvals/ {approval_id}/ shadow
The shadow run's trace and stats
What the robot reported during a shadow approval: the predicted and the applied joint targets over time, thinned to at most points samples, the latest stats and how it ended. The hub stores every trace sample the robot sent and thins on read. Under the device's rule: an approval you may not see is 404. 409 on an approval that is not a shadow run.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
approval_id | path | Id | Approval id ( |
points | query | integer | The most samples to return; the hub thins evenly to it. |
Responses
| Status | Description | Body |
|---|---|---|
200 | The trace, thinned, with the stats. | ShadowTrace |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
POST / v1/ devices/ {device_id}/ slots/ {slot}/ restore
Put a slot's previous policy back (web session only)
session scope, like approving: no API key of any scope can call it. One press on the live view or the fleet page. The hub finds the slot's newest installed approval and the one before it. It files an install request for that previous file, its path and the digest it installed, through the same path as createApprovalRequest (device.request audited). It then approves that request at once as the person pressing, through the same gate createApproval runs. The previous approval's report and acknowledgment carry over when that report is still the file's bound one. A report the person has not acknowledged is refused the way createApproval refuses it. The robot verifies the signed token and installs as it does any install. Audited as device.approve with restore_of naming the approval it replaces. 409 when the hub installed nothing before the current file in this slot; the robot's own laika policy rollback is the way back to a factory file. Also 409 when the device is disconnected, or when the previous file's bytes are no longer in its repo. 422 from the gate, with the failed check codes. 403 under a second-person rule when the person pressing filed the current install.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
slot | path | Slot |
Request body
| Field | Type | Description |
|---|---|---|
safety_acknowledged | boolean | As on |
minutes | integer | null | How long the robot has to fetch the file. Omitted, the previous install's own window. |
Responses
| Status | Description | Body |
|---|---|---|
201 | The install approval for the previous file; the robot picks it up. | Approval |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ devices/ {device_id}/ events
List a device's events
Newest first; approval_id narrows to one approval's trail.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
approval_id | query | Id | |
kind | query | DeviceEventKind | |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of events. | DeviceEventPage |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ devices/ {device_id}/ events
Record a telemetry summary from the driver
The driver's four words back to the hub about one approval: started, heartbeat (a few scalars), stopped or refused. A refused event carries the reason (bad signature, expired, wrong device, digest mismatch, contract mismatch). Events are summaries. They carry no control. The body is capped at 64 KiB, and nothing here reaches the robot. Every event is signed with the device's own Ed25519 key (signature over the canonical payload). The hub verifies it against the key registered for the device. So a started row is evidence from the box that holds the private key. Holding the hub API key alone cannot produce one. Transitions are checked: started needs an issued, unexpired approval; heartbeat and stopped need running; refused needs issued. installed needs an install approval (409 on a trial). It is taken while issued, and also once the pickup window has passed. Its summary must name the approval's sha256 and slot. activated must be a boolean, and via is cli or serve. Any other summary is 422. The answer carries the approval's stop_requested_at. A driver reads a person's Stop off its next heartbeat. key:write: a row is a data mutation, and the driver's key still cannot approve anything. started/stopped/refused/installed are audited (device.started / device.stopped / device.refused / device.installed). Heartbeats are not audited.
Two kinds since the bring-up ladder. rung is the robot's signed acknowledgment of a rung a person ticked; it needs running. Its summary names n and name. status is the robot's report of itself with no approval running: approval_id is null, and the summary carries the adapter's status. The hub keeps the firmware, runtime, hardware id and slots it reports. The driver posts one on start, when those change, and otherwise at most every 15 minutes. Neither is audited. The answer also carries rungs_ticked: the rungs a person ticked that the robot has not acknowledged yet.
recording is the bridge's progress while a person records demonstrations on the robot. approval_id is null. The hub checks the summary's keys and their types, and the signed ts must be within five minutes of the hub's clock (422 otherwise). It is not audited. listDeviceEvents with kind=recording and limit=1 is the latest progress.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Request body
| Field | Type | Description |
|---|---|---|
approval_id | Id | null | The approval the event is about. Null for a |
kind | DeviceEventKind | |
ts | string (date-time) | The driver's clock when the event happened; part of the signed payload. |
summary | object | A few scalars ( |
message | string | null | |
signature | string | base64url Ed25519 signature, by the device's registered key, over the canonical JSON of |
Responses
| Status | Description | Body |
|---|---|---|
201 | Event recorded. | DeviceEvent |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
413 | The summary exceeds 64 KiB. | Problem |
422 | Request failed validation. | Problem |
GET / v1/ approval-requests/ {request_id}
Get an approval request by its id alone
getApprovalRequest without the device in the path. The consent page has a URL of its own (/inbox/requests/{id}), and a link to it carries only the request id. Same body (device, model, endpoint and checks[] computed now) and the same rule. A request on a device the caller cannot see is 404. The API does not answer 403 here, because that would confirm the request exists.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
request_id | path | Id | Approval request id ( |
Responses
| Status | Description | Body |
|---|---|---|
200 | The request, with everything a person needs before deciding. | ApprovalRequest |
401 | Missing or invalid credentials. | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
POST / v1/ devices/ {device_id}/ bridge-tickets
Get a ticket that pairs a web page with the robot's bridge
The hub's web page asks for a ticket, then posts it to the bridge on the person's computer (POST /v1/web/pair there). The ticket is an EdDSA token signed with the hub's device-signing key. It names the device, the person and the page's origin, and it expires after 120 seconds. The bridge verifies it offline with the key it pinned at registration, and takes each ticket once. The origin is the request's Origin header, or origin in the body. It must be one of this hub's own web origins (422 otherwise). Only a signed-in person gets one: a paired page can record on the robot, so no key of any scope pairs a page. The caller must see the device (404 otherwise). Audited as device.bridge_ticket.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Request body
| Field | Type | Description |
|---|---|---|
origin | string | null | The web origin the ticket is for, when the request carries no |
Responses
| Status | Description | Body |
|---|---|---|
201 | The ticket. | BridgeTicket |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
Schemas (61)
The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.
DeviceSigningKey
| Field | Type | Description |
|---|---|---|
alg | string | |
kid | string | Key id carried in every approval token's header. |
public_key_pem | Ed25519PublicKeyPem | |
issuer | string | The |
audience | string | The |
ephemeral | boolean | True when |
DevicePage
| Field | Type | Description |
|---|---|---|
items | array of Device | |
next_cursor | string | null |
DeviceRegister
| Field | Type | Description |
|---|---|---|
name | Slug | |
robot_repo | string |
|
owner | Handle | null | Owner handle (user or org). Omit to own it yourself. |
adapter | DeviceAdapter | |
accepted_contracts | array of ContractFingerprint | At least one in trust mode |
public_key_pem | Ed25519PublicKeyPem | |
endpoint_capable | boolean | Declare that the adapter implements hold / stop and may consume an endpoint. The driver sets this from the adapter's own code: the
|
adapter_info | DeviceAdapterInfo | null | Where the adapter's code came from and which protocols it implements. Optional; older drivers omit it. |
trust_mode | DeviceTrustMode | |
interface_fingerprint | string | null | The robot card's interface fingerprint the driver pinned before registering. When given, it must equal the card's current one. |
description | string | null |
Device
| Field | Type | Description |
|---|---|---|
id | Id | |
name | Slug | |
owner | RepoOwner | |
robot_repo | RepoRef | null | The robot repo this device embodies; null once that repo is deleted. |
adapter | DeviceAdapter | |
accepted_contracts | array of ContractFingerprint | The IO-contract fingerprints this device registered; in trust mode |
trust_mode | DeviceTrustMode | |
interface_fingerprint | string | null | The robot card's embodiment interface fingerprint this device pinned. An |
online | boolean |
|
key_fingerprint | string | sha256 (hex) of the device's raw 32-byte Ed25519 public key. |
running_approval | Approval | null | The approval this device reported |
credential | DeviceCredential | null | The device's own credential when it was paired; null for a device registered with a person's API key. |
disconnected_at | string (date-time) | null (date-time) | When the owner disconnected it; nothing is accepted for it after. |
public_key_pem | Ed25519PublicKeyPem | |
endpoint_capable | boolean | Whether this device may consume a hub inference endpoint. True only when its adapter implements the mandatory local fail-safe. That fail-safe is hold / stop on a missed chunk deadline or a lost link. A request naming an |
adapter_info | DeviceAdapterInfo | null | What the driver declared about the adapter at registration; null for a device registered before it. |
firmware | DeviceFirmware | null | The control-board firmware the robot last reported, taken from the adapter's |
runtime | DeviceRuntime | null | The policy runtime the robot last reported, the same way. Null until reported. |
hardware_id | string | null | The robot's own hardware identity as it reports it (a Laika's controller chip id, hex). Null until reported. The hub shows it so a person can tell which physical robot a device is; it decides nothing. |
slots | array of DeviceSlot | The robot's skill slots: what the hub approved for each, from the newest |
state_reported_at | string (date-time) | null (date-time) | When the robot last reported firmware, runtime, hardware id or slots. |
description | string | null | |
registered_by | UserPublic | null | |
last_seen_at | string (date-time) | null (date-time) | When the hub last heard from the driver: its last signed event. For a paired device, its own credential polling also updates it. Polling is recorded at most every ten seconds, so an idle connected robot reads online. |
created_at | string (date-time) | |
updated_at | string (date-time) |
DevicePairingCreate
DevicePairing
| Field | Type | Description |
|---|---|---|
id | Id | |
status | DevicePairingStatus | |
initiated_by | string |
|
code | string | null | The code, |
owner | RepoOwner | null | Null for a robot-issued pairing until a person confirms it. |
robot_repo | RepoRef | null | |
name | string | null | |
declared | DevicePairingDeclared | null | What the robot declared; null until it claims. |
interface_fingerprint | string | null | The robot card's interface fingerprint the device will pin (the robot repo's, once known). |
expires_at | string (date-time) | |
claimed_at | string (date-time) | null (date-time) | |
confirmed_at | string (date-time) | null (date-time) | |
collected_at | string (date-time) | null (date-time) | |
device_id | Id | null | The device a person confirmed. |
created_by | UserPublic | null | |
created_at | string (date-time) |
DevicePairingClaim
What registerDevice takes, minus robot_repo, owner and trust_mode (a person decides those), plus the code when a person issued one.
| Field | Type | Description |
|---|---|---|
code | string | null | The pairing code, any case, dash optional. Omit to have the hub issue one for the robot to show. |
name | Slug | null | A suggested name; the pairing's or the confirming person's wins. |
adapter | DeviceAdapter | |
adapter_info | DeviceAdapterInfo | null | |
accepted_contracts | array of ContractFingerprint | |
public_key_pem | Ed25519PublicKeyPem | |
endpoint_capable | boolean | |
description | string | null |
DevicePairingConfirm
| Field | Type | Description |
|---|---|---|
trust_mode | DeviceTrustMode | |
name | Slug | null | The device's name; else the pairing's, else the robot's suggestion. |
robot_repo | string | null | Required for a robot-issued pairing (a robot repo visible to you); must match for a person-issued one. |
owner | Handle | null | For a robot-issued pairing; omit to own it yourself. |
DevicePairingCollect
| Field | Type | Description |
|---|---|---|
ts | string (date-time) | The robot's clock; within five minutes of the hub's. |
signature | string | base64url Ed25519 signature, by the key the robot declared, over the canonical JSON of |
DevicePairingClaimed
| Field | Type | Description |
|---|---|---|
device | Device | |
api_key | string | The device credential ( |
signing_key | DeviceSigningKey | |
robot_interface | object | null | The robot card's embodiment interface, to pin; its fingerprint is |
DeviceTrustModeChange
| Field | Type | Description |
|---|---|---|
trust_mode | DeviceTrustMode | |
ts | string (date-time) | |
signature | string | base64url Ed25519 signature, by the device's registered key, over the canonical JSON of |
ApprovalRequestStatus
ApprovalRequestPage
| Field | Type | Description |
|---|---|---|
items | array of ApprovalRequest | |
next_cursor | string | null |
ApprovalRequestCreate
| Field | Type | Description |
|---|---|---|
model_repo | string |
|
onnx_path | FilePath | null | Which file in the repo. Omit when the repo holds exactly one |
policy_path | string | null | A LeRobot checkpoint directory in the repo ( |
onnx_sha256 | Sha256 | null | Optional assertion. When given and the repo's current file has a different digest, the request is |
minutes | integer | How long the policy may run once approved. The window starts at approval. A trial on a Laika is at most 60 minutes ( |
reason | string | null | The reason, shown to the human on the pending card. |
endpoint_id | Id | null | Ask for the device to consume a hub inference endpoint instead of running the policy itself. The endpoint must be visible to the caller and serve |
mode | ApprovalMode |
|
slot | Slot | null | The skill slot the file goes into on the robot. Omitted on a Laika, or on a robot with pre-deploy checks, the hub reads it from the file's manifest. There every request needs a slot, and one with none is |
dry_run | boolean | Check, do not file: |
ApprovalRequest
| Field | Type | Description |
|---|---|---|
id | Id | |
device_id | Id | |
status | ApprovalRequestStatus | |
model_repo | RepoRef | |
onnx_path | FilePath | |
onnx_sha256 | Sha256 | |
contract_fingerprint | ContractFingerprint | null | The pinned policy's inputs and outputs. |
contract_source | ContractSource | null | Where |
minutes | integer | |
reason | string | null | |
requested_by | UserPublic | null | |
requested_via | string | Which kind of credential asked: an agent's key or a person's session. |
approval_id | Id | null | |
decided_by | UserPublic | null | |
decided_at | string (date-time) | null (date-time) | |
decision_reason | string | null | |
endpoint_id | Id | null | The endpoint this request asks the device to consume; null for a run-it-yourself deployment. |
mode | ApprovalMode | |
slot | Slot | null | The slot asked for, or the one the manifest names when none was asked. |
suggested_slot | Slot | null | The slot the file's signed manifest names. Only the answer to |
certified | boolean | Whether Lucen certified these bytes for this robot. A certified file needs no pre-deploy report in the slot Lucen certified it for. Approving it for another slot is |
report_rollout_id | Id | null | The pre-deploy report of these bytes on this robot, for the request's slot. It is the sim test the approver reads. Null when there is none. Null when the request names no slot. |
requester | ActivityActor | null | Who asked, and with which credential: a person's session or an API key (its name, prefix and scope). It also carries |
plan | ApprovalPlan | null | The plan that filed this request, when a planner did. |
device | Device | null | Where it would run: the device the request is for. |
model | ApprovalModelFacts | null | What would run: the artifact, its control class and where that class says it may run. It also names the embodiment the policy was built for. |
endpoint | Endpoint | null | The endpoint an endpoint-bound request would consume, when it is visible to the caller. Null otherwise, and the |
checks | array of ApprovalCheck | null | What the hub checked, computed from the hub's current state on every read. |
trial_id | string | null | The real-robot trial this request was filed for (its run sheet is locked when the request is approved); null otherwise. |
second_person_required | boolean | True when the device belongs to an organization that requires a second person ( |
timeline | array of ApprovalTimelineEntry | null | The request's audit trail, oldest first: requested, approved or denied, started, stop requested, stopped or expired. Read from the append-only audit log and the device's signed events, so an entry never changes once written. |
created_at | string (date-time) |
ApprovalDecision
| Field | Type | Description |
|---|---|---|
reason | string | null |
ApprovalStatus
issued: signed, not yet picked up.running: the driver reportedstarted.stopped: the driver reportedstopped, or a person stopped it before it started.refused: the driver refused it and said why.installed: the robot has the file of aninstallapproval, and its bytes matched the token. Whether the policy is in use shows in the robot's next status.expired:issuedpastexpires_at(computed and never stored).
ApprovalPage
| Field | Type | Description |
|---|---|---|
items | array of Approval | |
next_cursor | string | null |
ApprovalCreate
| Field | Type | Description |
|---|---|---|
request_id | Id | |
safety_acknowledged | boolean | The approver confirmed that they or someone else is at the robot, with a hardware emergency stop within reach. They confirmed it on the page where they approved. It is recorded in the |
unstamped_acknowledged | boolean | The approver read that the policy records no embodiment fingerprint and approved it onto this trust-mode- |
minutes | integer | null | The approver may shorten the window. At most the minutes the request asked for; more is a |
report_rollout_id | Id | null | The pre-deploy report the approver read. An uncertified file needs it ( |
report_acknowledged | boolean | The approver read that report, failed tests included, and approves the file for this robot. Omitted, it is false. Required ( |
Approval
| Field | Type | Description |
|---|---|---|
id | Id | |
device_id | Id | |
request_id | Id | |
status | ApprovalStatus | |
model_repo | RepoRef | |
onnx_path | FilePath | |
onnx_sha256 | Sha256 | |
contract_fingerprint | ContractFingerprint | null | |
minutes | integer | |
approved_by | UserPublic | null | |
issued_at | string (date-time) | |
expires_at | string (date-time) | When the policy must be stopped; |
token | string | The signed EdDSA JWT the driver verifies offline. |
kid | string | null | Which hub signing key signed it. |
started_at | string (date-time) | null (date-time) | |
stopped_at | string (date-time) | null (date-time) | When the hub heard the robot's |
endpoint_id | Id | null | Bound inside the token when the approved request named an endpoint. |
trial_id | string | null | The trial this approval runs. When set, the token also binds |
safety_acknowledged | boolean | The e-stop confirmation, as the approver gave it; signed into the token. |
unstamped_acknowledged | boolean | The approver acknowledged an unstamped policy; signed into the token. |
mode | ApprovalMode | |
slot | Slot | null | The skill slot the file goes into, from the request; signed into the token. |
report_rollout_id | Id | null | The pre-deploy report the approver read; signed into the token. Null when they gave none, as for a certified file. |
report_acknowledged | boolean | The approver read the report, failed tests included. Recorded on the approval and in the audit log. |
certified | boolean | Whether Lucen certified these bytes for this robot when the hub signed. Signed into the token when true. |
installed_at | string (date-time) | null (date-time) | When the robot reported |
stop_requested_at | string (date-time) | null (date-time) | When a person pressed STOP on a running approval. The driver reads it off its next heartbeat, holds, stops and posts |
stop_requested_by | UserPublic | null | Who pressed STOP, read from the |
seconds_left | number | null | Seconds left in the window for an |
latest_heartbeat | DeviceEvent | null | The newest heartbeat the driver posted while it runs; null otherwise. |
link_lost_at | string (date-time) | null (date-time) | Set on a |
stop_reason | string | null | The robot's own reason from its signed |
robot_stopped_at | string (date-time) | null (date-time) | The robot's own claimed time of stopping, the |
robot_running_after_stop_at | string (date-time) | null (date-time) | When the robot last reported a heartbeat after the hub had ended this approval on silence. The hub takes that heartbeat once, as evidence the policy is still running, and answers it with the stop. STOP stays available while this is set. Null once the robot reports it stopped. |
bringup | Bringup | null | The bring-up ladder of a |
shadow | ShadowSummary | null | What a shadow run reported so far: its latest stats and how it ended. Null until the robot reports, and on every other mode. The trace is |
created_at | string (date-time) |
RungTick
A person's tick on rung 1 to 3, or a skip of rung 0 with a reason.
| Field | Type | Description |
|---|---|---|
skip | boolean | Skip rung 0 (shadow) instead of running one. Rungs 1 to 3 cannot be skipped. |
reason | string | null | Why rung 0 is skipped. Required with |
ShadowTrace
| Field | Type | Description |
|---|---|---|
approval_id | Id | |
summary | ShadowSummary | |
trace | array of ShadowPoint | At most |
decimated | boolean | True when the hub stored more samples than it returned. |
SlotRestore
What a person confirms when putting a slot's previous policy back.
| Field | Type | Description |
|---|---|---|
safety_acknowledged | boolean | As on |
minutes | integer | null | How long the robot has to fetch the file. Omitted, the previous install's own window. |
DeviceEventKind
started / heartbeat / stopped / refused, plus five more:
degraded: the device's local fail-safe fired (two chunk deadlines missed or the endpoint link lost). It holds posture and applies nothing stale.recovered: the link returned and chunks flow again.verified: the token verified offline on the box.pulled: the files pulled and the digest the token binds matched.installed: the robot has the file of aninstallapproval. The command line checked its bytes against the token, or the robot's adapter took it while serving. The robot's next status says whether the policy is in use. The summary carriesvia(cliorserve),sha256,slot,activated,certifiedandreport_rollout_id. Thesha256andslotmust be the approval's. An adapter that will not take the file sendsrefusedwith reasonadapter_refused.
degraded and recovered are allowed from running, and both are audited. verified and pulled come from issued, before started. They are not audited and do not change the state. installed comes from issued, on an install approval only (409 on a trial). It is also taken after the pickup window, and the request's trail marks it late. It is audited and ends the approval as installed.
A stopped whose summary.reason is link_lost says the robot lost the hub while a policy ran on it and stopped the policy itself. The driver posts it when the link returns, with the robot's own ts. The hub takes it once even on an approval it already ended for that lost link; it records the robot's time and reopens nothing. A heartbeat on that ended approval is taken once as evidence the policy still runs, audited as device.heartbeat_after_stop, and answered with stop_requested_at set. A second one is 409.
rung: the robot acknowledged a rung of the bring-up ladder that a person ticked. Allowed fromrunning. The summary carriesnandname, and the adapter's status. Not audited; the person's tick is (device.rung).status: the robot's report of itself while no approval runs.approval_idis null. The summary carries the adapter's status, and the hub keeps its firmware, runtime, hardware id and slots. Not audited, and it changes no approval.recording: the bridge's progress while it records demonstrations.approval_idis null. The summary carriesrecording_id,robot,hub_robot,task,episode(1-based) andepisodes. It also carriesphase:ready,recording,review,resetting,saving,doneorstopped. Then comesaved,discarded,elapsed_sandphase_left_s, plusreasononce the phase isdoneorstopped. The bridge sends one at each phase change and every 10 s. Not audited, and it changes no approval.
DeviceEventPage
| Field | Type | Description |
|---|---|---|
items | array of DeviceEvent | |
next_cursor | string | null |
DeviceEventCreate
| Field | Type | Description |
|---|---|---|
approval_id | Id | null | The approval the event is about. Null for a |
kind | DeviceEventKind | |
ts | string (date-time) | The driver's clock when the event happened; part of the signed payload. |
summary | object | A few scalars ( |
message | string | null | |
signature | string | base64url Ed25519 signature, by the device's registered key, over the canonical JSON of |
DeviceEvent
| Field | Type | Description |
|---|---|---|
id | Id | |
device_id | Id | |
approval_id | Id | null | |
kind | DeviceEventKind | |
ts | string (date-time) | |
summary | object | |
message | string | null | |
stop_requested_at | string (date-time) | null (date-time) | On the |
rungs_ticked | array of integer | On the |
created_at | string (date-time) |
BridgeTicketCreate
| Field | Type | Description |
|---|---|---|
origin | string | null | The web origin the ticket is for, when the request carries no |
BridgeTicket
| Field | Type | Description |
|---|---|---|
ticket | string | The signed token. Its type is |
expires_at | string (date-time) | |
device_id | Id | |
origin | string | The web origin the bridge will accept the ticket from. |
Ed25519PublicKeyPem
An Ed25519 public key, PEM (SubjectPublicKeyInfo).
DeviceAdapter
The identifier of the adapter the driver hands an approved policy to. It is an open identifier, with no closed list of values. Adapters are plugins on the robot box. The driver discovers them through the Python entry-point group lucen_device.adapters. An unpackaged script is named as module:Class instead. This field holds the entry-point name, or the class's own name for a module:Class adapter. The operator names it at lucen-device register. The driver never loads an adapter nobody asked for.
Built in:
virtualvalidates the contract and "runs" it for the approved window, emitting heartbeats. It simulates no physics and runs no inference. It exists so the whole consent path runs in CI with no hardware.commandshells out to the robot's own start/stop/status commands. They come from the driver's local config. They never come from the hub.lucen-leggedis the deprecated alias ofcommandand keeps working.
The hub cannot see the code behind an identifier. What ran is recorded in adapter_info and in the signed started event.
ContractFingerprint
sha256 of the canonical JSON (sort_keys, no whitespace, UTF-8) of a stamped ONNX manifest's contract block. That block holds the joint order, obs spec, action scales, control rate and the rest of the IO contract. Two policies with the same fingerprint drive the same plant the same way.
DeviceAdapterInfo
What the driver says about the adapter it loaded: where the code came from and which protocols it implements. It is a declaration by the robot box, recorded so the trail says what ran. The hub cannot verify code it cannot see, and it does not claim to.
| Field | Type | Description |
|---|---|---|
source | string |
|
target | string | null | The |
distribution | string | null | The installed distribution that provides the adapter; null for an unpackaged script. |
version | string | null | That distribution's version. For a |
driver_version | string | null | The |
protocols | array of DeviceAdapterProtocol | |
fail_safe_probe | string | null | Outcome of the driver's registration probe of the local fail-safe. The probe calls |
DeviceTrustMode
Chosen by the person who confirms a pairing, or by the box itself at registerDevice. Afterwards only the device changes it (setDeviceTrustMode).
registered: the box runs only IO contracts it registered (accepted_contracts). This is the original behaviour and the default.approved: the box also runs a contract it never registered, when both of these hold. A signed approval names that contract, and the policy'sembodiment_fingerprintequals the robot interface fingerprint the box pinned. An unstamped policy additionally needs the approver's recorded acknowledgment in the token. It also needs a contract that fits the pinned interface: the same joint order and control rate, one action per joint. The box checks that fit itself.
DeviceCredential
The device's own API key, bound to the device. It is minted when the robot collects a confirmed pairing. It can act only as the device. Only its prefix is ever shown again.
| Field | Type | Description |
|---|---|---|
prefix | string | |
created_at | string (date-time) | |
last_used_at | string (date-time) | null (date-time) | Coarse (about a minute). It answers "is the driver still polling?". |
revoked_at | string (date-time) | null (date-time) |
DeviceFirmware
The control-board firmware a robot reported, verbatim from its signed status.
| Field | Type | Description |
|---|---|---|
component | string | Which part of the robot the version is of, as the robot names it. |
version | FirmwareVersion | |
reported_at | string (date-time) |
DeviceRuntime
The policy runtime a robot reported, verbatim from its signed status.
| Field | Type | Description |
|---|---|---|
name | string |
|
version | string | The runtime's release ( |
modified | boolean | True when the robot says its runtime files no longer match the signed release. |
integrity | string | null | The robot's own word on its runtime files: |
reported_at | string (date-time) |
DeviceSlot
One skill slot on a robot: what the hub approved for it, and what the robot reports is running in it. approved_* come from the newest installed approval for the slot; running_* from the robot's signed status. Either side may be null.
| Field | Type | Description |
|---|---|---|
name | Slot | |
policy_repo | RepoRef | null | The policy repo of the approved install; null when the hub installed nothing here. |
approved_sha256 | Sha256 | null | |
approved_approval_id | Id | null | |
running_sha256 | string | null | The digest the robot reports in the slot. A Laika reports the first 16 hex characters, so compare by prefix. |
tier | string | null | The tier the robot reports for the slot's file; null when it reports none. |
DevicePairingStatus
pending: a code a person issued, no robot yet.claimed: a robot declared itself and waits for a person.confirmed: a person confirmed and the device exists.collected_atsays whether the robot picked up its credential.rejected: "Not my robot".expired: ten minutes passed unconfirmed (computed).
DevicePairingDeclared
What the robot declared when it claimed. The person who confirms sees it.
| Field | Type | Description |
|---|---|---|
adapter | DeviceAdapter | |
adapter_info | DeviceAdapterInfo | null | |
accepted_contracts | array of ContractFingerprint | |
endpoint_capable | boolean | |
key_fingerprint | string | sha256 (hex) of the raw Ed25519 public key; the robot prints the same. |
name | string | null | The name the robot suggested. |
description | string | null |
ApprovalMode
run: a trial. The robot runs the policy for the approved minutes, then goes back to the one it had.install: the robot keeps the policy. The minutes are how long it has to fetch the file.shadow: the policy computes on the robot beside the one running. Its actions are not applied. The robot reports the predicted actions next to the applied ones for the approved minutes. Nothing moves because of it. A finished shadow run is the first rung of a trial's bring-up ladder.
ContractSource
Where the hub read a policy's inputs and outputs. stamp: the lucen_manifest inside the pinned file itself (a checkpoint carries its own). sidecar: the repo's io_contract.json, because the pinned file parsed cleanly and carries no stamp. endpoint: the endpoint the request names. unreadable: the hub could not read the pinned file (over 64 MiB, not an ONNX model, a stamp that does not parse). It is never judged by the sidecar then: filing it is 409, and a dry run's contract check reads fail.
ApprovalPlan
The plan a planner-filed request came from.
| Field | Type | Description |
|---|---|---|
id | Id | |
task | string | |
status | PlanStatus | |
run_id | Id | |
budget_usd | number | |
cost_usd | number | |
expires_at | string (date-time) | When the plan hands back whatever it is doing. |
ApprovalModelFacts
What would run if the request were approved. For an endpoint-bound request it is read from the endpoint. Otherwise it is read from the model repo's ModelMeta.
| Field | Type | Description |
|---|---|---|
artifact | string |
|
control_class | ControlClass | null | |
control_class_source | string |
|
runs_on | string |
|
policy_type | string | null | |
robot | string | null | The robot the policy was built for ( |
embodiment_fingerprint | string | null |
Endpoint
| Field | Type | Description |
|---|---|---|
id | Id | |
name | string | null | |
status | EndpointStatus | |
executor | RunExecutor | |
model_repo | RepoRef | |
onnx_path | FilePath | The served artifact's path: the ONNX file, or the checkpoint directory ( |
model_sha256 | Sha256 | Every claim, session token and device approval binds to this digest. It is the ONNX's sha256, or the directory's |
artifact | EndpointArtifact | |
policy_format | string | null | The manifest's |
base_model | string | null | What a PEFT adapter sits on (e.g. |
contract_fingerprint | ContractFingerprint | null | Read from the repo's |
control_class | ControlClass | |
params | integer | null | |
vram_basis | EndpointSizeBasis | null | Which bytes sized the tier. Null on an endpoint created before the rule existed. |
weight_bytes | integer | null | The bytes the tier was sized from, before headroom. |
tier | string | The tier the model's size selected (the one it is priced on). |
rate_usd_per_hour | number | The tier's billed hourly rate. On Lucen cloud it accrues for every second the endpoint is up, from the claim to the stop. 0 on |
priced | boolean | Whether the hub bills this endpoint. False on |
idle_stop_minutes | integer | Minutes with no open session before the hub stops the endpoint; |
keep_warm | boolean |
|
session_idle_seconds | integer | The server closes a session with no chunk request for this long (reason |
idle_since | string (date-time) | null (date-time) | When the endpoint last had no open session: its claim, or the close of its last session. Null while a session is open or before a claim. The hub stops the endpoint |
stop_reason | string | null | Why it stopped. The hub asks the server to stop for one of four reasons. |
owner | RepoOwner | |
created_by | UserPublic | null | |
url | string | null | The websocket URL the claiming server stated; null until claimed. |
claimed_by | string | null | The server name given to |
claimed_at | string (date-time) | null (date-time) | |
heartbeat_at | string (date-time) | null (date-time) | The server's last claim or report. |
stop_requested_at | string (date-time) | null (date-time) | Set by |
max_hours | number | null | |
budget_usd | number | null | A hard cap on the endpoint's cost. The hub asks the server to stop on the report whose uptime cost reaches it ( |
cost_usd | number | null | What the endpoint has cost (4 decimal places). On the |
cost_basis | EndpointCostBasis | |
billed_seconds | number | null | The seconds the endpoint is billed for: from the claim to now while it runs, to the stop once it ended. The hub ends a server that went silent at its last report, and bills to that. Null before a claim and on the |
sessions_open | integer | |
sessions_total | integer | |
chunks_served | integer | Summed over every session, as the server reported. |
gpu_seconds | number | Summed over every session, as attributed by the server. |
service_ms_p95 | number | null | The worst p95 service time (receive → send) over the open sessions. With none open, the p95 of the latest session that measured one. |
rtt_ms_p95 | number | null | The worst p95 round trip the devices reported over the open sessions. With none open, the p95 of the latest session that reported one. |
modal_call_id | string | null | The Modal function call serving a |
dispatched_at | string (date-time) | null (date-time) | When the hub spawned the |
error | string | null | |
created_at | string (date-time) | |
started_at | string (date-time) | null (date-time) | |
stopped_at | string (date-time) | null (date-time) | |
updated_at | string (date-time) |
ApprovalCheck
One thing the hub verified before a person decides. Codes:
device.contract: the device registered this contract fingerprint.model.control_class: reflex runs only on the robot. Only skill / planner may be served.device.fail_safe: the probe the device DECLARED. The hub cannot run it.sim_gate.scorecard: the pinned file's own sim test on this device's robot. On a robot the hub runs pre-deploy checks on, it is the file's pre-deploy report. None isfailunless Lucen certified the file (pass). Failed tests arewarn, named inevidence.failures. Elsewhere it is the newest finished sim test of the file in the policy's own repo. That is the caller's own, one run by someone who can edit the policy, or one published there. None isabsent. A test of the same file in another repo never counts. A test that ran these bytes as a checkpoint counts too: a campaign's scan, its control, or a test while the run trained. It is matched by the digest the worker measured. It says what it measured and never refuses: one that failed iswarn. Itsevidenceaddscheckpoint_step,purposeandupright(episodes upright, episodes).evidenceholdsrollout_id,onnx_sha256,battery,gates_passed,gates_total,failuresandcertified(certified,revokedor null). It also holds the report'sslotandslot_from(manifestorowner). A certified pass holds the slot Lucen certified, withslot_from: certified, and a report's facts only when that report is of the same slot.report_hiddenis true when a report exists that the caller cannot see. A file whose upload the hub has not yet verified gets no report and no certified pass.embodiment.fingerprint: the policy's recorded fingerprint against the robot's current interface.artifact.digest: the pinned bytes are still what the repo holds. It iswarnwhile the hub is still checking the bytes of a large upload (evidence.verifiedfalse).endpoint.serving: the endpoint is claimed and not stopping.firmware.version: the controller firmware the robot last reported (Device.firmware) against the robot card'shardware.firmware. Belowrequired_minor onblockedisfailand the hub refuses to approve. Not yet reported isabsent. A card that declares no firmware gets no such check.evidenceholdsreported,required_min,blockedandreported_at.runtime.release: the policy's stampedruntime_releaseagainst the runtime the robot last reported (Device.runtime). Equal ispass. A stamp the robot does not run, or no stamp, iswarn, which does not refuse. Not reported isabsent. A card that declares nohardware.runtimegets no such check.
The gate: createApproval refuses (422) while any check is fail, and names each failed code in errors[].type.
New codes may be added. Render unknown ones by status and message.
| Field | Type | Description |
|---|---|---|
code | string | |
status | ApprovalCheckStatus | |
message | string | One sentence, safe to show verbatim. |
evidence | object | null | The facts behind the verdict (fingerprints, ids, counts) for a UI or an agent to show. |
ApprovalTimelineEntry
| Field | Type | Description |
|---|---|---|
kind | string |
|
at | string (date-time) | |
actor | ActivityActor | null | Who wrote the entry; null for a computed |
reason | string | null | The decision's reason, or the robot's machine reason ( |
minutes | integer | null | The minutes asked ( |
robot_at | string (date-time) | null (date-time) | On a |
Bringup
The bring-up ladder of a trial: Shadow, Hoisted, Supported, Free. Rungs 1 to 3 are ticks by a signed-in person at the robot (tickRung), acknowledged by the robot with a signed rung event. The robot behaves the same at every rung; the ladder records what the person attested. Any stop ends it. The approval's window ends the run whatever the rung.
| Field | Type | Description |
|---|---|---|
rungs | array of BringupRung | |
current | integer | null | The rung the person is on now, while the trial runs; null otherwise. |
ShadowSummary
| Field | Type | Description |
|---|---|---|
active | boolean | Whether the robot's last report said the shadow was still computing. |
ended | string | null | Why it ended, in the robot's word: |
sha256 | string | null | The first hex of the candidate the robot compared, as it reported it. |
slot | string | null | |
obs_source | string | null |
|
ticks | integer | Ticks the robot compared. |
points | integer | Trace samples the hub stored. |
joint_order | array of string | The joint names the stats and the trace index, from the robot card. |
stats | ShadowStats | |
updated_at | string (date-time) | null (date-time) |
ShadowPoint
| Field | Type | Description |
|---|---|---|
t | number | Seconds since the shadow started. |
pred | array of number | The candidate's joint targets, in the joint order. |
applied | array of number | The targets the running policy wrote to the motors. |
DeviceAdapterProtocol
A protocol the adapter's class implements, as the driver found it by inspecting the code on the box. policy: run an approved file locally (start / stop / status / is_running). chunks: consume a hub endpoint (begin / observe / apply / hold / resume / stop). The driver's registration probe exercises hold() and stop() once. staged_start: the optional stage(name, interface) hook (safe state, then default pose, then the policy). safe_stop: the optional set_safe_stop(mode) hook. It lets the robot card's interface.safety.safe_stop choose what hold / stop mean. install: the optional install(model_path, manifest, slot, approval) hook. It keeps the file of an install approval on the robot. The robot refuses such an approval when its adapter lacks it. shadow: the optional shadow(model_path, manifest, seconds) hook. The policy computes beside the one running and applies nothing. The hub refuses a shadow request on a device whose adapter declares none (422), and the robot refuses one with no_shadow. checkpoint_dir: the adapter runs a LeRobot checkpoint directory (policy/ beside lucen_manifest.json) instead of an ONNX file. The lerobot adapter does, through the bridge on the robot's computer.
PlanStatus
active is the only non-terminal state. Plan.waiting_on says what the plan is waiting on. The terminal states:
done: the planner handed back with the task complete.handed_back: control returned to the human for another reason. The reason is an out-of-vocabulary task, a denied or expired approval, the window, the decision cap or the quota.canceled: ended bycancelPlan.budget_exhausted: model spend reachedbudget_usdor a step's cap.failed: a decision failed validation twice, or there was no model.
EndpointStatus
queued: recorded, no server has claimed it.running: a server claimed it and reports.stopped: ended, bystopEndpointor by the server's own terminal report.failed: the server reported a failure.
A stop on a running endpoint is a flag (stop_requested_at). It is not one of these statuses.
EndpointArtifact
What an endpoint serves.
onnx: one ONNX file.onnx_pathis the file andmodel_sha256its sha256.checkpoint_dir: a policy checkpoint directory plus thelucen_manifest.jsonbeside it.onnx_pathis the directory andmodel_sha256itslucen-checkpoint-v1digest.
The digest is sha256("lucen-checkpoint-v1\n" + lines). lines holds one "<sha256 hex> <path>\n" (the sha256sum format) per member, sorted by the path's UTF-8 bytes. The members are the manifest and every file under the directory. Paths are relative to the directory holding both. The hub computes the digest from the repo's content-addressed file list. lucen serve computes it from the pulled bytes. Claims, session tokens and device approvals bind to it exactly as they bind to an ONNX's sha256.
EndpointSizeBasis
Which bytes sized an endpoint's tier.
onnx_file: the ONNX file's own size, plus any external-data file beside it (model.onnx.data).checkpoint_weights: the weight files under the checkpoint directory (.safetensors,.bin,.pt,.pth,.ckpt), configs excluded.params:params × bytes_per_param. The fallback when the artifact's bytes cannot stand for the served weights. That is a PEFT adapter (its base weights are loaded frombase_model), or a file smaller than its declared parameters could be at 2 bits each.
EndpointCostBasis
How an endpoint is billed.
uptime: the owner pays the tier's hourly rate for every second the endpoint is up, from the server's claim to the stop. A robot's session makes no difference to that. One ledger row per endpoint, cut when it ends. Sessions are metering detail with no price. Every endpoint created since 16 October 2026.sessions: the sum of its closed sessions, each priced on the GPU-seconds the server attributed to it, one ledger row per session. Endpoints created before that date keep this basis, so their history is not restated.
A worker endpoint is unpriced on either basis.
ApprovalCheckStatus
pass: the evidence agrees.fail: the evidence contradicts the request.warn: the evidence is partial or weaker than a pass.absent: the evidence does not exist. The check says so, and it is never counted as a pass.not_applicable: the check does not apply to this kind of request.
BringupRung
| Field | Type | Description |
|---|---|---|
n | integer | |
name | RungName | |
status | RungStatus | |
window_s | integer | null | How long the rung is meant to take, in seconds. Null on |
activated_at | string (date-time) | null (date-time) | When the rung became the current one. |
ticked_at | string (date-time) | null (date-time) | |
ticked_by | UserPublic | null | The person who ticked or skipped it; null for rung 0 ticked by a shadow run. |
device_event_id | string | null | The robot's signed |
shadow_approval_id | string | null | On rung 0, the shadow approval that satisfied it. |
reason | string | null | Why the person skipped rung 0. |
ShadowStats
What the robot measured over a shadow run, in the robot's joint order. max_abs_diff and mean_abs_diff are per joint, in the action's unit. The counters are ticks. The hub fills every key; one the robot left out reads as empty or zero.
| Field | Type | Description |
|---|---|---|
max_abs_diff | array of number | |
mean_abs_diff | array of number | |
nonfinite | integer | |
clip_hits | integer | |
late_ticks | integer | |
dropped_ticks | integer | |
idle_ticks | integer | |
infer_mean_ms | number | |
infer_max_ms | number |
RungName
The four rungs of the bring-up ladder, in order. shadow: the policy computed beside the running one and applied nothing. hoisted: the robot hangs in its default pose, feet just touching, and the policy is applied. supported: rope slack, someone holding, first steps. free: on the ground, for the rest of the approved window.
RungStatus
pending: not reached, or reached and not ticked yet. ticked: a person at the robot attested it, or (rung 0) a shadow run of the same file finished on this device within 24 hours. skipped: the person skipped rung 0 with a reason. expired: the approval ended, or the rung's own window passed, before the tick. A rung's window is informational inside the approval's window and extends nothing.