Skip to content

Changelog

0.1.2 (2026-11-27)

  • A documentation site (2026-11-26): https://lorite.github.io/robofacts/, built with MkDocs and Material from docs/ and published on GitHub Pages by .github/workflows/docs.yaml (every push and pull request builds it with --strict, a push to main publishes it). The long README is split into 52 small pages (getting started, concepts, guides, backends, reference), which link to each other with wikilinks ([[page]], resolved by file name with mkdocs-obsidian-bridge, so a broken link fails the build). The reference of the commands, the lint rules and the gate checks is generated from the code by tools/gen_docs_reference.py, and robofacts_ros2/test/test_docs_reference_is_current.py fails when a committed page is stale. The README now points to the site. setup.py names the site as the project's documentation, which the PyPI page shows from the next release. The test that no lab name reaches the packages also scans docs/, mkdocs.yml and tools/.
  • The runner's message when an override is set (2026-11-26) said "failures will not block", which was wrong since 0.1.1: it now says that a failed soft item will not block and a failed [HARD] item or factor check still blocks.
  • The pose pause follows the trial's domain (Alejandro, 2026-11-26): it asked for the word fly only when runner.yaml said simulation: false, while the refusal of a hardware run without a terminal used the trial's domain, which a factor level can set (domain: {level: hardware}). Such a level in a simulation: true experiment was refused without a terminal and then started on a plain Enter. Now trial_is_hardware decides the pause, the spoken GO, the voice defaults and the run marker for the stop tools, which ignored the marker of such a trial as a simulation's.
  • The quickstart test started python3 through a link to sys.executable, which loses a venv's packages (2026-11-26). It now uses a small wrapper script.
  • trials run prints the live steps (Alejandro, 2026-11-27): only the web interface showed a campaign's operator_live_steps, on the run page from the start of the run, so an operator at a terminal never read them. Now the runner prints them when each executed trial starts (a campaign trial and --scratch), after the operator steps and before the setup steps, with the trial's factor values filled in as in the operator steps, and the run log holds them. A step with a run command also shows that command, for the operator to run by hand. They are printed without a terminal too, and the runner never waits for them. A dry run lists them. The web interface does not speak them, so the command line does not either. A step text that the filling cannot handle (such as {robot.name}) is printed as written, for the operator steps too, where it stopped the trial with an error.
  • The comments of the skeleton runner.yaml state the real order (2026-11-27): the ROS 2 skeleton put the gate before the setup steps and said that the setup steps run after the gate, while the runner runs the setup steps, then the stack, then the gate. The skeletons and the ROS 2 example said that a remote host's container may be omitted, while the runner runs every remote command with docker exec -i <container>: they now say that it is required, and so do the docs.
  • Help texts without history (2026-11-27): the descriptions of trials plan, run, index, analyze, check, metadata and version lost their "(phase 3)" and "(2026-08-04)" remarks. trials run --no-voice points to the spoken cues page of the docs instead of a guide that is not public. The ROS 2 trials profiles description is a whole sentence. python3 -m robofacts.operator_voice --help describes the voice daemon (it receives one UDP datagram of UTF-8 text per cue, speaks it and answers a ping) and links the spoken cues page, instead of naming a lab script that the repository does not have. The core's test of lab names now allows the address of the docs site, as the ROS 2 test already did.
  • The gate check summaries in plain words (2026-11-27): the first sentence of each check script, which the gate checks page of the docs shows, no longer uses a lab voice or words in capital letters. No check changed its logic, its name or its arguments.
  • Backend declares gate_prepare once (2026-11-27). The second declaration changed nothing, because a dataclass keeps the first position of a field.
  • The analyses key requires_topics (2026-11-27): the docs say what it does, which is nothing. trials analyze runs the analysis over every selected recording, also one that lacks those topics. The loader still accepts the key, so the files that set it keep loading.

0.1.1 (2026-11-26)

  • robofacts on PyPI (2026-11-25): pip install robofacts installs the general package from PyPI, without a clone. The workflow .github/workflows/release.yaml builds the sdist and the wheel of robofacts/ on every v* tag, fails on a twine check --strict warning or on a tag that differs from the built version, installs the wheel alone and runs a generated project (lint, plan, one trial, the coverage index), and then publishes through PyPI trusted publishing, so no token is stored in the repository. A manual run builds and checks only. The package has its own README for the PyPI page (robofacts/README.md, without middleware names, so the purity test still passes) and the project links, keywords and classifiers. robofacts_ros2 is not on PyPI, because it needs rclpy. Both packages and CITATION.cff say 0.1.1.
  • pytest is a dependency of robofacts (2026-11-25): the linter's rules are pytest tests, so trials lint and trials validate stopped with ModuleNotFoundError: No module named 'pytest' after a plain pip install (found by installing the wheel without extras in python:3.10-slim). The CI had always installed the test extra.
  • An MCP server for agents (2026-11-25): trials mcp serves nine read-only tools over stdio with JSON results (list_experiments, list_campaigns, validate_experiment, lint, plan_campaign, dry_run_campaign, coverage_index, list_trials, explain_trial), built on the MCP Python SDK 2 as the optional extra robofacts[mcp] (module robofacts.mcp). No tool runs a trial, runs a gate check against a robot, writes the stop latch or changes a file: the dry run calls the runner with dry_run=True and no gate, validate_experiment leaves out the experiment's own test files, and the result of a dry run names the --execute command for the operator. Arguments are names, never paths, and an argument a tool does not declare is refused. test/test_mcp_read_only.py calls every tool on a copy of the example with recorded trials and checks that no file changed, no process other than the lint's pytest started, no socket opened and no stop latch was written, plus a static check of the server's code. The CI job core-no-ros installs the SDK through the test extra.

Fixes from the pre-release review (2026-11-25)

Three rounds of independent review before the first PyPI release. Each fix has a test that fails without it.

  • The gate (decided on 2026-11-26):
    • No override passes a failed [HARD] item or a factor check that did not pass. Before, --gate-override passed both and the trial counted, while the checklist template says that a [HARD] item cannot be overridden and the paper says that a failed check never counts. A failed soft item may still be overridden with its reason, and the shadow mode of a gate factor (simulation only) still records every verdict and never blocks.
    • A hardware trial runs only after a T-0 gate. Before, an experiment without a gate checklist, or the web interface's "skip the gate", ran a hardware trial with a warning only. A simulation still runs ungated, with the UNGATED warning.
    • A hardware run whose stdin is not a terminal is refused unless --no-pause is given, because nobody could type fly at the pose pause. Before, the pose pause and the operator steps passed without a word. Without a terminal, the operator steps are now printed with a line that says that nobody waited for them. The web interface answers the pose pause in the browser and needs no terminal.
  • The runner and stops:
    • The trial's action ends before the teardown. On Ctrl-C the runner stopped the recorder and the stack while the action was still landing. Now the interrupt goes on to the action, the runner waits up to 90 s for the action's whole process group to end (a flight lands), and only then sends SIGTERM and SIGKILL. A second Ctrl-C kills it at once.
    • SIGTERM and SIGHUP take the Ctrl-C path. Before, they ended the runner at once and left the stack and the recorder running, with no metadata and no ledger line. A second interrupt during the teardown waits until the recorder and the stack have stopped.
    • A local action leads its own process group, so the action timeout and the web interface's stop reach the whole action, also behind a wrapper script and a flight that the wrapper started in the background. After a normal exit, a process that the action leaves running is named in a warning and the trial keeps its result (a daemon that a tool of the action starts is normal). After a stop or a timeout, the runner still waits for the whole group to end before it stops the stack. A local action has no terminal, so it must not prompt (the skeleton's runner.yaml says so).
    • A closed terminal lands the action and stops the stack. After a hangup every write to the terminal failed, and an unguarded print broke the stop path, so the stack and the recorder ran on and the trial had no metadata.
    • Ctrl-C at the web interface's server lands the action of the running trial and waits for its teardown. Before, the server exited with the action still flying. SIGTERM and SIGHUP take the same path (a pkill, a service manager or a closed terminal ended the server at once), and a second Ctrl-C during the landing exits at once, as the server says.
    • A stop from the web interface during the settle time, the gate or the pose pause is no longer lost: the trial ends before the recorder, the action or the manual window starts. Before, the recorder started, the action flew, and the trial was written as complete. An action that a stop ended never counts, also when it lands and exits 0.
    • A stop ends the manual window of a trial whose action step is disabled, and that trial is aborted. Such a trial now records steps_disabled, which trials records shows.
    • An error after the recording (a verify step that cannot run, a full disk) writes the trial as aborted with a ledger line. trial_metadata.json and recording.json are written whole (a temporary file, then a rename), and a failed metadata write fails the trial on record.
    • One run per project: an executed run is refused while another live run holds the project's run marker (from the CLI and from the web interface), two attempts in the same second get two directories, and a runner removes only its own marker. After a runner was killed with kill -9, the next run refuses while that run's processes still run, prints the commands that stop them, and puts the killed trial on record as aborted. A dead runner's marker no longer blocks exclude, amend and reverify. A refusal ends trials run with its message and exit code 1. After a container restart or a reboot, the pid in a marker can belong to another process: the marker now records when its process started, so such a pid no longer refuses every run for 12 hours.
    • After a runner was killed during a remote trial, the next run says that the stack and the recorder may still run on that host and prints the clean-up to run there (a backend names its clean-up tool in the new field clean_slate_tool). Before, the refusal printed a kill that stops only the local ssh clients.
    • Every command of a planned run, the launch command included, is rendered before the first trial starts, and trials validate reports a command that cannot be rendered. A placeholder typo in a verify step stopped the run only after a trial had flown and recorded.
    • Each placeholder value stays one argument: a project folder with a space in its name aborted every trial, and a level with an apostrophe raised an error. A list value that is a whole argument, such as {bags} of an analysis, still becomes one argument per element, and inside a larger argument its elements are joined with spaces.
    • A trial id is cut on UTF-8 bytes, not characters: a long level in Chinese characters made a directory name the file system refused, and trials records then stopped for the whole experiment. It now lists such an entry.
    • trials run counts a trial whose metadata breaks the experiment's contract apart from the OK ones ("recorded but unverified") and names its first problem. Before, it said OK for a trial that never counts.
    • An action that could not start, or that the runner lost (a byte that is not UTF-8 in its output), is written as aborted and never counts. Before, it was written with aborted: false and counted as coverage, and the lost action ran on into the next trial.
    • An action that a signal ended is reported as "interrupted (SIGINT)", "stopped (SIGTERM)" or "killed (SIGKILL)", not as "the trial did not happen as planned". The abort reason names the signal and the stage the trial had reached (it named the teardown before), and an interrupted run ends with one line and the exit code 128 plus the signal number instead of a traceback.
  • The emergency stop (trials tool estop.sh):
    • Every documented form of a robot's stop command runs whole: the string form that the skeleton robots.yaml documents crashed the reader, and only the first line of a multi-line command ran, while the script still said "All robots confirmed the estop" with exit 0. A stop entry it cannot use now counts as a failed stop (exit 1), and the other robots still get theirs.
    • A local container with the robot container's name no longer takes the robot's stop when its hostname differs from the declared container_hostname. The stop goes over ssh to the declared host. The lab's routes are unchanged.
    • Inside the robot's own container, the stop runs in the declared login shell of the host level (zsh -lc in the lab), as robot_action.sh does. Before, it ran in bash -c, so a container that sets its middleware configuration only in the shell's startup files sent the stop without discovery and could still report OK.
  • The Crazyflie example: the hover lands on SIGHUP and SIGQUIT as on SIGTERM (a closed terminal ended it without a landing), an operator stop during the landing aborts the trial, and the verify step fails a flight that ended in an emergency stop.
  • The process backend's recorder runs with the Python interpreter that runs trials. With pipx, or a virtual environment that was not activated, the python3 on the PATH had no robofacts, and every trial recorded nothing.
  • Settings: names(), default_record_profile(), default_cf_name() and the adapter functions read trials.yaml from the working directory, not from the experiments root they were given. A run started inside another project read that project's adapters and blocked every trial. They now take the experiments root, a setting read without one follows $TRIALS_EXPERIMENTS_ROOT, and trials run and trials ui export their root. The project root of a given experiments root comes from that project's trials.yaml, also in trials roots.
  • The linter:
    • L10 checks the metadata contract's invariant (every swept factor is recorded as a coverage axis), as the paper says. Before, only plan, check and run refused such a campaign.
    • The lint ignores the pytest configuration and the conftest.py files of the project it checks. With robofacts installed in a virtual environment inside the project, the project's conftest.py ran during trials lint and during the MCP server's lint tool.
  • Campaigns: a sweep that lists a level twice is refused (it doubled the trials wanted of that level). Levels such as 1 and true are not duplicates.
  • The coverage index and the records:
    • The grid shows the axes that vary before a constant one, and its "also varying" note names only axes that vary.
    • With recordings on a disk that is not mounted, trials plan, trials run, the web interface's plan pages and the MCP server's plan stop with the disk to mount. Before, the plan read those trials as missing cells, and a run would have recorded them again. trials run checks the disk before it prints the plan.
    • trials metadata audits the trials that the index reads (with only slim copies present it found none), and trials reverify renders the verify steps with the corrected factor values.
    • trials records reads a run log the same way on Python 3.10 to 3.14 (the core suite failed on 3.14).
    • trials records marks its start times as UTC (started in --json ends in Z).
  • The web interface:
    • An EXECUTE gets the CLI's T-0 gate from the campaign's checklist when the experiment has no scripts/preflight.sh. Before, such a run had no gate and its trials counted. A run without any gate says UNGATED.
    • A dry run no longer takes the rig's single run slot, so the stop reaches the executing run. The interface starts one run at a time, a dry run too: two runs at once mixed their logs.
    • A POST action that a page of another site sent is refused, and a campaign field can no longer name a file outside the experiment's campaigns/.
    • The stop and robot action buttons use the robots.yaml of the interface's project, not one found from the server's working directory.
    • With a password, a slim bag's URL for the viewer carries a token (?t=), and a bag URL without it is refused. The token is keyed with a random secret that the server makes when it starts, not with the password: anyone who saw one link could test passwords offline, and the viewer link goes to app.foxglove.dev. The links of a page opened before a restart of the server stop working.
    • Kill ROS uses each host's checkout and setup files from hosts.yaml. Before, it ran cd into the interface's own checkout on the rig.
    • The clean slate no longer fails with an error while a trial runs, an undeclared host in the gate button answers 400, and the back field of a form only leads back into the interface.
  • trials tool robot_action.sh runs every documented form of an action whole and follows the container_hostname rule, as estop.sh does.
  • The ROS 2 backend:
    • Explore's action runs while any process of its group lives: a wrapper that started the flight in the background and exited freed the action slot, Stop said that no action was running, and the shutdown stopped the stack under the flying robot. Stop and the shutdown now reach the whole group and wait for the landing.
    • A stop reaches the remote stack after its ssh client has exited (a lost Wi-Fi). Before, the remote pkill never left.
    • The remote slim copy runs from the robofacts_ros2 package. Outside the lab, every remote trial got no slim copy.
    • The slim copy of an externally recorded bag stays in the repository's bags_slim/, not on the external disk.
  • The MCP server: a factor level that contains a comma is refused (it became a sweep of two levels), and trials mcp --help works without the MCP SDK.
  • Packaging: the license text is in the wheel and the sdist, the sdist no longer ships a test suite that cannot run, the classifiers name Python 3.10 to 3.14 and the CI job of the general package runs on each, the release workflow runs the core suite before it publishes, and every action of the release workflow is pinned to a commit. colcon build --symlink-install builds robofacts again: its setup.py looked for the PyPI page's README next to the symlink that colcon runs, not next to the file.
  • Docs and examples: the PyPI page names the MCP extra, the README gives rosdep install ... --skip-keys robofacts (rosdep has no rule for robofacts), the CLI's help no longer names a tool that only the ROS 2 backend ships, the stand-in systems of the examples stop quietly on SIGINT, and the README steps that run --execute on a demo pass --no-pause or say that each trial waits for Enter. The help and the messages name the backend's own folders, the usage line of each subcommand names the subcommand, trials new --from names only the files that the copy has, a NO-GO with a failed [HARD] item says to fix the cause, the Dockerfile's test command runs in the quickstart image, and the README names Python 3.10 to 3.14 for the job without ROS.
  • Tests: the web interface's tests no longer skip the whole ROS 2 suite when Flask is missing (a module-level importorskip collected 0 of 527 tests with exit code 0), and a static check refuses that pattern in every test module. The redirect test of the web interface passes with the Flask 2.0 of Ubuntu 22.04, which the Humble CI job installs.

0.1.0 (2026-11-25)

The framework of a robotics lab's experiments, extracted into two installable packages: robofacts (Python only, pip install) and its ROS 2 backend robofacts_ros2 (ament_python).

  • Prepared for the public release (2026-11-25): studies/sac2027/ holds the pre-registration files of the SAC 2027 studies (predictions, protocols and deviation logs), verbatim from the laboratory repository, with a README that maps each file to its study and gives its commit date against the start of the main run. The README now starts for a first-time reader (what RoboFACTS is, install, quickstart, the three examples, how to cite), and CITATION.cff cites the SAC 2027 paper. Laboratory issue numbers, LAN addresses and host names were removed from code comments, docstrings and tests (the addresses became RFC 5737 documentation addresses). The cflib example arms through supervisor.send_arming_request, because cflib deprecated platform.send_arming_request, and a test checks it.
  • A Crazyflie example without ROS 2 (2026-11-25): examples/cflib_hover is its own project on the process backend. One Crazyflie hovers on its Flow deck, commanded with cflib: the action refuses before arming on a fresh stop latch, a missing Flow deck, a low battery, an unsettled estimator or a ground position away from the origin, takes off in two stages, and lands on the end of the hover, on a signal, on the stop latch, at a geofence and on any error (an estop latch cuts the motors). The gate reads the battery and the Flow deck over the radio with two checks of the project, the drone's reset is a power cycle over the radio, and the verify step reads the recorded height. Its tests need no drone and no radio (a fake drone for the hover logic). Neither package changed for it.
  • README section "What a backend must provide" (2026-11-25): the required launcher and recorder with each method, the optional fields of Backend with their defaults, and the two shipped implementations as examples.
  • backend: in trials.yaml is required (2026-11-25): there is no default backend. Without the line every command stops with the line to add ($TRIALS_BACKEND still overrides for one session). trials init writes it, process unless --backend names another. A project of the ROS 2 package adds backend: ros2.
  • The folders of an experiment are named by the backend (2026-11-25): on the process backend recordings/, recordings_issues/, recordings_slim/, recordings_issues_slim/, recordings_scratch/ and recordings_scratch_slim/, on the ROS 2 backend the bags* folders as before (Backend.record_dirs, backend.record_dirs()). The coverage index, the decisions about a trial (trials exclude, restore, amend), the metadata audit, trials records, the runner, the scaffolding and the web interface read the names from there. --recordings-root is a second name of --bags-root, and recording_dir_writable a second name of the check bag_dir_writable (no new script, so the core still ships 8 checks). The record fields bag_storage and bag_dir keep their names. The example and the experiment template of the general package use the new names. A copy with trials new --from leaves out the recording folders of both schemes.
  • The web interface is general (2026-11-25): trials ui and its pages are part of robofacts (Flask as the optional extra robofacts[ui]). A backend extends the interface through its feature ui (TEMPLATES, template_globals(), layouts(), register(ui)), and its _viewers.html replaces the general one. The ROS 2 backend's extension, robofacts_ros2.ui_extension, adds the Foxglove replay links and layouts, the Viewing page, the slim-bag download for the viewer and the clean slate of the rig hosts. Explore is offered only when the backend has the feature explore. On the lab's data, served read-only, the pages of the interface are the same before and after, apart from six reworded tooltips and hints.
  • An example without ROS (2026-11-25): robofacts/example_project holds one experiment on the process backend, demo_log_recorder. A script stands in for the system under test and appends lines to a log file, the recorder stores what it writes during a trial, a verify step reads the recording, and the campaign grid sweeps two factors (rate, duration), so the coverage index shows four cells. robofacts/quickstart.sh runs the loop on it from the linter to the coverage index, and the CI job core-no-ros runs that script on python:3.10-slim with only robofacts installed. The core's tests run against this example, never against a project that lies above the working directory, and they need neither git nor pgrep (the tests of the code version are skipped where git is absent).
  • Two packages (2026-11-24): the repository holds robofacts/ (the general package: declarations, planner, linter, coverage index, the trial loop, the gate protocol with 8 general checks, the launcher and recorder interfaces, the process backend) and robofacts_ros2/ (the ROS 2 backend: launcher, bag recorder, bag readers and slim copy, 13 ROS 2 gate checks with their sentences and concurrency classes, the robot adapters, the ROS 2 lint rules L2, L5, L11 and L16, Explore, the web interface, kill_ros.sh, the talker template). robofacts has no package.xml and depends on PyYAML only. robofacts_ros2 depends on it. robofacts/test/test_core_is_free_of_ros.py fails the build when the general package imports a ROS module, names ROS in any file, or loads a ROS module on import. What changes for a project: (1) trials.yaml names the backend, backend: ros2, and without the key a project runs on process (a ROS 2 launch: block is then refused with the line to add). (2) The command is trials (on the PATH after sourcing a colcon workspace, or after pip) or ros2 run robofacts_ros2 trials. ros2 run robofacts trials no longer exists. (3) Modules that moved are imported from robofacts_ros2: bag_io_utils, slim_bag, slim_bag_archive, export_rosout_text, explore*, pose_sample, ui, the adapters (robofacts_ros2.adapters.<name>), the bag-reading half of trial_media, and build_record_command and the heavy-topic rules of record_profiles (robofacts_ros2.record_profiles re-exports the rest). (4) A check script that sources the helper file by a path of the old layout needs the new path ($PF_LIB is unchanged when the gate runs it). (5) colcon_workspaces is still read on the ROS 2 backend, build_workspaces is the general key. trials init --backend ros2 writes a ROS 2 project. The dry-run commands, record topics, gate checklists, stop patterns and lint results of a robotics lab's 118 campaigns are identical before and after, apart from the paths of the moved modules.
  • Backends (2026-11-24): the trial loop no longer names ROS 2 where it starts the stack and records the trial. robofacts/backend.py defines two interfaces that return command lines, a Launcher (parse, command, stop_patterns) and a Recorder (command, has_data, holds_data, unsettled_reason, after_trial, and noun, the word for one recording), and a Backend object that holds them with two optional hooks (the default setup files of a host, a step before the gate's machine checks). trials.yaml names the backend with backend:, $TRIALS_BACKEND overrides it, and a project that names none runs on ros2 as before. The ROS 2 code is behind the interfaces in robofacts/backends/ros2/ (ros2 launch, ros2 run, ros2 bag record, the completeness test of a bag, rosout.txt, the slim copy, the daemon restart before a gate). robofacts/backends/process.py is a second backend without any middleware: launch: {command: ...} starts the stack, and python3 -m robofacts.backends.process_recorder stores what the system appends to the files of record_sources during the trial, finalized by recording.json. record_sources is a second spelling of record_topics in runner.yaml. The process backend refuses launch.package and launch.file with the line to add to trials.yaml. Commands, record topics, gate checklists and stop patterns of a robotics lab's 118 campaigns are identical before and after.
  • Lint rule L6 binds every experiment (2026-11-24): runner.yaml declares at least one verify step, or a written reason why it has none (no_verify_steps: <reason>). Before, the rule looked for flight words in the action and in the factor levels, so only an experiment that flies had to check its recording, although a ground robot whose action exits 0 while it stands still produces the same false trial. The lint cannot know from a declaration what moves, so it asks every experiment and accepts a reason. Both keys together, or a reason that is not a sentence, fail the rule. The example experiment now has a verify step (scripts/verify_chatter.py, at least 3 recorded messages), as the generated experiment already had.
  • One host registry (2026-11-16): common/config/hosts.yaml declares how to reach each execution_host level once (local, or host, container, container_hostname, shell and the setup files), and an experiment's runner.yaml hosts: lists its levels and writes only what differs (host_registry.py). A robotics lab had 18 full copies of these settings, and one level had drifted to three ssh aliases, two of which did not reach the robot computer on the lab's network. RIG_HOST replaces the ssh alias of the registry's rig: level, the same variable estop.sh reads. A trial on a level that its experiment does not declare is now refused instead of running on the runner's own machine. A project without hosts.yaml works as before.
  • The stop follows the trial (2026-11-16): a robot in robots.yaml names a host_level, resolved through hosts.yaml (host_registry.robot_targets). The runner notes each trial's execution_host, robots and simulation flag in its run marker (run_marker.note), and estop.sh and robot_action.sh send a hardware trial's robots to its host. --host-level overrides for one call. A simulation never moves a stop, and a marker whose runner process is gone is ignored (run_marker.read_live). estop.sh --list and the stop output name each robot's host and the reason, the runner prints the targets at the start of every hardware trial, and the web interface's clean-slate button resolves its hosts the same way. Before, a trial on the laptop sent the stop to the robot computer unless the operator remembered RIG_CONTAINER.
  • A stop typed inside a container runs there only when it is the target's own container (2026-11-17): container_hostname of the host level must match the current hostname. Before, any container counted, so a stop typed in a laptop's container for a stack on the robot computer stayed on the laptop. robot_action.sh follows the same rule (it had no container check and tried docker exec inside a container). estop.sh --list prints a route: line per robot, and the runner's line says here, in this container when that is the route. TRIALS_DOCKERENV lets tests point the container check at a file of their own.
  • The core names no robot and no lab (2026-11-09): test/test_core_names_no_robot.py fails the build on a robot family or a lab name in a core file, with a short allowlist for facts about third-party tools, and on internal issue numbers anywhere in the package. The comments, docstrings and docs lost the issue numbers and the lab's robot, rig and experiment names, and keep the reason and the date of each lesson. What a slim bag drops is the core's generic image, depth and point-cloud patterns plus the project's slim_topics: {heavy_patterns, light_suffixes} in trials.yaml (a lidar's clouds and a debug overlay used to be core rules), and HEAVY_TOPIC_PATTERNS resolves on access. pose_error_analysis left the package (its rows are one project's data format), and its PoseSample record is robofacts.pose_sample. The defaults of camera_frames (topic=/camera/color/image_raw) and ros_clean_slate (pattern=component_container) no longer name one lab's devices, and the web interface reads a lease table from any enabled adapter that offers LEASE_TABLE.
  • Robot adapters (2026-11-09): what only makes sense for one robot family left the core for robofacts/adapters/<name>/, enabled per project with adapters: [...] in trials.yaml. crazyflie: the gate checks battery, crazyflie_radio_battery, drone_armable and ekf_convergence, the verify steps verify_flight_happened and verify_ext_pose_age, rosout_trim_utils (its generic detect_storage_id and stamp_to_float moved to bag_io_utils), and the default cf_name. spot: graph_nav_localized, the lease table of the web interface, and the default spot_name. px4: px4_preflight_pass. Each adapter declares its checks' concurrency and spoken sentences. Check lookup is the project, then the enabled adapters, then the core, and a check of a disabled adapter fails validation with the adapter to enable. The core has no default names any more. watchdog_health left the package (a check of one project's node). The stop sweeps' project-specific names became trials.yaml stop_patterns: (recorder_scripts, owned_containers, kinds), and parallel_safe_checks: lets a project's own read-only checks share a gate batch. A robotics lab's 44 gate checklists (626 machine entries) resolve the same checks with the same concurrency and sentences, and its stop patterns are identical.
  • Record profiles are project data (2026-11-09): the package no longer ships a robot's topic sets. A project declares its profiles in experiments/common/config/record_profiles.yaml (reusable blocks, profiles that list blocks and extra topics, an optional size note, {name} placeholders from trials.yaml), and trials init writes a commented template. The runner reads the profiles of the experiments root it was given, not of the working directory. The fallback profile position_only is gone: a trial without a record_profile factor and without record_topics uses default_record_profile from trials.yaml, else the runner refuses it. The skeleton contract's record_profile enum is [custom, unknown], and record_profiles --list prints the profiles in force. A project that relied on the profiles shipped before this change copies them into its own file (a robotics lab's 18 profiles produce the same topic lists and the same record commands for all 98 of its campaigns).
  • Gate check ros_param_equals reads array parameters (2026-11-09): Humble prints them as Double values are: array('d', [...]), which the check could not parse, so a list parameter always failed as unreadable. Declare expected=[-0.6, 0.7]; the lists compare element by element, numbers numerically, the rest as text.
  • A record profile for a teleoperated drone seen by a quadruped's hand camera (2026-11-09): the hand-camera replay profile plus /joy, the camera's replay-grade pixels of a drone the pilot flies on a gamepad, as detector training data. Its enum entry is in the skeleton and example contracts.
  • A record profile for visual-inertial flights seen by a quadruped's hand camera (2026-11-05): the hand-camera profile plus the drone's camera frames, its IMU and a visual-inertial estimator's topics, so the quadruped's estimate of the drone and the drone's VIO land in one bag with mocap truth. Its enum entry is in the skeleton and example contracts.
  • Robot resets, a pre-launch check stage and spoken NO-GO reasons (2026-11-04). common/config/robots.yaml gives a robot a reset: list ({name, command, when, required, only_with}) and runner.yaml declares robots: (names, or {name, with: [features], reset}); the runner runs the declared robots' resets before every trial, and a campaign opts out with robot_reset: false (robot_resets.py). A checklist entry with "stage": "pre_launch" runs before the stack starts, between runner.yaml's setup steps and the robot resets, with the same NO-GO handling; the T-0 gate runs every other entry and trials gate all of them (PreflightGate.with_stage, stage_checks). The result goes into the trial's preflight block as pre_launch. New check crazyflie_radio_battery (cflib over the radio, before the stack). On a NO-GO the voice speaks at most three failed checks in plain sentences (gate_speech.py, an entry's "speak" or a built-in sentence per check type), and GateResult.failed_items carries them. The dry run prints the setup groups, the resets and the pre-launch checks.
  • First and repeat trials of one runner invocation (2026-11-04, where a 16 s square forced a battery swap and a re-placement of the drone before every trial): operator steps, runner.yaml setup_steps and a new campaign-scoped setup_steps take when: first | repeat | always (default always). The first trial of a run gets the first and always steps, the later ones the repeat and always ones, and a trial after a blocked one starts over as first. A repeat trial whose operator steps all drop out still waits once on a ready step. The campaign's setup steps run after the runner's and before the launch, the place of a reset between trials. The gate, the pose pause and the stack restart stay on every trial. --dry-run prints each trial's operator steps and setup step names, the ledger records step_set, the UI labels a step that is not always and lists the campaign's setup steps in its automatic sequence, and lint L4b checks a campaign's setup steps (placeholders, when) while L7 checks their scripts.
  • Gate check topic_value.sh topic= field= [min=] [max=] [vary=true] [window_s=2] [min_samples=5] (2026-11-04): a sensor stream is alive, not only flowing. The median of a field (values[i] of a LogDataGeneric, or a dotted path) is at least min and/or at most max, and with vary=true it is not constant over the window. Born for a drone's optical-flow sensor, which came up stuck after a boot (squal 0, shutter frozen at 900) while flow_log streamed at 50 Hz and topic_rate passed. Parallel-safe (a subscription).
  • trials reverify <exp> <trial> --reason … [--campaign] [--by] [--dry-run] (2026-11-04, where a receive-rate rule written for the mocap flights failed a valid Flow-deck-only hover): runs the trial's CURRENT verify steps again, rendered as the runner renders them from the factor values of its runs/attempts.jsonl line, every step even after a failure, on the full bag or else its slim copy, and writes reverification.json beside the bag and its slim copy (each step's command, return code and output tail, the code version, who, when, why, the previous records). The coverage index lifts the abort only when the runner's abort_reason starts with verify step (the action returned 0), every current step passes, and the record was written against that same reason, so an action failure is never lifted. A failing re-verify is recorded and never excludes a trial on its own. trials records shows the re-verify beside the status, and slim copies carry the file. Run it on the host that recorded the trial: the archive mirrors that host with rsync --delete.
  • A person's decision about a recorded trial is a file beside it, never an edit of trial_metadata.json (2026-10-22, from a rig day, where one trial walked another route than planned and one broke on a network stall). trials exclude <exp> <trial> --reason … --category infrastructure|operator|estimator|other [--by] [--evidence] moves the bag and its slim copy into bags_issues* with an exclusion.json beside each, and refuses a trial the runner may still be writing. trials restore moves it back and keeps the old reason as exclusion_restored_<time>.json. trials amend <exp> <trial> <factor>=<level> --reason … writes corrections.json (field, recorded, corrected, date, by, reason), checked against the experiment's levels. The coverage index applies the corrections on top of the recorded metadata, so the plan, trials records and the UI count the trial in its true cell and say that a correction exists. An excluded trial shows its category and reason in trials records, the index report and the UI, and the UI's quarantine button became an exclude form that asks for both, with a restore form on an excluded trial. Slim copies carry both files.
  • Every page has an outline of its sections on the left on wide screens, built from its headings, with the current section marked (2026-10-22). On a campaign page the T-0 gate history folds into one summary line (counts and the last verdict), opened by a NO-GO on an operating UI, and in --view-only mode the "Before you run" checklist starts folded, so the trial cards come right after the plan.
  • card: {first: plots} in config/trial_media.yaml puts a trial's result plots before its camera and video on its card (2026-10-22), for an experiment whose result is a plot, such as a map. A trial without a plot keeps its camera first.
  • The trial lists open as cards by default (2026-10-22): ?view= in the URL still wins, then the viewer's last choice, then the cards. Without JavaScript the table remains the whole page.
  • A run marker (2026-10-22, run_marker.py): while the runner executes a trial or a campaign (never a dry run), <experiments root>/.robofacts_trial_running.json exists, with the host, the process, the experiment, the campaign and the start time. A campaign holds one marker across all its trials, so the gaps between flights are covered too. Tools that move data off a trial host wait while it exists, so a copy never competes with a flight for the network. A marker older than 12 hours is a leftover of a killed runner and counts as absent.
  • trials ui --view-only serves a full recording as a password-protected download (2026-10-22), for a trial archive on a server. A UI on a trial host still refuses it, because it shares the rig's network with the flights.
  • A campaign's cells now match trials on every factor with a metadata key, not only the factors the campaign names (2026-10-21). A factor the campaign leaves out is planned at its default, so a trial recorded at another level of it no longer counts (a campaign that named no world had claimed the flights of another world). A trial that never recorded a factor counts at its default, unless an alias maps the missing key (None) to another level, which keeps older trials apart when a factor's default changes.
  • Renamed to robofacts (2026-10-16), RoboFACTS in the SAC 2027 paper: Factors, A Contract, and checked Trials in Simulation and on hardware. The Python module, the ROS 2 package, the repository (Lorite/robofacts, GitHub redirects the old address) and the colcon install directory (lib/robofacts) follow the name, so it is ros2 run robofacts trials …. The command trials, the TRIALS_* environment variables and trials.yaml are unchanged. Until this date the package was declarative_robot_trials.
  • One command, trials, with the planner, the runner, the coverage index, the linter, the T-0 gate, the named analyses, the web interface and the shell tools as subcommands. ros2 run robofacts trials <subcommand> works the same.
  • The experiments root and the project root are configurable: a flag, an environment variable (TRIALS_EXPERIMENTS_ROOT, TRIALS_PROJECT_ROOT), a trials.yaml found by walking up from the current directory, or the nearest experiments/ directory. No hardcoded path remains.
  • trials init <dir> creates a project with the shared configuration, and trials new <name> an experiment from a commented template that passes the linter, the planner and a dry run as generated.
  • Spoken operator cues: a campaign's voice_cues and the runner's voice_announce reach a laptop voice daemon over UDP (operator_voice.py), printed only when TRIALS_VOICE=off.
  • The project-specific names left the code: the stop latch path and the record profiles' robot, camera and node names are project settings in trials.yaml, with neutral defaults in the package, and every environment variable the package reads starts with TRIALS_.
  • A project may ship its own gate checks in experiments/common/preflight/checks/; they take precedence over the packaged ones.
  • trials tool --help lists the packaged tools and an unknown name fails with that list, trials lint passes pytest flags through (trials lint -k rule_L5 -x), and trials ui --help works without Flask, which only the interface itself needs (found while rewriting the docs to the command, 2026-10-14).
  • The code stamp of a trial also describes the build: for each colcon workspace (colcon_workspaces in trials.yaml, else . and ros2_ws), the HEAD of every source repository under src/ and the newest install/ time, and possibly_unbuilt names the repositories committed after that build. A slow build query no longer costs the commit. The stop and action scripts bound the command inside the container too, so a hung stop cannot keep running there after the local client gives up.
  • The page of an action that echoes a quadruped's LeaseArray states who holds the body lease in one line, with a table of every resource (the tablet held it unseen through four trials on 2026-08-10).
  • A verify step for pose loss read from the drone itself, verify_ext_pose_age (2026-10-14): the on-board locSrv.ageMs of every /<drone>/ext_pose_age topic over the IS_FLYING window, with a declared threshold and run length, per-drone requirements (always, or only when airborne, waived before a declared date or on the simulation backend) and a one-line JSON summary for a metadata probe. The server's Motion capture rate off warnings, which the 2026-10-07 bags proved a bookkeeping artifact, play no part.
  • Gate check rigidbody_near.sh name= (x= y= | node= [param_prefix=]) [max_m=0.25] (2026-10-29): a rigid body stands within max_m of a point sampled now, the point given in the checklist or read from a live node's parameters (initial_position.x/.y of a teleop node), because a teleop node that integrates stick velocities from a fixed origin drags the drone to that origin at the first setpoint. Record profile teleop_shadow_flight (a project's shadow-flight profile plus /joy), with its enum entry in the skeleton contract.
  • Gate checks: topic_rate.sh takes an optional max_hz (a rate that must stay below a ceiling, for a level defined by a slower stream), and the new ros_param_equals.sh node= param= expected= compares a live node parameter with the trial's level, numerically for numbers.
  • The fast path for a new experiment (2026-10-14, after creating one took an agent 44 minutes): trials new <name> --from <existing> [--campaign <c>[:<new>]] copies and renames a similar experiment's declarations (and a campaign) without its recorded data, notebooks or tests, trials validate <experiment | campaign> runs check, plan, every gate checklist's validation, the lint and the tests of that experiment and a dry run per execution host, and prints one READY or NOT READY verdict, and trials lint --experiment <name> lints one experiment.
  • kill_ros.sh matches the install and build trees of any *_ws colcon workspace, not only ros2_ws, so a node of an overlay workspace (OpenVINS in ~/ov_ws) no longer survives the clean slate.
  • The T-0 gate runs on the trial's execution host (2026-10-14): a laptop-driven trial on a rig used to be gated on the laptop's processes, disk, network and stop latch. The checklist travels with the command, the verdict records ran_on, and an ssh failure is an error. A host spec may name env_setup files (an overlay workspace), and the files a spec names are sourced also when the runner executes locally inside that host's container, for the commands and the gate. The web UI's remote helpers imported remote_exec_utils from the wrong package level since the split, so its remote gate, stops and viewers raised ImportError; fixed, with a guard test.
  • From the second adoption test of the SAC 2027 paper (2026-10-15): trials new --from copies a top-level or scripts/ file only when a declaration names it, directly or through another copied file, and lists the rest under "Left out" (the source's AGENTS.md, design notes and study scripts), while an unnamed config/ file is copied and listed for review. A code version that the probe cannot read now carries code_version.warning, which the runner prints as a WARNING, and a git worktree whose .git file names a path missing on this host (a host-made worktree used in a container) is named with its remedy, a relative gitdir: line.
  • kill_ros.sh kills only the processes of the caller's ROS_DOMAIN_ID (read from each process's environment, unset means 0), lists the ones on other domains as left alone, and --all restores the kill-everything run (2026-10-15), so sessions that share a container on different domains no longer stop each other's trials.
  • The test suite points at the example project through an autouse fixture, not through environment variables set at import (2026-10-15). A project that collects the package's tests next to its own (one pytest.ini over both) kept the example project's roots for its own tests too: under pytest 8 its config lint then checked one experiment instead of all of them, and its project-settings tests failed, in the full run only.
  • The web interface, redrawn from scratch (2026-10-16): one information architecture, Experiments › experiment › campaign › trial. An experiment page lists every trial on one row (cell, status, campaign, slim bag with Foxglove and the experiment's layout, video, the analyses that include it, gate verdict, run log, metadata, code version), with blocked attempts and scratch flights, filters by campaign, status and factor, and no cap. A campaign page reads as a plan with the gate's verdicts and a per-cell count of refused attempts; a trial page plays the video and shows the verify report; an analyses page previews a cohort (trials analyze without --execute); a files view serves results and run logs read-only. Every feature of the earlier interface is kept, and its old addresses redirect.
  • The words of the paper (2026-10-16): what a user reads now uses the terms the SAC 2027 paper defines, and the README has a glossary that maps each term to its file or key (file names and keys are unchanged). The planner prints wanted, covered and STILL MISSING per cell; every trial has the paper's class (usable, unverified, or excluded with its reason: aborted, quarantined, no data, scratch), and an attempt the gate refused is an attempt without a trial (trials records --status excluded|attempt); the gate prints === T-0 GATE ===, [gate] and CLEAR TO START; the contract's messages say metadata contract and coverage axis (factor: true); generic text says run and action where it said fly; diagnostics are scratch recordings; the linter's rule L13 names the silent error it prevents. The machine-read tokens (GO, NO-GO, PASS, FAIL, CHECK(S) FAILED, action returned rc=, the ledger's status values) are unchanged.
  • A dark mode for the web interface (2026-10-16): a switch in the top bar cycles Auto (follows the OS), Dark and Light, remembered per browser and applied before the first paint; buttons keep white text on solid fills in both themes.
  • Explore mode (2026-10-16): trials explore <campaign> [--set …] --execute, and a 🔭 Explore button on the Experiments table, on each campaign row and in a campaign's run form (for the picked cell), bring up one condition's stack (setup steps, launch with the condition's arguments, aux launches) with a foxglove_bridge that may change parameters and nothing else (no topic publishing, no service calls, bound to 127.0.0.1). It runs until Stop or Ctrl-C. No T-0 gate, no recorder, no action, no metadata, no ledger line: an exploration is never coverage, and its stack is never reused by a trial. A parameter log (explore_params.py) starts before the stack and reads each node's parameters once through its services (the declarations a node publishes at startup are mostly lost to DDS discovery), so runs/explore/<stamp>_explore[_<label>]/parameter_changes.yaml lists every parameter that changed, from and to, and the ones set back. In simulation every parameter is writable by default. On hardware Explore needs an explore: block in runner.yaml whose param_whitelist names each writable parameter (empty by default, a live view only), lint rule L16 refuses a pattern that matches every parameter, and the UI asks for the arm checkbox. The trial livestream bridge stays read-only.
  • A step trace and a failure report for every attempt (2026-10-20, after ASPIRE, Lu et al. 2026, arXiv 2607.00272, whose coding agent finds the failing step of a robot program from a per-call trace). The ledger line of an attempt carries trace: one record per step (setup steps, launch, aux launches, the T-0 gate, the recorder, the action, the verify steps, an execution error, a failed stop) with its time, duration, exit code and result, and the last 12 output lines of a failing step only. A failure that did not stop the trial (an optional setup step, a shadow gate's NO-GO) is marked blocking: false. An attempt that was blocked, failed, aborted or interrupted also gets runs/<trial>.failure.md: the first blocking failure with its evidence, the other failures, the gate's verdict, the trace as a table, where the run log, the ledger line, the bag and rosout.txt are, and empty findings headings (symptom, root cause, fix, verified by, lesson to keep) for the person or coding agent who debugs it. A trial that ran gets no report. Both are never fatal.
  • Explore viewers (2026-10-17): explore.viewers in runner.yaml, a list of {name, command}, are windows for a human (a simulator GUI attached to its headless server, RViz) that Explore starts after the bridge and stops first. They change nothing in the stack, which stays the one a trial starts, a trial never runs them, and the lint checks their placeholders (L4) and script paths (L7) without counting them as a factor's consumer (L3).
  • Explore for scientists (2026-10-17): the run page is the one place to explore a stack. It opens Foxglove by itself when the bridge is ready (a checkbox, remembered per browser, turns that off), once per exploration because Chrome allows only the first foxglove:// launch of a page without a click, and offers the experiment's layout (config/foxglove*.json) beside it. explore.actions in runner.yaml, a list of {name, command} with the same placeholders and lint rules (L4, L7) as the viewers, are buttons on the page: one action at a time, its output and exit code shown, and a red stop that sends SIGTERM (a flight script lands on it). Allowed in simulation, on hardware only with the arm checkbox, never run by a trial. The parameter changes appear in a table while the exploration runs (the parameter log is read live), with a set back button that runs ros2 param set to the starting value, only for a whitelisted parameter whose start is known. A ● Record button records the running stack with the trial's record command to bags_scratch/<stamp>_explore[_<label>] (scratch: true, explore: true, the condition, the session and every parameter value at the start in its trial_metadata.json), then leaves a slim copy that replays in Foxglove, never coverage. A notes box and a mark button write timestamped lines to notes.md in the exploration's folder, tagged with the recording and its time offset, and parameter_changes.yaml lists the notes and the recordings. Stop lands a running action and finalizes a recording before the stack comes down.
  • Explore for scientists, second batch (2026-10-17): a jog pad (explore.jog in runner.yaml, topic and required limits, each press published by the runner through explore_jog.py for step_s and then a zero twist, in the actions' slot), restart with another condition from the run page (a picker of the campaign's swept factors, the new stack starts after the old one is down), an Analyze button per recording (the experiment's per-bag analyses through run_analysis, also after Stop, analysis_metadata.json marked scratch and explore, run_analysis takes extra_metadata), and keep it? (explore_propose.py: the launch argument, its default, the factor and level, a literal or a parameter file that declares a changed value, read from the source and written to proposed_changes.md, never applied).
  • trials records <exp> (trial_records.py): every trial joined with the campaign that flew it (attempt ledger), the campaigns whose plan counts it, the slim copy, the run log and its verify lines, the gate verdict, the analyses that list it and their videos, filterable like the analyses (--campaign, --status, --where, --json). The web interface renders these records.
  • A card view of the trials (2026-10-20): a switch above every trials list of the web interface shows the same records as cards, each with a still from the trial's video, its start time, name, class, gate verdict and the links to replay, analyses and files. Clicking the still plays the video in a dialog over the list. The table stays the default, the choice is remembered per browser (?view=cards or ?view=table wins), and the cards keep the table's filters, find box and sort. The stills come from trial_records.make_poster (ffmpeg, the frame 3 s in, cached under runs/posters/ and made again for a newer video), made on their first request through the files route or ahead of time with trials records --posters; a record's JSON carries poster. The records join also finds a video in a result folder named exactly like the bag (results/<bag>/), and the experiment page's trials table no longer shares its id with the heading above it, which had left the find box matching nothing.
  • Stills, a camera video and a plot for every trial card (2026-10-20): an experiment may declare one camera in config/trial_media.yaml (camera: {topic, label, stills, video, after_trial}), a sensor_msgs/Image (mono8, rgb8, bgr8, rgba8, bgra8, 16-bit, Bayer) or sensor_msgs/CompressedImage topic. The new module trial_media.py reads it from the slim copy (or the full bag when only it has the topic) and writes evenly spaced stills, an H.264 mp4 of the whole topic at its recorded rate and camera.json to the git-ignored runs/camera/<trial>/, through a temporary folder so the UI never shows half a set. trials records --stills [--force] makes them for every listed trial whose bag records the topic, and the runner makes them after each trial's slim copy (after_trial: false turns that off, and a failure never touches the trial). A record carries stills, camera_video, camera_label and plots (trial_media.plots_of: up to four, the trial's own plots first, then the first plot of each cohort that includes it with the cohort's size, an older run's plot of the same name left out). A card's picture box has one layer per source (the trial video's poster, the camera's stills, each plot) and, with more than one, a row of tags above the picture that switches between them. A hidden layer's image loads only when its tag is picked. Moving the pointer across the stills scrubs through them, and the play button plays the trial video, or the camera video labeled with the camera's name. The trial page shows the camera video, every still and the plots. trials new --from copies config/trial_media.yaml as a declaration, so it is no longer listed for review. camera.topic may be a list of alternatives, a name or {topic, label}, and the first one a bag records wins (trial_media.find_source), so one experiment can show a raw or a JPEG camera stream, or a detector overlay before the plain camera.
  • The trial index and the campaign loader cache the YAML they parse by file modification time: the index of a 128-trial experiment with 27 campaigns went from 4.7 s to 0.4 s.
  • CI green again (2026-10-16): the dds_socket_buffer gate check skips a stack that does not use CycloneDDS (RMW_IMPLEMENTATION other than rmw_cyclonedds_cpp, or unset, which on Humble means Fast DDS), so a project made by trials init passes its first gate on a plain ROS 2 machine; with CycloneDDS in use an unset CYCLONEDDS_URI still fails. test_voice_cues.py imports the lint module inside its test, because the lint resolves the experiments root at import and collection failed outside a project.
  • An example project with the no-robot demo_talker_listener experiment, a quickstart script and a Docker image for the quickstart and CI.