A virtual testing engineer for autonomous robots — it learns where your robot is weak and probes there.
Intelligent Virtual Robotics Testing & Failure Discovery Platform
Documentation · Roadmap · PRD · Architecture · Contributing
Note
Run the Field Notebook dashboard and a 50-run warehouse campaign locally with the built-in
kinematic2d backend. The Gazebo warehouse backend is also runnable. Preregistered evaluation
and v1.0 release verification are in progress.
Try the dashboard.
- Why RoboProbe?
- What it is
- Key features
- How it works
- Architecture overview
- Example: the warehouse robot
- Tech stack
- Project status & roadmap
- Documentation map
- Try the dashboard locally
- Repository structure
- Contributing · Code of conduct · Security · License
- Citation · Acknowledgements & prior art · Author
Testing autonomous robots on real hardware is slow, expensive and sometimes unsafe, and rare failures are hard to reproduce. Simulators solve the "virtual robot" part — but deciding which scenarios to simulate is still done by hand or at random. Random testing spends most of its budget on ordinary, passing cases, and one-factor-at-a-time test plans miss the most dangerous class of bugs: interaction failures, where a robot handles high speed, sensor noise and low light individually but collides when they occur together.
RoboProbe is a software-only, open-source testing layer on top of an established robotics simulator (Gazebo Harmonic + ROS 2 Jazzy + Nav2). It is not a simulator and not a robot. It:
- generates test scenarios from a declared parameter space,
- runs them headless on the simulator with parallel workers,
- judges every run with robustness-valued failure oracles,
- learns from each outcome to choose the next, more informative scenarios,
- clusters failures into explained failure modes, and
- maps the safe, uncertain and failure-prone regions of the robot's operating envelope.
| Feature | Spec | |
|---|---|---|
| 🎯 | Intelligent test selection — S-PROBE: Gaussian-process Bayesian optimisation on a continuous robustness score, diversity-seeking failure-mode search, level-set boundary learning |
07 |
| ⚖️ | Fair baselines — random, Latin hypercube, Sobol, grid and one-factor-at-a-time under identical budgets and seeds | 07 §3 |
| 🚨 | Failure oracles — collision, timeout, stuck, localisation divergence, planner abort, instability, near-miss/oscillation warnings, each with an STL-style robustness value | 08 |
| 🧭 | Failure-mode analysis — HDBSCAN clustering, SHAP importance & interaction values, human-readable rules, confirmed interaction failures | 09 |
| 🗺️ | Risk atlas — calibrated p_fail maps classifying SAFE / UNCERTAIN / FAILURE regions, robustness score per robot configuration |
09 §5 |
| 🔁 | Reproducibility — hierarchical seeds, provenance manifests, one-click replays, failure → regression-scenario export | 21 |
| 🧪 | Built-in fast simulator — deterministic kinematic2d backend so the whole loop runs in CI and large experiments without ROS |
10 §7 |
| 📊 | Experiment harness — 30-seed comparisons with Mann–Whitney U, Vargha–Delaney Â12, bootstrap CIs, Holm correction | 19 |
| 📓 | "Field Notebook" dashboard — an original UI: live campaign console, casebook of failure modes, risk atlas, run replays | 13 |
| 🧩 | Pluggable by design — simulators, strategies, oracles, analyzers and stores are entry-point plugins | 34 |
| 💸 | 100 % free & open source — runs on a student laptop, no paid services | 15 |
flowchart LR
SP["Scenario space<br/>speed, clearance, light,<br/>noise, friction, delay"] --> SEL["Intelligent selector<br/>GP surrogate + acquisition"]
SEL -->|"next scenarios"| GEN["Scenario generator<br/>world + params"]
GEN --> SIM["Simulation runner<br/>Gazebo or kinematic2d"]
SIM --> DET["Failure detector<br/>verdict + robustness"]
DET -->|"learn from result"| SEL
DET --> ANA["Failure analysis<br/>modes, rules, SHAP"]
ANA --> RISK["Risk atlas<br/>safe / uncertain / failure"]
ANA --> UI["Dashboard and report"]
RISK --> UI
Each finished run updates a surrogate model of how close to failure the robot is across the scenario space. The selector then picks scenarios that are likely to fail in a new way, sit on the uncertain pass/fail boundary, or refine a freshly found failure — so simulation time is concentrated where it is informative.
flowchart TB
WEB["Dashboard SPA<br/>React + TypeScript"] -->|"REST + SSE"| API["API<br/>FastAPI"]
API --> DB[("PostgreSQL<br/>data + job queue")]
ORCH["Orchestrator<br/>campaign loop, selection,<br/>analysis, risk"] --> DB
W1["Workers: kinematic2d"] -->|"claim runs"| DB
W2["Workers: Gazebo + ROS 2 + Nav2"] -->|"claim runs"| DB
W1 --> ART[("Artifact store<br/>traces, bags, reports")]
W2 --> ART
API --> ART
Hexagonal core with ports for simulators, storage and plugins; stateless pull-based workers scale horizontally (more processes or more machines) with configuration only. Details: 04 Architecture, ADRs.
A TurtleBot 4 must deliver a package across the Nav2 warehouse world while a dropped pallet lies near its path.
RoboProbe varies speed, obstacle clearance, illuminance, lidar noise, floor friction and command delay
(plus obstacle position and lidar dropout). The robot passes with high speed alone, noise alone and
low light alone — but RoboProbe is designed to discover that high speed + low light + sensor noise makes
the pallet visible too late and ends in a collision, then confirm it is a genuine interaction, report the
rule (speed > 0.38 m/s ∧ light < 32 lux ∧ noise > 0.04 m ⇒ collision, illustrative), the minimal
reproducing scenario, a replay, and the region of the envelope where the risk lives.
See 06 for the exact parameter space.
| Layer | Choice |
|---|---|
| Language | Python 3.12 (core), TypeScript (web) |
| Simulator | Gazebo Harmonic + ROS 2 Jazzy + Nav2, TurtleBot 4 (Docker, headless) · built-in kinematic2d |
| Intelligence | PyTorch (CPU), GPyTorch, BoTorch · scikit-learn (HDBSCAN, gradient boosting) · SHAP · SciPy QMC |
| Backend | FastAPI, Pydantic v2, pydantic-settings, SQLAlchemy 2, Alembic, Typer |
| Data | PostgreSQL 17 (store + queue + notifications), Parquet, MCAP |
| Frontend | React 19, Vite, TanStack Query, Radix UI, Plotly.js, CSS Modules with original design tokens |
| Ops | Docker Compose, GitHub Actions, GHCR, structlog, Prometheus (optional) |
| Quality | pytest, Hypothesis, Testcontainers, ruff, mypy, import-linter, Vitest, Playwright, axe-core |
Rationale and alternatives for each choice: 15 Tech stack & ADRs.
| Milestone | Scope | Status |
|---|---|---|
| M0–M3 | Specification, settings, storage, CLI, runner and deterministic kinematic2d backend |
Complete |
| M4–M6 | Baselines, metrics, S-PROBE, failure analysis and risk mapping | Complete |
| M7–M8 | REST/SSE API and Field Notebook dashboard | Complete |
| M9 | Gazebo, ROS 2 Jazzy and Nav2 warehouse integration | Warehouse launch and worker packaging verified. Scheduled acceptance is in progress. |
| M10 | Preregistered experiments and reproducibility | In progress |
| M11 | Deployment verification and v1.0 release | In progress |
See the implementation roadmap, the test and experiment evidence, and the current states of M9, M10, and M11.
Start at docs/00-index.md for reading paths and conventions.
| # | Document | One-liner |
|---|---|---|
| 00 | Index | Map, reading paths, ID conventions, change control |
| 01 | Vision & product brief | Problem, goals, MVP, success criteria, research question |
| 26 | PRD | KPIs, MoSCoW requirements, journeys, release criteria, sign-off |
| 02 | SRS | IEEE-830-style FR/NFR with IDs and acceptance criteria |
| 03 | Personas & use cases | Personas, user stories, use-case specs |
| 04 | System architecture | C4 views, layers & ports, scalability path |
| 05 | Module design | Normative classes, interfaces and signatures for M1–M8 |
| 06 | Scenario space & schema | Parameters, physical models, YAML + JSON Schema |
| 07 | Selection algorithms | Baselines, GP surrogate, acquisitions, S-PROBE pseudocode |
| 08 | Failure taxonomy & detection | Failure classes, oracle formulas, verdict engine |
| 09 | Failure analysis & risk | Clustering, SHAP, rules, interaction test, risk atlas |
| 10 | Simulator integration | Gazebo/ROS 2/Nav2 adapter, kinematic2d, determinism |
| 11 | Data model & DB | ER diagram, PostgreSQL DDL, queue SQL, artefacts |
| 12 | API specification | REST + SSE endpoints, schemas, errors, versioning |
| 13 | Dashboard UX/UI | Original "Field Notebook" design language, screens, components |
| 14 | Workflows & sequences | End-to-end sequence and state diagrams |
| 15 | Tech stack & ADR summary | Every dependency with rationale; ADR index |
| 16 | Repo structure & standards | Folder tree, layering rules, Python/TS/ROS/git conventions |
| 17 | Dev environment & Docker | Setup, compose services, images, troubleshooting |
| 18 | Testing strategy | Test pyramid, contract suites, statistical algorithm tests |
| 19 | Evaluation plan | Hypotheses, metric formulas, experiments, statistics |
| 20 | CI/CD & DevOps | GitHub Actions pipelines, release flow (free tier) |
| 21 | Security, reproducibility, observability | Controls, seed tree, manifests, logs/metrics |
| 22 | Roadmap & tasks | Milestones M0–M11, task backlog for AI agents |
| 23 | Risks | Risk register with mitigations |
| 24 | Glossary | Terms and acronyms |
| 25 | References & prior art | Bibliography and positioning |
| 27 | Configuration reference | Every setting/env var; no hard-coded values |
| 28 | Traceability matrix | PRD → SRS → design → tasks → tests |
| 29 | Deployment guide | Topologies, install, scaling, backup, rollback |
| 30 | Operations runbook | Incident procedures and maintenance |
| 31 | Threat model | STRIDE analysis |
| 32 | Engineering process | DoR/DoD, PR and code-review rules, RFCs |
| 33 | Versioning & release | SemVer, schema/semantic versions, migrations |
| 34 | Design principles & patterns | SOLID, DI, patterns, error handling, logging |
| ADR | Decision records | ADR-0001 … ADR-0016 |
| — | Templates · RFCs · Evidence | ADR/RFC/task/bug templates; proposals; results |
With the stack already running (make up PROFILES=app), use these steps to start a warehouse campaign.
- Open this README and note the dashboard URL (
http://127.0.0.1:8080). - Copy the API token from
secrets/api_token(created bymake up). - Open Settings in the dashboard, paste the token, and choose Save token.
- On Bench, choose New campaign.
- Accept the warehouse scenario defaults: Space → Robot & backend (
kinematic2d) → Strategy (S-RANDOM, small budget) → Review → Create campaign.
The hallway protocol and simulated walkthrough timings are recorded in
docs/evidence/SC-6-hallway.md.
Install Docker with Compose v2, Git, Make, and Python 3. The app profile builds and starts
the dashboard, authenticated API, PostgreSQL, orchestrator, and kinematic2d workers.
git clone https://github.com/CodewithJha/RoboProbe.git && cd RoboProbe
cp .env.example .env
mkdir -p data/artifactsOn native Linux, run sudo chown 10001:10001 data/artifacts to give the container user
write access. Then start the app and run the demo.
make up PROFILES=app
make demo PROFILES=appmake up creates the local database password and API token. make demo starts a 50-run
warehouse campaign, prints its ID, and waits for it to finish.
- Open
http://127.0.0.1:8080. In Settings, paste the token fromsecrets/api_tokeninto Bearer token (session only) and select Save token. - Open the demo from Bench or Campaigns. Console shows campaign progress, Casebook groups failures, and Atlas shows estimated failure risk.
- Select New campaign on Bench to run your own warehouse scenarios.
Use make down to stop the stack. See the deployment guide
for installation from published images.
The development targets also require Node.js 24 and pnpm. Install uv
to manage Python 3.12. See the development prerequisites.
cp .env.example .env # environment template (docs/27)
cp roboprobe.example.toml roboprobe.toml # optional config file template (docs/27 §5)
make setup # install locked backend and web dependencies and Git hooks
make lint # run backend and web lint checks
make typecheck # run strict Python and TypeScript checks
make test # run default pytest and Vitest suites
make test-fast # run backend unit, property and contract tests in parallel
make help # list every targetRoboProbe/
├── backend/ Python API, CLI, simulation workers, analysis and database migrations
├── web/ Field Notebook dashboard and browser tests
├── ros_ws/ ROS 2 package and Gazebo integration
├── configs/ Scenario spaces, SUT profiles and experiment designs
├── tasks/ Simulator task definitions and warehouse assets
├── schemas/ Versioned external data formats
├── docker/ Runtime images and Compose profiles
├── scripts/ Development, verification and deployment utilities
├── docs/ Specifications, decision records and test evidence
└── .github/ CI workflows, issue templates and ownership
The repository standards describe package boundaries and file ownership.
See CONTRIBUTING.md for development and pull request conventions. Coding agents should follow AGENTS.md. More details are available in SUPPORT.md and GOVERNANCE.md.
This project follows the Contributor Covenant 2.1. By participating, you agree to uphold it.
Please report vulnerabilities privately — see SECURITY.md.
MIT © 2026 Priyanshu Jha
If RoboProbe or its design helps your work, please cite it (metadata in CITATION.cff):
@software{jha_roboprobe_2026,
author = {Jha, Priyanshu},
title = {RoboProbe: Intelligent Virtual Robotics Testing and Failure Discovery Platform},
year = {2026},
url = {https://github.com/CodewithJha/RoboProbe},
license = {MIT}
}RoboProbe builds on ideas from falsification and scenario-based testing (S-TaLiRo, Breach, Scenic & VerifAI), adaptive stress testing, search-based testing of autonomous systems, and Bayesian optimisation / active learning (BoTorch, LogEI, level-set estimation), and on the open-source robotics ecosystem — ROS 2, Nav2 and Gazebo. Full bibliography and positioning: 25 References & prior art.
Priyanshu Jha — @CodewithJha

