Skip to main content

URML

A small, opinionated, human-readable language for describing robot intent.

urml.dev


URML Conformance Suite

Status: v0.1 shipped. Declarative fixture model + ConformanceRunner + 7 fixture cases + parametrized pytest harness at pre-alpha 0.1.0a0. Pulls earlier from the MANIFESTO Roadmap (which named Phase 3 for the suite v1) so that every URML-compatible runtime has a target to build toward from day one.

What this is

The freely runnable set of tests that determines whether a runtime is URML-compatible. The conformance suite is the bridge between the abstract specification documents in /spec and a concrete claim of compatibility a robot maker can stand behind.

A sibling sub-suite, conformance/llm-bridge/, scores (model, backend, profile) triples for the on-device LLM bridge introduced by RFC-0021. The runtime sub-suite below answers "does this runtime execute URML correctly"; the LLM-bridge sub-suite answers "how reliably does this model emit URML the validator accepts."

The conformance suite is licensed under the Business Source License 1.1 (see LICENSING.md). Running it to test a runtime is non-production use and is free. The URML-Certified mark is free too (RFC-0705): the Manifesto rules out selling certification. The tests are public and runnable by anyone, and every certification rests on reports anyone can re-run.

The normative, human-readable contract this suite enforces (the six clauses a runtime must satisfy, the two tiers, and the spec-gap loop) is spec/conformance/v0.2.1.md (RFC-0014, RFC-0705, RFC-0706). This suite is its executable form (clause 6); that document is its written form.

How conformance is structured

Conformance is per-specification-version, not whole-project. A runtime that passes the Layer-2 v0.1 tests and the home-profile v0.1 tests is conformant to those specs at those versions, no more and no less. The runtime declares this in its own CONFORMANCE.md.

declares:
  layer-1-hal: 0.1.0
  layer-2-primitives: 0.1.0
  layer-3-behavior: 0.1.0
  layer-4-nl-grammar: 0.1.0
  profiles:
    home: 0.1.0

The conformance suite ships with a runner that, given a runtime and the runtime's declared versions, runs the appropriate test set and emits a structured report.

What the suite tests

When drafted, the suite contains tests in three categories:

1. Static behavior

Tests of the validator and the spec itself — independent of any particular runtime. These confirm that a given URML program, manifest, and envelope produce the documented validation outcome.

2. End-to-end behavior

Tests of a runtime, given a manifest and a URML program, in a controlled environment (typically a simulator wired into the runtime). These confirm that the runtime executes primitives per their documented semantics — move_to(kitchen) actually moves the robot to the kitchen, not to some other place.

3. Negative tests

The most important category. Confirms that the runtime correctly rejects programs that violate declared capability or the safety envelope. Cases include:

  • Programs that require capabilities not in the manifest.
  • Programs that exceed declared velocity / payload / force / altitude / geofence / cell-perimeter limits.
  • Programs that violate profile-specific constraints (drone move_to missing altitude, industrial program requiring motion with safety-door open, home program requiring motion into a declared people-only zone).
  • Programs that violate Layer-3 invariants (untyped variable references, unbounded retries, type-mismatched arguments).

A runtime that executes one of these programs has a critical conformance bug. The suite makes that bug visible. The goal-line lane (python -m urml_conformance --goal-line) hands every rejected fixture to the runtime itself and requires a refusal with the expected codes and zero adapter calls.

What the suite does NOT test

  • Performance, latency, jitter. Those are runtime concerns, not specification concerns. A separate (non-conformance) benchmarking suite may eventually live in this directory; if so, it is clearly labeled as a benchmark, not a conformance test.
  • Substrate-specific behavior. The suite tests URML compliance; it does not test that the runtime's chosen Layer-0 (ROS 2, PX4, ...) is also well-behaved.
  • Hardware-specific behavior. The suite runs against simulators where possible. Hardware-in-the-loop is the runtime developer's own responsibility.

How conformance is consumed

Two paths:

  1. Self-reported conformance. A runtime developer runs the suite against their runtime, records the result, and publishes the report. This is what the open ecosystem looks like. Self-reporting is honest because anyone can re-run the suite and verify.
  2. Certified conformance. The Licensor (or a successor foundation) reproduces a self-reported run from the public package and, if it passes, grants the URML-Certified mark through the registry. Free, on the public criteria in spec/conformance/v0.2.1.md section 3.

How tests are added

A spec change (RFC) that affects observable behavior must land with the corresponding conformance-suite changes in the same release. A spec change without conformance updates is incomplete and is sent back. This rule is what keeps the spec and the suite from drifting.

Status as of Phase 0

This directory contains only this README. Drafting the suite begins in Phase 3, after the first reference runtimes have stabilized. Before then, runtimes self-test against the spec documents directly; the formal harness lands once there is enough surface to test.

Quickstart (v0.1 — hermetic, no ROS 2 needed)

cd conformance
python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ../reference/validator
pip install -e ../reference/ros2-runtime
pip install -e ".[dev]"
pytest

Use the runner programmatically:

from urml_conformance import ConformanceRunner

runner = ConformanceRunner()
report = runner.run()
assert report.all_passed, report.render()

Check that every rejected fixture sends zero commands through the runtime:

python -m urml_conformance --goal-line

Authoring a new fixture

Drop a YAML file under conformance/fixtures/<profile>/:

name: profile/my_case
description: One-line summary.
manifest: turtlebot4_home      # name from MANIFEST_REGISTRY
envelope: home_default         # optional; name from ENVELOPE_REGISTRY
profiles: [home]

program:
  profile: home
  behavior:
    type: sequence
    steps: [ ... ]

adapter_overrides:             # optional: pre-configure MockROSAdapter
  navigation: { success: false, reason: path_blocked }

expected_validation:
  accepted: true               # or false + error_codes for rejection tests

expected_execution:            # omit for validator-only cases
  success: true
  steps_executed: 5
  audit_methods: [send_navigation_goal, ...]
  bindings_contains:
    target_mug: { class: mug }

The fixture is picked up automatically by discover_fixtures() and exercised by the next pytest run.

What's in the v0.1 fixture set

A representative selection (the full set is discovered automatically from conformance/fixtures/**/*.yaml by discover_fixtures() and has grown well beyond the rows below as profiles and runtimes landed — run urml conformance run for the live count):

Fixture Exercises
home/red_mug_positive Canonical red-mug fetch end to end.
home/red_mug_nav_failure Adapter failure → abort_and_report halts the sequence.
home/missing_location_rejected Validator-only: undeclared location → capability.missing_location.
home/branch_on_color Branch composition + $ref.field.subfield condition evaluation.
home/retry_until_confidence Retry composition with until short-circuit.
home/parallel_first_to_succeed Parallel composition with first_to_succeed mode.
industrial/pick_red_positive Industrial pick-and-place written with the core twelve (composition-equivalent).
industrial/pick_from_positive RFC-0013: pick_from + place_at; the picked-object binding flows between them.
industrial/swap_tool_positive RFC-0013: swap_tool rides the docking-service path (send_docking_goal).
industrial/swap_tool_undeclared_service_rejected RFC-0013 negative: swap_tool at a non-station → capability.missing_docking_station.
  • LICENSING.md: what is free and what needs a commercial license.
  • /spec/ — the specifications the suite tests against.
  • /reference/ — the reference implementations the suite is first exercised against.
  • MANIFESTO.md §License Direction — the trademark / conformance-mark policy that lives separately from the suite.

Metadata

Release files for urml-conformance 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urml-conformance 0.5.1
File Size Uploaded Provenance Actions
urml_conformance-0.5.1.tar.gz 189.5 kB Without provenance Details for urml_conformance-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urml-conformance 0.5.1
File Interpreter ABI Platform Actions
urml_conformance-0.5.1-py3-none-any.whl Python 3 none any Details for urml_conformance-0.5.1-py3-none-any.whl

Total release size: 628.8 kB

Release files / urml_conformance-0.5.1.tar.gz

Download URL urml_conformance-0.5.1.tar.gz
Size 189.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a9a729dff94606d8cc95a214c58d98850057949ffae772268f2543de8eb6ea48
BLAKE2b-256 checksum
How to use checksums
fe1cdbf053a41501147e366aee98c51fa4eb25ccbc4c1130d56a866ee1ea2d83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / urml_conformance-0.5.1-py3-none-any.whl

Download URL urml_conformance-0.5.1-py3-none-any.whl
Size 439.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfb3e30702fd7fbb223139b9b596845f04b51c7ba7f2877e1f441eb4ef2c70a5
BLAKE2b-256 checksum
How to use checksums
610edf27f44e1b6c31ad26d8b22f37d7ac64acf8acd42bfa47f49cada83f93bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for urml-conformance 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page