Skip to content

Verify a bundle

Check that a bundle gives the outputs it holds.

  1. Choose File > Verify Bundle… and pick the .zip. On the command line, run experimenter bundle verify <zip>. Add --json for data.
  2. Read the expected time and choose OK. The time is the sum of the recorded Run times.
  3. Wait. Stop ends the check.
  4. Read the table and the outcome.

Verify runs a model. It follows the terms rule of run: a gated build refuses it until you accept the terms. The GUI also refuses it while a launch runs.

A bundle comes from another person, and its Experiment can hold Scripts. A Script is a program that runs with your rights. Verify runs none unless you agree:

  • On the command line, add --run-scripts.
  • In the GUI, a dialog lists each Script command. Skip Scripts is the default button.

Without your consent verify does not re-run the section. It names each Script and reports incomplete.

What verify does

  1. It refuses a bundle with a path that is absolute or climbs out with ... It refuses a format_version that this build does not read.
  2. It checks free disk space, twice the unpacked size, and unpacks into a temporary folder.
  3. It checks the sha256 of every listed file.
  4. It runs the recorded section again with the recorded engine, into the temporary folder. A Sequence section re-runs as a Sequence. It runs Scripts only with your consent.
  5. It compares each output file with its twin from the re-run, one series at a time. A series is one variable in one Run over time.

Verify compares the installed Experimenter, the Experimenter engine, Stella, Python and Rscript with the bundle. The match policy of the bundle decides the result. A warn component adds a warning row with both versions. A refuse component adds a fail row.

How a series is compared

SeriesRule
an Experimenter engine Run that is deterministicexact: the cell text is equal, or the cells differ by no more than 1e-12 of the value (relative, with a floor of 1)
Any other numeric series, a stochastic Experimenter engine Run with a recorded seed includedtolerance: the normalized RMSE against the bundled series is 1e-6 or less. A flat series passes when its largest difference is 1e-6 or less (relative, with a floor of 1)
A stochastic Experimenter engine Run with no recorded seed, or with a drawn seed that verify cannot set againnot compared. A re-run draws another seed

Text columns must be equal.

The manifest can record a seed that the engine drew, with the routine name. Then verify sets that seed on the routine in a private copy of the Experiment. The re-run repeats the sample or the search, and verify compares it by tolerance. This works for a Sensitivity routine and for a Differential Evolution optimizer. It does not work in three cases:

  • a Sequence
  • a routine whose Runs drew different seeds
  • a drawn seed with no routine name

The four outcomes

OutcomeMeaningExit code
passEvery hash matches and every column matches0
failA hash differs, a file is missing or a column differs1
unreadableThe file is not a bundle, its format version is too new, a path is unsafe, or the disk is full2
incompleteThe bundle withholds a file, or a check could not run3

fail wins over incomplete. A failing row names the file, or the Run, the variable and the time of the cell. The first Ctrl-C on the command line stops the check and gives unreadable with the reason “cancelled”. A second Ctrl-C exits with 130.

A bundle is incomplete in these cases:

  • A withheld file is one that the re-run needs.
  • The section holds Scripts and you did not agree to run them.
  • A stochastic Experimenter engine Run has no recorded seed. Or it has a drawn seed that verify cannot set again.
  • The recorded engine is Stella and the machine has no Stella. The result reads “hash check only, Stella not found on this machine”.

Stella bundles

A Stella re-run opens Stella once for each Run. Free the machine for the expected time and do not use it. A dialog from Stella stops the run until you close it. A watchdog ends a Run that hangs.

See also