# MyRobotFleet — feasibility & roadmap _Assessment date: 2026-09-24. Central analysed at GitHub `main` `85cc7b5` (includes `66918e9` "more info on central page" / robot-kind counters)._ ## Verdict **Feasible as a fully static app.** Central already: - exposes public `GET /health` with `producers_by_kind` (live: ~280 robots), - exposes owner-scoped `GET /api/robot-status` with raw `meta`, - authenticates with any HF bearer token via `whoami-v2`, - sends permissive CORS (`allow_origin=*`, no credentials), which is what browser `fetch` + `Authorization: Bearer` needs. So a static HF Space with in-browser HF OAuth can show the ecosystem and "my robots" **today, with zero central changes** (v0 in this repo). What a static app _cannot_ do alone is anything that needs a server that is always on: org-wide aggregation across accounts, history of robots that went offline, and receiving logs. All three belong in **central** (it already sees every robot) or in an **HF Dataset** that central writes and the static app reads. This keeps one central point that scales, instead of one Docker Space per project. ## Landscape | | Reachy Mini | Micro Duck | Grabette | |---|---|---|---| | Talks to central | yes (`central_signaling_relay.py`) | yes (`mediad/src/relay.rs`) | **no**: own Docker Space `grabette-fleet` with its own registry, heartbeat and command queue | | `meta.kind` | absent (central defaults to reachy_mini) | `microduck` | n/a | | Version | none | `release` + `api_version` | n/a | | `hardware_id` | sha256(USB serial)[:16] | raw SoC serial / machine-id | serial (in grabette-fleet) | | Quirks | extra `central-relay` pseudo-peer | `name` may be missing | kind derived from name | Normalisation in `fleet.js`: kind mirrors central's `robot_kind_of()` (plus `grabette`), the robot key is `kind:hardware_id` (`peerId` changes on every reconnect), and pseudo-peers are dropped. ## Roadmap ### v0 — static dashboard (this repo, done) - HF OAuth in the browser; local dev uses a pasted token. - Ecosystem tiles from `/health`. - My robots from `/api/robot-status`, normalised, kind filter. - Per-browser memory of offline robots (localStorage, 30 days). This is a convenience only, not real history. - `?central=` to target the `cduss/reachy_mini_central` test Space. ### v1 — central: better metadata (small PRs to `reachy_mini_central_signalling`) 1. Add `grabette` to `KNOWN_ROBOT_KINDS` / `ROBOT_KIND_LABELS`. 2. Add wall-clock `registered_at`, `last_seen_at` and session `started_at` to `Peer`, and expose them plus the classified `kind` in `/api/robot-status`. 3. Extend `docs/META_CONTRACT.md` with recommended fields: `kind`, `version`, `api_version`, and an optional `telemetry` block (battery, activity, hardware_error, ip). 4. Daemons: Reachy Mini sends `kind` and `version`; Micro Duck keeps what it already sends. 5. Minor: `/api/robot-status` should skip `connected=False` peers, as `get_producers_list` does. ### v2 — org view - Central reads `orgs[]` from the `whoami-v2` response it already fetches and stores it per owner. - New endpoint `GET /api/fleet?org=`: producers whose owner is a member of ``, visible only to members (optionally restricted with a `FLEET_ADMIN_ORGS` env allowlist). - OAuth scope: needs the org list. Add `read-repos` or rely on central resolving orgs server-side from whoami. ### v3 — history without a database - Central keeps an in-memory ring buffer of register, withdraw, sweep and session events, exposed as `GET /api/fleet/events?since=`. - A `CommitScheduler` appends it as JSONL to a private HF Dataset (e.g. `pollen-robotics/fleet-events`). The static app reads the dataset with the user's token to show usage over time: robots per day, sessions, apps used and versions. ### v4 — debug logs - `POST /send {type:"log"}` goes into a capped per-robot buffer in central, readable by the owner through `/api/debug/logs?peerId=`. An on-demand "upload logs to a dataset" button on the robot is the alternative for big dumps. ### Grabette migration (separate track) `grabette-fleet` is also a command server: long-poll queue, synchronised recording sessions, dataset jobs. The static app can't replace it until central has a command channel. Steps: 1. The Grabette device also registers on central (`kind:"grabette"`, telemetry in meta), so it shows up here. This is cheap and can be done now. 2. Move commands to central (`/send` or `POST /api/robots/{id}/command`). 3. Session timing and lost-stop recovery need something always on: central, or a leader device. ## Open questions - **Who sees the org view?** Every member of `pollen-robotics`, or only an admin allowlist? Are customers' robots in scope, or only in-house ones? - **Privacy:** customer robot names and hardware ids in an org view. Aggregate counts only, or per-robot rows? - Does an HF OAuth access token pass central's `whoami-v2` check? Very likely (Micro Duck already uses device-flow OAuth tokens), but verify on the Space.