inspect-robots 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. inspect_robots-0.3.1/.gitignore +221 -0
  2. inspect_robots-0.3.1/LICENSE +21 -0
  3. inspect_robots-0.3.1/PKG-INFO +209 -0
  4. inspect_robots-0.3.1/README.md +165 -0
  5. inspect_robots-0.3.1/plugins/inspect-robots-isaacsim/README.md +133 -0
  6. inspect_robots-0.3.1/plugins/inspect-robots-isaacsim/tests/test_isaacsim_embodiment.py +246 -0
  7. inspect_robots-0.3.1/pyproject.toml +153 -0
  8. inspect_robots-0.3.1/src/inspect_robots/__init__.py +108 -0
  9. inspect_robots-0.3.1/src/inspect_robots/_builtins.py +53 -0
  10. inspect_robots-0.3.1/src/inspect_robots/_defaults.py +153 -0
  11. inspect_robots-0.3.1/src/inspect_robots/approver.py +70 -0
  12. inspect_robots-0.3.1/src/inspect_robots/cli.py +393 -0
  13. inspect_robots-0.3.1/src/inspect_robots/compat.py +203 -0
  14. inspect_robots-0.3.1/src/inspect_robots/controller.py +174 -0
  15. inspect_robots-0.3.1/src/inspect_robots/embodiment.py +78 -0
  16. inspect_robots-0.3.1/src/inspect_robots/errors.py +55 -0
  17. inspect_robots-0.3.1/src/inspect_robots/eval.py +458 -0
  18. inspect_robots-0.3.1/src/inspect_robots/frames.py +60 -0
  19. inspect_robots-0.3.1/src/inspect_robots/log.py +111 -0
  20. inspect_robots-0.3.1/src/inspect_robots/logging/__init__.py +15 -0
  21. inspect_robots-0.3.1/src/inspect_robots/logging/json_log.py +88 -0
  22. inspect_robots-0.3.1/src/inspect_robots/logging/rerun_sink.py +120 -0
  23. inspect_robots-0.3.1/src/inspect_robots/logging/sink.py +53 -0
  24. inspect_robots-0.3.1/src/inspect_robots/mock/__init__.py +14 -0
  25. inspect_robots-0.3.1/src/inspect_robots/mock/cubepick.py +109 -0
  26. inspect_robots-0.3.1/src/inspect_robots/mock/policies.py +103 -0
  27. inspect_robots-0.3.1/src/inspect_robots/policy.py +72 -0
  28. inspect_robots-0.3.1/src/inspect_robots/py.typed +0 -0
  29. inspect_robots-0.3.1/src/inspect_robots/registry.py +116 -0
  30. inspect_robots-0.3.1/src/inspect_robots/rollout.py +255 -0
  31. inspect_robots-0.3.1/src/inspect_robots/scene.py +54 -0
  32. inspect_robots-0.3.1/src/inspect_robots/scorer.py +260 -0
  33. inspect_robots-0.3.1/src/inspect_robots/spaces.py +151 -0
  34. inspect_robots-0.3.1/src/inspect_robots/task.py +76 -0
  35. inspect_robots-0.3.1/src/inspect_robots/transcript.py +53 -0
  36. inspect_robots-0.3.1/src/inspect_robots/types.py +95 -0
  37. inspect_robots-0.3.1/tests/test_api_snapshot.py +75 -0
  38. inspect_robots-0.3.1/tests/test_compat.py +144 -0
  39. inspect_robots-0.3.1/tests/test_controller.py +53 -0
  40. inspect_robots-0.3.1/tests/test_coverage_completion.py +525 -0
  41. inspect_robots-0.3.1/tests/test_defaults.py +175 -0
  42. inspect_robots-0.3.1/tests/test_ensembling.py +115 -0
  43. inspect_robots-0.3.1/tests/test_eval_log.py +146 -0
  44. inspect_robots-0.3.1/tests/test_eval_orchestration.py +400 -0
  45. inspect_robots-0.3.1/tests/test_examples.py +20 -0
  46. inspect_robots-0.3.1/tests/test_package.py +22 -0
  47. inspect_robots-0.3.1/tests/test_registry_cli.py +563 -0
  48. inspect_robots-0.3.1/tests/test_rerun_sink.py +59 -0
  49. inspect_robots-0.3.1/tests/test_rollout_hardening.py +349 -0
  50. inspect_robots-0.3.1/tests/test_scorers.py +98 -0
  51. inspect_robots-0.3.1/tests/test_strict_json.py +137 -0
  52. inspect_robots-0.3.1/tests/test_string_resolution.py +46 -0
  53. inspect_robots-0.3.1/tests/test_tracer_eval.py +111 -0
  54. inspect_robots-0.3.1/tests/test_types_spaces.py +107 -0
@@ -0,0 +1,221 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+ # uv lockfile (this is a library; CI resolves from pyproject)
221
+ uv.lock
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 robocurve
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,209 @@
1
+ Metadata-Version: 2.4
2
+ Name: inspect-robots
3
+ Version: 0.3.1
4
+ Summary: The Inspect AI for robotics โ€” an evaluation framework for VLA (vision-language-action) models across real robots and simulators.
5
+ Project-URL: Homepage, https://github.com/robocurve/inspect-robots
6
+ Project-URL: Documentation, https://inspectrobots.org/
7
+ Project-URL: Repository, https://github.com/robocurve/inspect-robots
8
+ Project-URL: Issues, https://github.com/robocurve/inspect-robots/issues
9
+ Author: Inspect Robots contributors
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: benchmark,embodied-ai,evaluation,physical-ai,robotics,vision-language-action,vla
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: numpy>=1.24
25
+ Provides-Extra: all
26
+ Requires-Dist: rerun-sdk>=0.20; extra == 'all'
27
+ Provides-Extra: dev
28
+ Requires-Dist: mypy>=1.11; extra == 'dev'
29
+ Requires-Dist: numpy<2.5; extra == 'dev'
30
+ Requires-Dist: pre-commit>=3.5; extra == 'dev'
31
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
32
+ Requires-Dist: pytest>=8.0; extra == 'dev'
33
+ Requires-Dist: ruff>=0.6; extra == 'dev'
34
+ Provides-Extra: docs
35
+ Requires-Dist: mkdocs-llmstxt>=0.2; extra == 'docs'
36
+ Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
37
+ Requires-Dist: mkdocs>=1.6; extra == 'docs'
38
+ Requires-Dist: mkdocstrings[python]>=0.26; extra == 'docs'
39
+ Provides-Extra: rerun
40
+ Requires-Dist: rerun-sdk>=0.20; extra == 'rerun'
41
+ Provides-Extra: viz
42
+ Requires-Dist: rerun-sdk>=0.20; extra == 'viz'
43
+ Description-Content-Type: text/markdown
44
+
45
+ <div align="center">
46
+
47
+ # ๐Ÿค– Inspect Robots
48
+
49
+ ### The [Inspect AI](https://inspect.aisi.org.uk/) for robotics
50
+
51
+ **An open-source evaluation framework for physical AI and VLA (vision-language-action) models.**
52
+
53
+ Define a robotics benchmark once, then run *any* policy against *any* compatible
54
+ embodiment โ€” a real robot or a simulator โ€” with reproducible logs and first-class
55
+ [Rerun](https://github.com/rerun-io/rerun) visualization.
56
+
57
+ [![CI](https://github.com/robocurve/inspect-robots/actions/workflows/ci.yml/badge.svg)](https://github.com/robocurve/inspect-robots/actions/workflows/ci.yml)
58
+ [![Docs](https://github.com/robocurve/inspect-robots/actions/workflows/docs.yml/badge.svg)](https://inspectrobots.org/)
59
+ [![Python](https://img.shields.io/badge/python-3.10%E2%80%933.13-blue)](https://github.com/robocurve/inspect-robots)
60
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
61
+ [![Typed](https://img.shields.io/badge/typed-mypy%20strict-blue)](https://github.com/robocurve/inspect-robots)
62
+ [![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://github.com/robocurve/inspect-robots/actions/workflows/ci.yml)
63
+
64
+ [**Documentation**](https://inspectrobots.org/) ยท
65
+ [Quickstart](https://inspectrobots.org/guide/quickstart.html) ยท
66
+ [Concepts](https://inspectrobots.org/guide/concepts.html) ยท
67
+ [For LLMs](https://inspectrobots.org/llms.txt)
68
+
69
+ </div>
70
+
71
+ ---
72
+
73
+ ## One framework, two swappable inputs
74
+
75
+ LLM evaluations have a single swappable input: the model. **Robotics evaluations
76
+ have two** โ€” and Inspect Robots makes both first-class and orthogonal:
77
+
78
+ | | |
79
+ |---|---|
80
+ | ๐Ÿง  **`Policy`** โ€” the VLA | The "brain". Maps an observation + instruction to an **action chunk** (a horizon of actions executed open-loop, as ฯ€0 / ACT / diffusion policies do). |
81
+ | ๐Ÿฆพ **`Embodiment`** โ€” the robot or sim | The "body + world". Produces observations, executes actions, owns the action/observation spaces and control rate. Real-robot-first; sims are a stricter special case. |
82
+
83
+ A **`Task`** โ€” a dataset of `Scene`s (initial conditions, instructions, success
84
+ targets) plus scorers โ€” is defined *independently* of both. Before any rollout,
85
+ Inspect Robots checks the `(policy, embodiment)` pair is **compatible** (action/observation
86
+ spaces, semantics, control rate, scene realizability) and fails fast if not.
87
+
88
+ ## Install
89
+
90
+ ```bash
91
+ pip install inspect-robots # core (numpy only)
92
+ pip install "inspect-robots[rerun]" # + Rerun visualization
93
+ ```
94
+
95
+ ## Quickstart
96
+
97
+ With a default policy/embodiment configured once in
98
+ `~/.config/inspect-robots/config.ini`, just tell the robot what to do:
99
+
100
+ ```bash
101
+ inspect-robots "place the spoon on the plate" # zero-config ad-hoc eval
102
+ inspect-robots "place the spoon on the plate" --sim # same, on your configured sim
103
+ ```
104
+
105
+ The full command line resolves any registered task/policy/embodiment
106
+ (builtins + installed plugins):
107
+
108
+ ```bash
109
+ inspect-robots list # registered components
110
+ inspect-robots run --task cubepick-reach --policy scripted --embodiment cubepick
111
+ inspect-robots inspect logs/cubepick-reach_*.json # results table
112
+ ```
113
+
114
+ And everything is a Python API. No hardware or simulator needed โ€” the
115
+ dependency-free `CubePick` mock world exercises the whole stack:
116
+
117
+ ```python
118
+ from inspect_robots import eval
119
+ from inspect_robots.mock import CubePickEmbodiment, ScriptedPolicy
120
+ from inspect_robots.scene import Scene
121
+ from inspect_robots.scorer import success_at_end
122
+ from inspect_robots.task import Task
123
+
124
+ task = Task(
125
+ name="cubepick-reach",
126
+ scenes=[Scene(id=f"layout-{i}", instruction="reach the cube", init_seed=i) for i in range(5)],
127
+ scorer=success_at_end(),
128
+ max_steps=80,
129
+ )
130
+
131
+ # The two swappable inputs: a policy (VLA) and an embodiment (robot/sim).
132
+ (log,) = eval(task, ScriptedPolicy(), CubePickEmbodiment())
133
+ print(log.status, log.results.metrics) # success {'success_at_end': 1.0}
134
+ ```
135
+
136
+ ## Why Inspect Robots
137
+
138
+ - ๐ŸŒ **Real-world first.** Interfaces assume real-robot reality โ€” human-in-the-loop
139
+ reset, no privileged success oracle, wall-clock control rate. Simulators just
140
+ offer more (seeding, privileged success, rendering) via opt-in capabilities.
141
+ - ๐Ÿ” **Reproducible.** Every run yields an immutable, schema-versioned `EvalLog`
142
+ with the resolved config, git revision, and package versions โ€” re-readable across
143
+ releases, and re-scorable offline.
144
+ - ๐Ÿชถ **Light core.** Depends only on NumPy. Rerun and simulator/VLA backends are
145
+ optional extras and separately installable plugins.
146
+ - ๐Ÿ›‘ **Safe unattended.** An explicit error taxonomy separates "record and continue"
147
+ from "halt and require a human", so a faulted robot never auto-advances overnight.
148
+ - ๐ŸŽž๏ธ **Rerun visualization.** Stream camera images, 3D poses, joint/action
149
+ time-series, and success markers to a `.rrd` recording.
150
+ - ๐Ÿงฉ **Pluggable.** Ship `inspect-robots-maniskill` or `inspect-robots-openvla` as separate
151
+ packages โ€” entry points make them appear in `inspect-robots list` automatically.
152
+ - โš™๏ธ **VLA-native.** Action chunking, open-loop execution, and ACT/ALOHA temporal
153
+ ensembling are built in, with action *semantics* (control mode, rotation
154
+ representation, gripper, frame) that make compatibility and ensembling correct.
155
+
156
+ ## How it maps to Inspect AI
157
+
158
+ If you know [Inspect AI](https://inspect.aisi.org.uk/), you already know Inspect Robots.
159
+
160
+ | Inspect AI | Inspect Robots |
161
+ |---|---|
162
+ | `Model` | `Policy` (VLA) **+** `Embodiment` *(two inputs)* |
163
+ | `Task = dataset + solver + scorer` | `Task = scenes + controller + scorer` |
164
+ | `Sample` | `Scene` |
165
+ | `Solver` chain | `Controller` middleware (chunking, ensembling, smoothing) |
166
+ | `eval()` โ†’ `EvalLog` | `eval()` โ†’ `EvalLog` |
167
+ | `@task` / `@solver` / `@scorer` + registry | `@task` / `@policy` / `@embodiment` / `@scorer` + entry points |
168
+
169
+ This repository is the **framework** (the "Inspect AI for robotics"). Concrete
170
+ benchmarks (the "Inspect Evals for robotics") and backend adapters live in
171
+ separate plugin packages.
172
+
173
+ ## Documentation
174
+
175
+ Full guides and an auto-generated API reference live at
176
+ **[inspectrobots.org](https://inspectrobots.org/)**.
177
+ LLM-friendly versions: [`llms.txt`](https://inspectrobots.org/llms.txt)
178
+ and [`llms-full.txt`](https://inspectrobots.org/llms-full.txt).
179
+
180
+ ## Development
181
+
182
+ ```bash
183
+ uv venv && uv pip install -e ".[dev]"
184
+ uv run pre-commit install # ruff + mypy on commit, 100% coverage on push
185
+ uv run pytest --cov # 100% coverage required
186
+ uv run ruff check . && uv run mypy
187
+ ```
188
+
189
+ Pre-commit hooks and a blocking CI coverage gate keep `main` green. See
190
+ [`CONTRIBUTING.md`](CONTRIBUTING.md) and the design docs in [`plans/`](plans/).
191
+
192
+ ## Citation
193
+
194
+ If you use Inspect Robots in your research, please cite it:
195
+
196
+ ```bibtex
197
+ @software{inspect-robots,
198
+ author = {Robocurve},
199
+ title = {Inspect Robots: The open-source evaluation framework for physical AI},
200
+ year = {2026},
201
+ url = {https://github.com/robocurve/inspect-robots},
202
+ version = {0.3.0},
203
+ license = {MIT}
204
+ }
205
+ ```
206
+
207
+ ## License
208
+
209
+ [MIT](LICENSE)
@@ -0,0 +1,165 @@
1
+ <div align="center">
2
+
3
+ # ๐Ÿค– Inspect Robots
4
+
5
+ ### The [Inspect AI](https://inspect.aisi.org.uk/) for robotics
6
+
7
+ **An open-source evaluation framework for physical AI and VLA (vision-language-action) models.**
8
+
9
+ Define a robotics benchmark once, then run *any* policy against *any* compatible
10
+ embodiment โ€” a real robot or a simulator โ€” with reproducible logs and first-class
11
+ [Rerun](https://github.com/rerun-io/rerun) visualization.
12
+
13
+ [![CI](https://github.com/robocurve/inspect-robots/actions/workflows/ci.yml/badge.svg)](https://github.com/robocurve/inspect-robots/actions/workflows/ci.yml)
14
+ [![Docs](https://github.com/robocurve/inspect-robots/actions/workflows/docs.yml/badge.svg)](https://inspectrobots.org/)
15
+ [![Python](https://img.shields.io/badge/python-3.10%E2%80%933.13-blue)](https://github.com/robocurve/inspect-robots)
16
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
17
+ [![Typed](https://img.shields.io/badge/typed-mypy%20strict-blue)](https://github.com/robocurve/inspect-robots)
18
+ [![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://github.com/robocurve/inspect-robots/actions/workflows/ci.yml)
19
+
20
+ [**Documentation**](https://inspectrobots.org/) ยท
21
+ [Quickstart](https://inspectrobots.org/guide/quickstart.html) ยท
22
+ [Concepts](https://inspectrobots.org/guide/concepts.html) ยท
23
+ [For LLMs](https://inspectrobots.org/llms.txt)
24
+
25
+ </div>
26
+
27
+ ---
28
+
29
+ ## One framework, two swappable inputs
30
+
31
+ LLM evaluations have a single swappable input: the model. **Robotics evaluations
32
+ have two** โ€” and Inspect Robots makes both first-class and orthogonal:
33
+
34
+ | | |
35
+ |---|---|
36
+ | ๐Ÿง  **`Policy`** โ€” the VLA | The "brain". Maps an observation + instruction to an **action chunk** (a horizon of actions executed open-loop, as ฯ€0 / ACT / diffusion policies do). |
37
+ | ๐Ÿฆพ **`Embodiment`** โ€” the robot or sim | The "body + world". Produces observations, executes actions, owns the action/observation spaces and control rate. Real-robot-first; sims are a stricter special case. |
38
+
39
+ A **`Task`** โ€” a dataset of `Scene`s (initial conditions, instructions, success
40
+ targets) plus scorers โ€” is defined *independently* of both. Before any rollout,
41
+ Inspect Robots checks the `(policy, embodiment)` pair is **compatible** (action/observation
42
+ spaces, semantics, control rate, scene realizability) and fails fast if not.
43
+
44
+ ## Install
45
+
46
+ ```bash
47
+ pip install inspect-robots # core (numpy only)
48
+ pip install "inspect-robots[rerun]" # + Rerun visualization
49
+ ```
50
+
51
+ ## Quickstart
52
+
53
+ With a default policy/embodiment configured once in
54
+ `~/.config/inspect-robots/config.ini`, just tell the robot what to do:
55
+
56
+ ```bash
57
+ inspect-robots "place the spoon on the plate" # zero-config ad-hoc eval
58
+ inspect-robots "place the spoon on the plate" --sim # same, on your configured sim
59
+ ```
60
+
61
+ The full command line resolves any registered task/policy/embodiment
62
+ (builtins + installed plugins):
63
+
64
+ ```bash
65
+ inspect-robots list # registered components
66
+ inspect-robots run --task cubepick-reach --policy scripted --embodiment cubepick
67
+ inspect-robots inspect logs/cubepick-reach_*.json # results table
68
+ ```
69
+
70
+ And everything is a Python API. No hardware or simulator needed โ€” the
71
+ dependency-free `CubePick` mock world exercises the whole stack:
72
+
73
+ ```python
74
+ from inspect_robots import eval
75
+ from inspect_robots.mock import CubePickEmbodiment, ScriptedPolicy
76
+ from inspect_robots.scene import Scene
77
+ from inspect_robots.scorer import success_at_end
78
+ from inspect_robots.task import Task
79
+
80
+ task = Task(
81
+ name="cubepick-reach",
82
+ scenes=[Scene(id=f"layout-{i}", instruction="reach the cube", init_seed=i) for i in range(5)],
83
+ scorer=success_at_end(),
84
+ max_steps=80,
85
+ )
86
+
87
+ # The two swappable inputs: a policy (VLA) and an embodiment (robot/sim).
88
+ (log,) = eval(task, ScriptedPolicy(), CubePickEmbodiment())
89
+ print(log.status, log.results.metrics) # success {'success_at_end': 1.0}
90
+ ```
91
+
92
+ ## Why Inspect Robots
93
+
94
+ - ๐ŸŒ **Real-world first.** Interfaces assume real-robot reality โ€” human-in-the-loop
95
+ reset, no privileged success oracle, wall-clock control rate. Simulators just
96
+ offer more (seeding, privileged success, rendering) via opt-in capabilities.
97
+ - ๐Ÿ” **Reproducible.** Every run yields an immutable, schema-versioned `EvalLog`
98
+ with the resolved config, git revision, and package versions โ€” re-readable across
99
+ releases, and re-scorable offline.
100
+ - ๐Ÿชถ **Light core.** Depends only on NumPy. Rerun and simulator/VLA backends are
101
+ optional extras and separately installable plugins.
102
+ - ๐Ÿ›‘ **Safe unattended.** An explicit error taxonomy separates "record and continue"
103
+ from "halt and require a human", so a faulted robot never auto-advances overnight.
104
+ - ๐ŸŽž๏ธ **Rerun visualization.** Stream camera images, 3D poses, joint/action
105
+ time-series, and success markers to a `.rrd` recording.
106
+ - ๐Ÿงฉ **Pluggable.** Ship `inspect-robots-maniskill` or `inspect-robots-openvla` as separate
107
+ packages โ€” entry points make them appear in `inspect-robots list` automatically.
108
+ - โš™๏ธ **VLA-native.** Action chunking, open-loop execution, and ACT/ALOHA temporal
109
+ ensembling are built in, with action *semantics* (control mode, rotation
110
+ representation, gripper, frame) that make compatibility and ensembling correct.
111
+
112
+ ## How it maps to Inspect AI
113
+
114
+ If you know [Inspect AI](https://inspect.aisi.org.uk/), you already know Inspect Robots.
115
+
116
+ | Inspect AI | Inspect Robots |
117
+ |---|---|
118
+ | `Model` | `Policy` (VLA) **+** `Embodiment` *(two inputs)* |
119
+ | `Task = dataset + solver + scorer` | `Task = scenes + controller + scorer` |
120
+ | `Sample` | `Scene` |
121
+ | `Solver` chain | `Controller` middleware (chunking, ensembling, smoothing) |
122
+ | `eval()` โ†’ `EvalLog` | `eval()` โ†’ `EvalLog` |
123
+ | `@task` / `@solver` / `@scorer` + registry | `@task` / `@policy` / `@embodiment` / `@scorer` + entry points |
124
+
125
+ This repository is the **framework** (the "Inspect AI for robotics"). Concrete
126
+ benchmarks (the "Inspect Evals for robotics") and backend adapters live in
127
+ separate plugin packages.
128
+
129
+ ## Documentation
130
+
131
+ Full guides and an auto-generated API reference live at
132
+ **[inspectrobots.org](https://inspectrobots.org/)**.
133
+ LLM-friendly versions: [`llms.txt`](https://inspectrobots.org/llms.txt)
134
+ and [`llms-full.txt`](https://inspectrobots.org/llms-full.txt).
135
+
136
+ ## Development
137
+
138
+ ```bash
139
+ uv venv && uv pip install -e ".[dev]"
140
+ uv run pre-commit install # ruff + mypy on commit, 100% coverage on push
141
+ uv run pytest --cov # 100% coverage required
142
+ uv run ruff check . && uv run mypy
143
+ ```
144
+
145
+ Pre-commit hooks and a blocking CI coverage gate keep `main` green. See
146
+ [`CONTRIBUTING.md`](CONTRIBUTING.md) and the design docs in [`plans/`](plans/).
147
+
148
+ ## Citation
149
+
150
+ If you use Inspect Robots in your research, please cite it:
151
+
152
+ ```bibtex
153
+ @software{inspect-robots,
154
+ author = {Robocurve},
155
+ title = {Inspect Robots: The open-source evaluation framework for physical AI},
156
+ year = {2026},
157
+ url = {https://github.com/robocurve/inspect-robots},
158
+ version = {0.3.0},
159
+ license = {MIT}
160
+ }
161
+ ```
162
+
163
+ ## License
164
+
165
+ [MIT](LICENSE)