Skip to content
SimulatorApplied engineering

A loop that checks before it commits

An agent runs sixty tasks whose steps sometimes fail. Choose whether each step is checked, how often a step fails and how long the tasks are.

  • pale: worked first time · colour: caught and repeated · white: failed unnoticed · crossed: given up
Tasks finished correctly
60 of 60
Finished with a hidden error
0
Given up after three tries
0
Extra work spent on retries
12%
After each step

Turn the check off: the same failures now finish unnoticed. Lengthen the tasks and see how fast unchecked errors add up.

What the simulator does

  • With a check, a failed step is caught, rolled back and tried again, up to three times; then the task is given up and says so.
  • Without a check the same failure goes on unnoticed, and the task finishes with a hidden error.
  • The chance that a task finishes clean falls with every step it has: checking buys correctness with extra work.

In Verace Flotilla

Schematic: the scaffold generated for each Verace Flotilla engine, a core class with the shared physics core, daemon and telemetry store around it. The cores are placeholders and the verification stage exists only in design.

Engine core class
Names the invariant as a string, computes nothing
Shared physics core
Three scalar formulas copied into each engine
SQLite telemetry store
Per-engine records, summarised by a viewer
Autonomous daemon loop
Calls the physics core and writes records

What this is not

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Read the write-up