Skip to content

Test Environment Policy

Purpose and scope

This policy says what a test is in SIMPLE, where each test goes, how to write one, and what runs when. It applies to every Fortran test in the repository and to everyone who adds, changes or removes one.

The refactoring itself is documented in doc/refactoring_notes/completed/uniform_test_environment_refactoring.md (the plan and its batch records, section 9.7). Every test that existed before it is listed, with its review verdict, in doc/refactoring_notes/completed/test_review_record.md; the full inventory, doc/code_overview/test_inventory.md, is generated from the sources and that record on every build and is not committed. This policy is the short version for day-to-day work; when the two disagree, fix the one that is wrong.

1. The environment

SIMPLE has one test executable, simple_test_exec, built by every compile_*.sh unless it is given --exclude-tests (CMake option BUILD_TESTS, default ON). Every test is a procedure inside the library, not a program of its own, and every test is reached through simple_test_exec test=<name>. simple_test_exec test=list lists what exists.

Tests are grouped into suites, and a suite is what CTest registers: one CTest entry per suite, never one per test. The entries fall into two tiers and four labels.

label entries when what
fast 15 area suites unit_<area> every compile_*.sh build (unless --exclude-tests), before installation unit tests of the library: hermetic, in-process, one thread, seconds
library 5 library suites lib_<area> and the PCG entries pcg_recon and pcg_frac_update nightly longer numerical tests on generated data: realistic sizes, minutes
highlevel 23 high-level gates explicit CTest command only long simulated pipelines and commander integrations, including independent molecular and nanoparticle suites
platform forked_process (with the test dispatcher's own tests), gtk (a GTK window, skipped without a display), plus coarrays, openmp_offload when CMake finds the capability by hand, nightly where the machine has the capability, and coarrays during compile_coarrays.sh tests that need child processes, a launcher, a device or a display; coarrays is the capability-gated two-image synchronization suite

The fast tier is the build-time gate. Library and supported platform tests may run overnight; high-level tests run only when explicitly selected with CTest.

The fast gate is part of the build. Every compile_*.sh build runs scripts/run_fast_gate.sh between make and make install. It first runs scripts/check_test_registry.py, scripts/check_descr.py, scripts/check_flex_dag.py, scripts/check_guide_imports.py, scripts/check_cli_chain.py and scripts/check_submodule_linkage.py (section 4.5), then ctest -L fast with half the cores rounded up, then scripts/ctest_budget.py, which fails the build when an entry fails and only warns when the gate takes more than 60 s of real time (scripts/run_fast_gate.sh, scripts/ctest_budget.py). A budget warning allows installation to continue. A failed gate installs nothing. The per-entry timings are kept in build/test_runs/ctest_fast.log.timing.txt. The gate also lists, as a warning that never fails it, the source files under src/ and production/ that git does not track: the library globs its sources, so such a file builds locally and is missing from a commit of the tree (the nightly build broke twice that way, on 2026-10-28 and 2026-10-31). Tests are on by default in every compile script; --exclude-tests (BUILD_TESTS=OFF) builds the library and executables only and skips the gate, for when only the executables are needed.

Each fast suite has a 600 s CTest deadline to allow slower or shared hosts to finish. This is separate from the warning-only 60 s total budget. CTest's explicit per-test TIMEOUT takes precedence over ctest --timeout, so the registration and gate script must agree. A suite that reaches its deadline still fails the gate.

Fast suites use OMP_WAIT_POLICY=PASSIVE so idle OpenMP workers sleep instead of consuming a shared host's CPU quota. Thread-consistency checks can request larger teams than the default OMP_NUM_THREADS=1; active waiting in those teams can starve the other suites on CPU-limited login nodes.

The fast-suite environment also sets OMP_THREAD_LIMIT=4, which bounds actual teams even when a tester calls omp_set_num_threads(omp_get_num_procs()). The BLAS needs no limit of its own: SIMPLE's OpenBLAS threads a serial-region product on the OpenMP threads and stays on the calling thread inside a team. Thread-consistency checks still run with multiple workers. Full-machine thread stress can be run directly through simple_test_exec without these CTest limits.

compile_coarrays.sh runs the same fast gate as the other build scripts and then runs the capability-gated two-image synchronization suite before installation. A failure in either gate prevents installation. The coarray suite is registered only when USE_COARRAYS=ON and an OpenCoarrays launcher is found. It can also be rerun explicitly after a coarray build with cd build && ctest -R '^coarrays$' --no-tests=error --output-on-failure.

The process budget. The number of CTest entries is fixed in SIMPLE_CTEST_BUDGET (production/CMakeLists.txt, currently 47: 15 fast, 7 library, 23 highlevel and 2 platform) and configuration fails when it does not match. A CTest entry is an isolation unit, not a place for one more check: checks are added inside existing suites. A new entry needs a stated reason and the owner's agreement, and is recorded in the plan.

Every entry runs in its own directory build/test_runs/<entry>, with its own TIMEOUT and an explicit OMP_NUM_THREADS (1 for the fast tier), and simple_test_exec fixes the seed of its process (below). Each suite writes a report, SIMPLE_TEST_<suite>_<date>/simple_test_<suite>_report.txt, with every check, every failure by name and the time of each sub-suite.

1.1 The fast area suites

Each area suite runs its sub-suites in one process. One sub-suite is one tester module (section 4.1).

suite sub-suites
unit_core ANSI formatting, string, syslib, fileio, EPU XML (the beam shift of EPU metadata), stack I/O, class sample I/O, character hash, hash, value-reference hash, linked list, record list, command line, parameters
unit_ori orientation, orientation collection, symmetry, Euler shift
unit_image image, mrc2jpeg, mrc validate, image header, Fourier iterator, B-spline smoother, masks, nano mask, volume shape, binary image, segmentation, trailing-reconstruction blend, CTF, image serialisation, reference picking correlation (the reference picker's batched correlation against a brute force, a team of three against one thread)
unit_numerics online variance, random draws, affinity propagation, hierarchical clustering, k-means, k-center, Gaussian mixture, extreme deconvolution, statistics, linear algebra, Kaiser-Bessel kernel, search, sort, locate, decay schedules, cavg quality relations, cavg quality selection, cavg quality nano, quality logistic, optimisers, nonlinear conjugate gradient (the engine of reconstruct3D_wave on analytic objectives), low-pass stages, dose series, dose curve, shift search, truth metrics (state matching, adjusted Rand index, the null accuracy, map matching, discrimination, the frame, hand and point-group conventions of poses), class student alignment (the class student's alignment after prediction: a planted rotation and shift beyond the window recovered over the disk, the planted class kept from any place in the list, a team of four as one thread)
unit_project STAR file, STAR project, STAR stream export, binoris, project records, project merge, class compatibility, particle sieve, micrograph import, micrograph selection, micrograph subset, particle subset, optics groups, optics maps, solve3D manifest, project superset, solve3D addon report, solve3D chunks plan, state weight set, cavgs work project, eo partition
unit_motion motion gain, motion model, particle extractor, fraction dose metadata
unit_ui UI JSON, GUI metadata, GUI assembler, UI hash, UI visibility
unit_ipc IPC TCP socket, HTTP POST, persistent worker message, persistent worker server, stream pipe (localhost only)
unit_reconstruction rec3D backend, observation noise, class-average carry-over, class-average in-plane entries (the weighted accumulation of one particle plane at several in-plane angles), trailing chain identity, refine3D provenance, dose series manifest, frozen accumulator, weighted insertion, volume pair metrics, FSC phase repeatability, nonuniform filtering, half-map enhancement, order mask, solve3D_cavgs stage rules, state assignment rules, atomic prior, PCG lattice (the gather and scatter of planes on the Ewald paraboloid and of a particle's spectrum cube), wave field, wave imaging, wave multislice, wave projector (the wave operators of reconstruct3D_wave and simulate_scattering: adjoint and finite-difference checks, the weak-phase identity, the curvature's sign and size, specter's golden images, thread identity at 1, 11, 16 and 24 threads; doc/policies/3D/wave_model_policy.md), wave simulation (the wave mode of simulate_particles: its weak-signal limit against the Fourier-projection particle, the second order, per-particle B-factors, the detector's noise statistics)
unit_pftc_align2D3D polar correlation, polar shift map, polar shift map kernel, continuous in-plane, refine3D in-plane state, 2D probability table, 3D probability table, matcher memory, sigma2 state, sigma2 bootstrap, cavg registration, cavgs state match, solve2D stage rules
unit_cart_align3D local startup, local staging, startup state, Cartesian Fourier, cart calculator, pose optimizer, pose strategy, pose statistics
unit_heterogeneity flex PCA, flex PCG operator, flex cls_expansion, flex cls_expansion kernel
unit_parallel qsys control, qsys environment, test tools (the profile statistics, packing, identity rules and the registry of the suite runner)
unit_single atoms, cif2mrc, C-alpha finder, species, density (the atomic density fitting primitives of detect_atoms: kernels, the transfer's kernel table against the closed-form notch, rendering, per-atom fit, profile regression, noise and atom-set lifecycle), tracking denoise (rectangular Fourier preservation, noise reduction and temporal-window bounds)
unit_stream preprocessing, optics assignment, initial analysis, reference picking, particle sieving, pool 2D, pool 2D object, solve 3D (the steps of the stream stages, without a queue or waits), stream master, job sets, meta plots, stream watcher

simple_test_exec test=units runs all fifteen in one process. It is a convenience and deliberately not a CTest entry.

1.2 Long-running CTest entries

entry label what it runs
lib_reconstruction library PCG half-set: independent half-set PCG solves against gridding; PCG sparse sampling: an atomic phantom from a tilt series, a preferred orientation and a dense control, PCG at two iterations against gridding; addon report docking: the solve3D_addon report docks a map rotated by 90 degrees and recovers the rotation; truth map docking: a map docked in both hands onto a truth made from its mirror, and every particle's pose and shift carried into the truth's frame; postprocess_pdb (PDB-masked sharpening): identical and opposite half-maps give FSC +1 and -1 and retain or suppress the output accordingly; fractional reconstruction; symmetry trailing handoff: a turned C2 map forces a pose-frame change, the full symmetric reconstruction replaces the old chain, and the next fractional map matches a clean restart in the transformed frame, while the surviving old-frame chain (the negative control) gives another map; a next stage that does not trail leaves no chain; fraction dose export: reconstructions of motion-model frame fractions written to a dose-series manifest, refused for a missing dose or changed state membership; dose filter3D: dose_filter3D on a reconstructed fraction dose series; wave reconstruction: a phantom imaged by multislice at 100 kV and reconstructed by reconstruct3D_wave with Rytov, which must beat its flat start and the opposite curvature sign against the truth beyond the curvature limit (about five minutes); volume programs: symaxis_search aligns a turned D2 phantom to a map invariant under D2, dock_volpair docks a turned and shifted copy back, centervol brings a displaced phantom's centre of mass back within a voxel (each with the unmoved input as its control)
lib_cart_align3D library pose 1JYX recovery: 1 000 simulated 1JYX particles perturbed by 10 degrees and 2 pixels (inside the 15° rotation bound), refined by the Cartesian 3D strategy (strategy3D_cont) under objfun=cc and euclid at 8 and 4 A, gated on the ground-truth orientations
lib_heterogeneity library flex PCA two-state phantom, flex PCA deconvolution 20k (20 000 particles), flex PCG operator 64 (the PCG operator at box 64), flex PCG solve sweep
lib_single library pdb2mrc coverage of the built-in molecular models; density particles (the full fit of rendered nanoparticles with known and measured transfer, uniform and varying widths, noise, profile recovery and repeat/thread identity); prep4tracking (batched tracking images, metadata and original-input preservation)
lib_stream library optics assignment, picking references, pick and extract, and solve 3D reference docking
stream_chains highlevel worker-backed sieve-to-3D and p01-p07 movie-to-3D chains; both compare recovered state maps with planted two-state truth, and the movie route covers initial analysis
pcg_recon library gated stages of the PCG reconstruction operator on generated data, each stage's decision a row of its table; in process, so a library entry (it was a high-level one until 2026-10-18)
pcg_frac_update library the PCG fractional-update gates (additivity of the reconstruction sums, the continuation weighting, full-mass preservation, replay) on a project of 600 blob particles at their true poses that the multi-state fixture builds
mini_stream_6vxx, mini_stream_1jxy highlevel independent embedded-model mini-stream validations
simulated_workflow_6vxx highlevel simulated particles in movies (160 particles in 16 movies from 100 reprojections at SNR 1.0) through import, motion correction, CTF, picking, extraction, solve2D, solve3D, converting only its own embedded atomic model; it exercises the C1-to-C3 symmetry-axis route. The truth correlation, FSC=0.143 resolution, median pair-pose error and pair fraction within 5 degrees are correctness gates. It reseeds the whole workflow with the root seed 20260923, printed in the log. simulated_workflow_1jxy (beta-galactosidase, D2, with a second solve3D over two worker processes) was removed on 2026-11-17: its pose recovery split in two groups in about a third of seeds; no registered entry runs solve3D distributed since then
single_workflow_fcc, single_workflow_alloy, single_workflow_wurtzite highlevel independent SINGLE pipelines on simulated FCC Pt, random-site FCC Pt/Ni and wurtzite CdSe nanoparticles (fcc through trajectory_solve3D, whose gates may lose at most 5% of the frames, alloy and wurtzite by hand with the atomicity-prior refinement); the poses are judged by their median rotation error against the truth after one docking of the autorefine3D_nano map, up to the rotations of the lattice's group (O for FCC and the alloy, D6 for wurtzite), since these near-symmetric particles are posed only up to them
simulate_particles highlevel reproject and simulate_particles on the embedded 6VXX volume; simulate_particles with three blob volumes and given populations (exact state counts, every image closest to the projection of its own state's volume at its true pose); 50 images without CTF, each correlating better with the reprojection at its own recorded pose than with one at another image's pose
state_fixture highlevel the multi-state test fixture (simple_test_state_fixture): blob phantoms in its search, known-pose and exact-view modes (built twice, the second from the cache) and the compositional and conformational beta-galactosidase states, each truth holding its declared point group and no larger one (its correlation over the group at least 0.99 and at least 0.01 above its correlation over the next larger group)
multistate_assignment highlevel one deterministic refine3D refine=prob_neigh prob_neigh_mode=geom objfun=euclid block on three compositional beta-galactosidase states at planted poses and labels, from fixed references reconstructed once from those assignments; strict state labels and 50/30/20 populations, one map per state, the sigma-to-prob-neigh path, pose preservation, copied-map controls, and exact shared/two-worker assignment agreement are gates
solve3D_addon highlevel solve3D on a seeded selection of a first set of simulated particles of a symmetry-broken 6VXX map (a 2000-row frozen project), then solve3D_addon on a 3000-row current project that appends a second set, checked against the simulation truth (poses, map) and the base run; its own entry by owner decision (2026-09-26)
cont_refine3D_1jxy highlevel continuous Cartesian pose refinement on 1 000 simulated 1JYX particles from perturbed poses: refine3D refine=cont (euclid, cc, distributed), refine3D_local, the follow-up pose_cont=yes in refine3D and refine3D_auto, and the continuation of a polar refine3D_auto, gated on the ground-truth orientations; the positive NU-bundle handoff case also runs alone with suite=nu_handoff, checking staged constituents, first matching LP and source preservation
pose_student highlevel the pose student's split-half protocol in miniature on 2 000 blob-phantom particles of the multi-state fixture with their truth poses: learn_pose_student on the training half against the truth map, predict_poses on the blank test half, refine3D refine=prob_neigh prob_neigh_mode=geom from the students' cones and the coarse cells, the half reconstructed; the route's and the fold's contracts and the fallback's identity to a search without student records are the gates, the reads against the truth are reported (ruling R3 of the pose student plan: no floor from a student that seeds nobody)
class_student highlevel validate_class_student on 2 000 beta-galactosidase particles of the multi-state fixture with planted shifts: a solve2D teacher on 1 000, the class student trained on its class averages, the unseen 1 000 predicted at their picked positions (no centring) and aligned to the teacher's averages of their candidate lists over the disk, and assigned by one full search against the teacher's averages; the model reading back with the teacher's classes, a prediction on every unseen particle and none on a training particle, the student's agreement with the full search above chance, and the distributed prediction (two parts) equal to shared memory byte for byte are the gates; the validation report's reads and diagnostics are reported
particle_sieving_2_mini highlevel particle_sieving_2 in miniature on the class_student entry's 2 000 beta-galactosidase particles cut into 20 stacks, a micrograph each and no halves: a seed solve2D of five stacks ended by its particle cap, the class-average CNN fixture's labels at a frozen threshold, the class student for the rest in batches of 300, a greedy refine2D round every two batches held at 10 A, the student retrained after round 1; the batch and round counts, the rounds' low-pass limits, agreement shares and class-average change, the freeze (frozen after one round in the miniature, the last round restoring, each frozen round's diagnostic averages), the one labelling on the frozen references, the student's table by class, both halves in every batch, the training folders, a valid sigma2 record for every particle and the accepted set against the last labels are the gates, the accepted particles and junk classes per round are reported; the run directory is kept for test=identity (the selection is not judged)
center_ptcls highlevel center_ptcls on 2 000 beta-galactosidase particles of the multi-state fixture whose project holds no shift, the simulator having planted shifts within 6 px: every particle carries the same shift and state of centring in both fields (a width, or the sentinel when the pass left it unmoved), no other parameter changed, every shift within the disk, the centring better than the planted error are the gates; the residual against the planted shifts is reported
single_atoms_stats highlevel simulated Pt nanoparticle atom detection (detect_atoms, species-free), the products of the atomic density model (_FIT, _RES, _atoms.csv, _model.txt, occupancy and width in _ATMS.pdb, the contact-score ceiling derived from the data, reported) and statistics (atoms_stats with the element)
single_atoms_stats_cdsew, single_atoms_stats_cdsez, single_atoms_stats_cdser highlevel the same test on simulated wurtzite, zincblende and rocksalt CdSe nanoparticles (element=CdSeW, CdSeZ, CdSeR), whose lattice lookups use the compound selector; also asserts the coordination number of the interior atoms (4, 4, 6) and the fitted lattice constant within 2% of the table
species_discovery highlevel the pair detect_atoms, then detect_atomic_species on its atoms (with a species list, with the class count free, with and without half maps) on simulated Pt, Pt/Ni and Pt/Al particles rendered with the five-Gaussian element kernels and surface B factors, judged against the generating models through test_gate (metrics.tsv): the weak atoms the residual recovery adds (read from _atoms.csv) and the class call (_species files, with each atom's posterior standard error and coordination spread); the species call must leave the products of detect_atoms unchanged, and on a particle of one species the weak atoms stay within the recovery's expected false count. Two cases run the atomic density model of detect_atoms (no element) on the Pt lattice rendered by the model with known profiles, transfer and noise at the real maps' level, against the floors of its unit tests
stream_preproc highlevel five simulated movies through the stream's preprocessing stage and its worker jobs
flex_pca_blobs highlevel flex_pca on a two-state blob dataset of the multi-state fixture (2 000 particles at their true poses, SNR 1) in shared memory and with two local workers, checked against the truth and against each other; refine3D_auto state=X on the truth-matched states, with the frozen weights and with the hard labels; the state sweep (refine3D_auto without state= on the same project, hard and weighted: every state refined in its own directory, a child's map against the direct run of its state and mode, the merged parent's labels, map and FSC entries and weight set, a relative input file resolved in every child) and its chain (refine3D_local without state= on each merged parent: the rebound reference records valid for the merged parent, the masks of states 2 and up translated with their bytes, every state refined, each local map against the auto sweep's); cls_expansion and refine3D_states_cavgs on the fixture's three compositional beta-galactosidase states (3 600 particles in 60 exact views; ruling of 2026-10-18: not blob states that differ in a lobe of 6 % of the mass): the route's contract gated (projects, hand-back, maps), its state accuracy against the planted states (one-to-one mapping, with the shuffled-label null), the number of planted states its maps match and the poses of the sub-averages reported as a robustness profile, since its profile admits no floor (accuracy at the chance level)

1.3 Programs that are not registered

A few programs are reachable through simple_test_exec but are not CTest entries: rec3D_backends (gridding against PCG on a user's project; a measurement without thresholds, a developer tool in the sense of section 3.4), cont_refine3D_bench (the refine=cont benchmark on simulated 1JYX particles: timings, work counts and pose errors, no thresholds; owner decision 2026-10-19, doc/implementation_notes/completed/cont_lm_acceleration.md), polar_matching_bench (on synthetic polar data at production sizes: the layouts of the dense probability table's euclid scoring, production's cc scoring, and with suite=shiftmap the dense fill's screen and window shift maps; timings and identity checks, including a dump of the production kernels' distance vectors for comparing builds, no thresholds; for suite=block_prod and suite=shiftmap, fftw_plans=measure|estimate selects the fixed-seed FFTW planner, defaulting to measure, production's planner; estimate gives reproducible output and is the one that writes the shift maps' identity files for comparing builds; measured planning uses no wisdom file and is reported separately from the timed loops; doc/implementation_notes/completed/polar_matching_layout_bench.md), pcg_precond_bench (the PCG preconditioner's comparison: per synthetic system, or per set of raw accumulators a reconstruction wrote, the solves of 2 and 5 iterations from zero through the production calls, never longer since the PCG overfits from about ten, their seconds, the engine's and the true relative residuals, the distance to a synthetic system's truth and one preconditioner application's seconds, the iterates written for comparing builds at the same iteration count (suite=compare) and the half pairs' FSC; no thresholds; doc/implementation_notes/planned/float32_kernels_and_pcg_precond.md, decision 9), pose_student_bench (the pose student's HHCNN kernels on synthetic tensors: the forward and backward passes, the training step at one thread and at the team, the prediction throughput and the step's thread identity, the kernels' arithmetic rates from operation counts of their shapes, the step's chunks against the team and the blocks' other kernels at one thread, no thresholds; doc/algorithms/pose_student.md), rec_insert_bench (the gridding reconstructor's plane insertion on synthetic planes: five orientation fixtures, boxes 96, 160 and 256 and point groups c1, c4 and d2 unless one is given, 500 planes, at the team nthr= that the caller pins with taskset; three arms alternating in one process (the per-plane loop, the batch insertion with its slab count and axis, the batch insertion once per plane), per arm the median, minimum and maximum seconds of the batch and the words of the numerator and of the density that differ from the per-plane loop at one thread, no thresholds; doc/implementation_notes/planned/batch_threaded_plane_insertion.md), and the input generators solve3D_addon_snapshots, write_state_weights_labels and write_state_weights_mixed (tools for manual runs). pcg_frac_update, which needed a user's project, builds its own from the multi-state test fixture when run without projfile= and is the library entry of that name. No new program joins this list without a reason: a diagnostic that runs on a user's data is a developer program (section 3.4), not a test.

For any suite-based entry, print its accepted sub-suite identifiers without running tests using simple_test_exec test=<entry> suite=list; for example, simple_test_exec test=unit_image suite=list.

1.4 Running tests

./compile_debug.sh                                      # build, run the fast gate, install
./recompile.sh                                          # the same in the existing build, only what changed
simple_test_exec test=list                              # every test program
simple_test_exec test=unit_image                        # one area suite
simple_test_exec test=unit_image suite=masks            # one sub-suite of it
SIMPLE_UNIT_ORDER=reverse simple_test_exec test=units   # the sub-suites in reverse order
cd build && ctest -L fast --output-on-failure           # the gate by hand
cd build && ctest -L library                            # a nightly tier by hand
cd build && ctest -L highlevel --output-on-failure      # long tests, explicit only
./run_tests.sh [fast|library|highlevel|platform|all|list|<entry>]   # the same from an existing build
simple_test_exec test=simulated_workflow suite=6vxx seed_offset=3   # the same test on other draws
simple_test_exec test=nightly                           # the whole high-level suite (section 1.5)

./run_tests.sh reruns tests from an existing build without configuring or compiling; it runs the fast gate when given no mode, and takes --build-dir <dir>. make check in the build directory runs the same fast gate as the compile scripts. The day-to-day loop in an existing build/ is ./recompile.sh: make -C build -j<n>, scripts/run_fast_gate.sh build, then make -C build -j<n> install, with cmake rerun first when a source file under src/ was added or removed (the library globs its sources at configure time); --no-gate leaves out the gate. The compile scripts run that sequence from a fresh directory. simple_test_exec parses its command line against the generated argument vocabulary, so a key that only the front door reads (seed_offset, target, nseeds, dir1, dir2, keep_outputs) is also listed in scripts/simple_args_generator.pl; a new such key not listed there is rejected by the parser.

The suite= selector is the sub-suite name in lower case, with blanks and hyphens written as underscores and commas and slashes dropped (stack I/O is stack_io, search, sort, locate is search_sort_locate). The selectors of each suite are listed in the description of its suite= input in the test UI (src/main/ui/simple_test/simple_test_ui_class.f90). A run by hand draws what a CTest run draws: simple_test_exec sets SIMPLE_SEED=20260923 for its own process first (fix_test_seed), whatever the environment holds. The seed is not a user setting yet: production programs read SIMPLE_SEED from the environment, and a seed key of parameters is planned (doc/refactoring_notes/planned/rnd_seed_parameter.md).

seed_offset=<n> moves every fixed seed of the test by n times a large odd stride (2654435761, in 64-bit integers), so that the offsets of one test cannot land on another test's base. It moves the process seed of fix_test_seed and every set_fixed_seed of a tester or high-level test (and so the SIMPLE_SEED its commanders and workers inherit). 0, the default, draws what CTest draws. It is a key of the front door only: it is read there and removed from the command line, so no commander or parameters sees it. A test must draw from fixed seeds only through these two routines, or its draws do not move with the offset. Production code that seeds itself with a fixed number (the class-expansion strategy and kernel of flex_pca) does not move with it.

SIMPLE_UNIT_ORDER=reverse is a diagnostic for the fused, in-process suites: it reverses the sub-suite table so a result that differs from the normal run exposes state leaked by one sub-suite into another. It does not reverse CTest entries and is not part of the normal build gate; use it after changing shared state, lifecycle or test-runner code.

1.5 The suite runner: the registry, test=nightly, test=profile, test=identity

The high-level entries are listed once, in the test registry (src/main/commanders/test/simple_test_registry.f90): per entry its command line, its OMP_NUM_THREADS, the worker processes and threads it starts, its peak CPU reservation (the cores in use at its busiest moment, master and workers together), its deadline (the CTest TIMEOUT), its kind (a correctness gate or a robustness profile only), its peak resident memory and the disk its run directory grows to (each from a measurement, with a margin), whether its master's threads follow a profile's thread count, and the outputs an identity check compares: declared for the one-thread workflows and for every entry that runs no solve3D or refine3D (a refactoring run compares the entries that run them at one thread and at eight, each thread count against itself on the two builds; the keyed draws of the probabilistic routes make the drawn entries the same at every thread count, the preparations' and accumulators' floating-point order does not, so identity is never decided between thread counts). scripts/check_test_registry.py holds the highlevel registrations of production/CMakeLists.txt to the registry: the same names, command lines, timeouts and thread counts, and a CTest PROCESSORS equal to the CPU reservation, so that ctest -L highlevel -j 24 packs the entries as test=nightly does. A new high-level entry gets its registry row and its CTest registration together.

Three test programs run and compare the suite; none of them is a CTest entry. They run every test execution as a child process of the test dispatcher (simple_test_dispatch), which:

  • forks the child (simple_forked_process), which leads its own session, enters its own run directory, writes its output to run.log there, sets its OMP_NUM_THREADS and seed offset and runs the test program in the process;
  • gives every child the environment CTest gives an entry: SIMPLE_PATH the build the running simple_test_exec belongs to, its bin/ and scripts/ first on PATH, SIMPLE_QSYS=local, so that the child and the workers it starts run the same build;
  • starts the largest reservation queued (the first in queue order among equals) when its cores, memory and disk fit in what is free: the cores of the budget (ncunits=, by default the processors of the machine) less those of the running executions, 90 % of the memory available when the run starts less the running executions' memory, the disk free on the run's file system when it starts less the disk of every execution started (outputs stay). Smaller executions wait for every larger one to start, so they cannot starve it; one that does not fit even alone runs alone;
  • removes a metrics.tsv left in a reused run directory before the child starts, so a table is always the execution's own;
  • records a failed child with its exit status and goes on; sends a child past its deadline SIGTERM and, after a grace period (60 s), SIGKILL, and records it as timed out; kills every process left of a child when it ends, the child's process group before the child is reaped (so that its pid and group cannot belong to another process yet). The processes of a child are its session and every process that inherited its marker SIMPLE_TEST_EXECUTION from the environment, since the local queue starts workers in sessions of their own. A child ends at once on SIGTERM (_exit, async-signal-safe); its gate rows and log lines are flushed as they are written, so its table holds every row written before the signal;
  • samples the CPU use and resident memory of each child's processes every second and reports the peak;
  • when interrupted (SIGINT, SIGTERM, SIGHUP), stops every running child, records it as interrupted (an outcome without a verdict, outside the failure rates), starts no other and reports the rest as not run. A disposition the dispatcher inherited as ignored (nohup, a background job) stays ignored. A child dies with a dispatcher killed outright (SIGKILL); the workers of such a child may then outlive it.
  • Linux only: the markers of processes outside a session, the CPU and memory samples and the count of processes left read /proc, and the exit of a child is detected without reaping it by waitid with WNOWAIT. Elsewhere the dispatcher says so when it starts, signals the session alone and kills after reaping; the dispatcher's own tests skip the probes that need /proc.
  • Known limits. Largest-first packing starts the long one-thread workflows (simulated_workflow_*, reservations of 2 and 3) after every larger reservation, so on 24 cores they set the nightly's wall time (about an hour on 2026-10-18 against 45 minutes of CTest packing); ordering by expected core-seconds would start them early. The disk budget counts every started execution's disk, since outputs stay; a profile that deletes the outputs of passed executions as they end therefore runs one execution at a time once the budget is spent.
simple_test_exec test=nightly [ncunits=24] [dir=<run>]
simple_test_exec test=profile target=<entry[,entry...]|all> nseeds=20 [nthr=1,8] [suite=<sub-suite>] [ncunits=24] [dir=<profile>]
simple_test_exec test=profile dir1=<profile> dir2=<profile>
simple_test_exec test=identity target=<entry> dir1=<run directory> dir2=<run directory>
  • test=nightly runs every correctness entry of the registry once, each in <run>/<entry>, and writes nightly_report.tsv: one row per entry and gate metric with the outcome (passed, failed, timed out), the exit status, the wall time, the peak CPU use beside the reservation, the peak memory, and the metric's value, floor, verdict and sense. It fails when an entry or a gate failed. It runs at the entries' CTest thread counts and seed offset 0, so an entry run by it draws what CTest draws.
  • test=profile runs one entry, a comma-separated list of them or all at seed offsets 0 to nseeds-1 and each thread count of nthr= (by default the entry's own), each execution in <profile>/<entry>_t<threads>_s<offset>, and writes executions.tsv (as the nightly report) and per entry and thread count profile_<entry>_t<n>.tsv: for every gate metric the runs that wrote it, the median, the robust spread s (1.4826 times the median absolute deviation, or the range over 4 when that is zero), the range, the worst run in the sense of its floor, and the failure rate: an execution fails a metric when one of its rows of it fails, when it wrote none, or when the execution itself failed or timed out (even after writing passing rows); interrupted and unstarted executions are left out. nseeds= is 20 when not given. suite= names one entry's sub-suite, so it needs a single target=. A thread count other than the entry's own scales the nthr= the entry passes to its commanders and, below the entry's own, its deadline (inversely); the reservation follows the master's share (the reservation less its workers' threads) and each worker's threads in proportion, while an entry whose threads are its own (the one-thread workflows, the mini stream, the stream preprocessing) keeps its reservation; memory and disk do not scale. Seed offsets move every base seed of the test by offset times a large odd stride (2654435761, in 64-bit integers), so the offsets of one test cannot land on another test's base. A profile informs; it does not fail on a metric, with one exception: a success metric (sense success, below) counts the executions that succeeded (the column successes), and the profile fails when that count is below its floor times the executions. keep_outputs=no deletes the subdirectories of the run directory of each passed execution (its outputs) as soon as it ends, keeping run.log and metrics.tsv, and returns its disk to the budget, so that a long profile counts only the running executions' disk; the outputs of a failed or timed out execution stay. With dir1= and dir2= it compares two profiles instead: for each table both hold, comparison_profile_<entry>_t<n>.tsv gives both medians, the shift of the median in units of the larger spread (positive is better) and both failure rates.
  • test=identity compares two run directories of one entry byte for byte over the outputs its registry row declares, and writes identity_report.txt (SAME, DIFF or MISSING per file). It ignores only the declared run-specific fields, which hold the run's paths, run identifier or time:
  • in solve3D_manifest.txt, the lines run_id, layout_digest and stack_digest (digests of the absolute stack paths), checksum (of the whole manifest), and the path that ends each artifact line;
  • in sigma2_state.bin, the layout digest (header word 14, bytes 121-128);
  • project files (*.simple) are compared record by record over every segment, and text files (*.txt) line by line, each with its run directory's own path removed, since both hold absolute paths; in a project, projinfo's solve3D_run_id (the manifest's run_id) is left out. A declared pattern that selects no file in either directory fails. The BENCH timing files are not declared outputs. Identity is decided at a fixed thread count on both builds (one thread; eight where a refactoring run checks it), never between thread counts. An entry that works in a directory named by its process id (test_<name>_<pid>: the mini stream, simulate_particles, the atom statistics, the stream preprocessing) declares its outputs relative to that directory, and dir1= and dir2= name it; state_fixture and species_discovery keep no files, so their gate table (metrics.tsv) is what they declare.

2. What a test is

A test states something the code guarantees and fails when that guarantee is broken. If it cannot fail, it is not a test, whatever it is called and wherever it lives.

2.1 A test

  • Makes assertions whose failure reaches the exit status. Checks go through simple_test_utils (section 5.1), one assertion per guarantee, with a message that states the guarantee ("an integer shift is the circular shift out(x) = in(x + s)", not "shift test 3").
  • Derives the expected value independently of the code under test: a closed form, a brute-force computation in the test, an exact array operation, or an emulation of the algorithm (for example in numpy) whose numbers are written into the test with a comment naming how they were obtained. Running the routine once and pasting its output into the test pins the bug along with the behaviour.
  • Names its tolerances and derives them from the arithmetic: single precision, an interpolation order, a statistical standard error. A tolerance that was widened until the test passed is a finding, not a tolerance.
  • Pins what the routine guarantees, not what it happened to produce: not the outcome of a random start, an unconverged iteration or a timing.
  • Includes a negative control where one is cheap: an unrelated image does not correlate, a constant sample has no foreground, an atom's density does not correlate with a window beside it.
  • Pins conventions. Sign, handedness, origin and index conventions are where SIMPLE's code breaks silently. When a test finds out which convention a routine follows, it asserts that convention.
  • Is reproducible: every draw it makes comes from a fixed seed.

The review of September 2026 wrote tests to this standard for most of the library, and they found and fixed more than twenty-five production defects, none of which the programs they replaced could have caught. Examples of the standard are the graphene-mask test (the excluded shells found by a brute-force search in the test), the rotate_ref_8 test (the explicit rotation of calc_frc must peak where the FFT path of gen_objfun_vals does, for probes that exercise every branch) and the atom_validate test (an atom must correlate with its own simulated density; a numpy emulation put the expected value at 0.99 and the defect at 0.4).

2.2 Not a test

  • A program that only runs. It prints numbers, writes files or reports "completed". Of the 130 test identities that existed before the refactoring, 63 could not fail.
  • A wrapper of commanders. A routine that calls new_project, import_movies and preprocess in sequence is a high-level workflow. It belongs with the production programs, with developer visibility, or in a local worktree (section 3.4). It becomes a workflow gate (section 6) only when it runs on simulated data and compares its result with the model the data was simulated from, against declared floors.
  • A benchmark or a timing loop. Timings are not assertions; a benchmark is a developer program or stays in a local worktree.
  • A conversion or utility invocation that only produces output: a program. The underlying conversion can be a unit test when it generates its own input and quantitatively verifies the output.
  • An experiment on downloaded or user data: a local worktree, or a developer program if the team needs it again.
  • A demonstration (sampling pictures, gnuplot windows, printed tables to eyeball): delete it or keep it in a local worktree.

2.3 Four kinds of test, kept apart

A run of SIMPLE with more than one thread is reproducible run to run where its draws are keyed (the probabilistic routes since 2026-11-04) and not where a classic stage's draws depend on the thread that meets a particle; between thread counts it is not byte-reproducible (the preparations' and the accumulators' floating-point order), and a workflow on simulated data is a draw: its metric scatters from seed to seed. A test that mixes "is it right" with "how reliably" cannot say which of the two failed. So there are four kinds of test, and each answers one question:

kind question how it is run how it passes
identity did a refactoring change any result? a fixed thread count (one, and eight where the run checks it), fixed seed, the same case on two builds (test=identity) the declared outputs byte-identical, run-specific fields excluded by a declared list
correctness does the code recover the truth it was given? one run on simulated data with a large, known signal (CTest, test=nightly) truth metrics against floors that sit far from both the observed distribution and the negative control
robustness how reliably, and how well, across draws? the same case over many seeds and thread settings (test=profile) a distribution (median, spread, worst, failure rate) recorded and compared over time; never a single-run gate
performance how fast? benchmark reports timings, never in a pass/fail test

Consequences:

  • A correctness gate is insensitive to the draw. Its case is built so that the right algorithm passes on every seed and thread count by a wide margin, and its floors come from a robustness profile by the floor rule (section 6.2). If no floor is admissible, the case is not a correctness gate: its metric is reported as a robustness profile, or its signal is raised until it can be a gate.
  • Identity is the only test of a refactoring that claims identical results. It compares a thread count with itself on the two builds, never one thread count with another.
  • Robustness profiles inform decisions; they do not stop work. A change meant to change results is judged by comparing profiles before and after, on cases with known truth.
  • Multi-state correctness is judged only against known labels on simulated data. Real data without labels shows stability, never correctness (section 6.6).

3. Where a test goes

3.1 The decision

Answer these in order.

  1. Does it assert something (section 2.1)? If not, it does not go in the test environment at all; see section 3.4.
  2. Which area does it test? A test goes to the area of the code it tests, not the area of its author or of the workflow that uses the code. The areas are named after the machinery and kept short: core, ori, image, numerics, project, motion, ui, ipc, reconstruction, pftc_align2D3D (everything on the polar Fourier transform, 2D and 3D), cart_align3D (Cartesian continuous registration), heterogeneity, parallel, single, and stream for the stream stages.
  3. Which tier? The first that fits:
  4. fast (unit_<area>) when it meets all of the admission rules of section 3.2. This is the default: most tests of the library belong here.
  5. library (lib_<area>) when it is hermetic and deterministic and runs in-process, but needs realistic sizes and minutes.
  6. highlevel when it runs a pipeline that starts simple_exec or distributed workers, on simulated data, and is gated against the simulation truth (section 6).
  7. platform when it needs child processes, a launcher (cafrun, mpirun) or a device.

3.2 Admission to the fast gate

All of them:

  1. It can fail (section 2.1).
  2. It is hermetic: no network, no download, no user-supplied file, no dependence on core count, load, wall clock or another test's files. Fixtures are generated from a fixed seed, or committed and small.
  3. It runs in-process on one OpenMP thread, returns on success, restores the working directory, and leaves no global state behind (the random generator is reseeded by the runner; module memos such as the mask coordinates must be released: unmemoize_mask_coords). A sub-suite whose subject is a threaded path opens its own small team with num_threads (three is the convention); the entry's OMP_NUM_THREADS stays 1.
  4. It is cheap. The whole gate must stay under 60 s of real time; keep every sub-suite well under a second, with the smallest fixture that exercises the path (a 64-pixel box tests an FFT as well as a 256-pixel one).
  5. It uses no sleeps, polls or real timers.

3.3 Is it part of the build?

The fast tier is, and nothing else is. A test that does not meet section 3.2 must not be forced into the gate by shrinking it until it no longer tests anything; it goes to a library suite and runs every night. A library test that turns out to take seconds can move to the fast gate once its fixture fits.

3.4 Scratch development

The test area is not a scratch area. When a test directory holds "everything that is not production", it fills with programs that nobody runs, owns or can delete, which is what the old production/tests became. Unfinished work has three homes:

  • A local worktree. Exploration, prototypes, experiments and throwaway diagnostics live in a git worktree on your own computer until they become something (see below).
  • A developer program. A diagnostic or tool the team will run again, on real data, is a commander with a program in the UI at developer visibility (the default of ui_program). It gets parameter parsing, project I/O, logging and distributed execution for free, which a standalone program had to reinvent. It needs an owner and a one-line purpose, and it goes when it is no longer used.
  • A test. Once the exploration settles, the claims that must stay true are written as assertions in a tester module (section 4).

What lands on master is production code, a developer program or a test. Nothing else.

Work on master; scratch in a worktree. SIMPLE practises extreme programming: everyone works on master and pushes to master, in small and frequent steps, so that everyone's work is integrated, built and tested every day. What makes this safe is the fast gate, and running it is up to you: before you push, build with ./compile_debug.sh and let the gate pass. This is a strong recommendation, not a lock: nothing in Git or CI blocks a push, because sometimes a push only moves code to another machine (a cluster node, say). Then run the gate before the work counts as done. Every push to master that touches code is built on Linux with the fast gate within minutes (ci_push.yml), which catches a file left out of a commit, a compile error under another compiler version and a gate failure. The nightly workflows build Debug, NICE GUI, bundled-numerics and coarray configurations and run the platform, library and high-level labels; a separate benchmark-dataset workflow runs short real-data subsets and publishes its FSC and resolution gates. What the longer tiers find shows the next morning on the README badges and the linked pages (section 6.3). Do not keep work on a branch in the online repository: nobody checks it, it drifts away from master, and the merge gets harder every day it waits. A branch pushed to the online repository is the exception and needs a strong reason (for example a coordinated change that cannot build on master for a while); it is merged back as soon as it can be.

A git worktree is the tool for scratch development. It is a branch with its own physical copy of the source on your computer, next to your main checkout, with its own build, so you can try several things side by side without stashing or switching, and evaluate them against master. When you are happy with the result, merge it into master and push; when it led nowhere, remove it.

# a scratch branch with its own checkout beside the main one
git worktree add -b scratch/nu_probe ../SIMPLE-nu_probe master
cd ../SIMPLE-nu_probe && ./compile_debug.sh
# ... develop, build, run the tests ...
# what should stay: merge into master in the main checkout and push
cd ../SIMPLE && git pull && git merge scratch/nu_probe && git push
# clean up (git branch -D for a branch that is not merged)
git worktree remove ../SIMPLE-nu_probe && git branch -d scratch/nu_probe

git worktree list shows the worktrees you have. Scratch branches stay local: they are not pushed.

4. How to implement a test

4.1 A unit test (fast or library tier)

A unit test is a subroutine in a tester module next to the code it tests.

  • The file is simple_<thing>_tester.f90 in the directory of the production module, named after what it tests (simple_stack_io_tester.f90 beside simple_stack_io.f90). Files named *_tester.f90 are compiled only with BUILD_TESTS=ON.
  • The header is a single !@descr: line naming what the module tests and the production modules it covers; more description goes below it in plain ! lines (scripts/check_descr.py, section 4.5).
  • The module (or the submodule of section 4.3) uses simple_test_utils, is private, and exports one entry, run_all_<thing>_tests, which prints **** running all <thing> tests **** and calls each test. Each test_<what> subroutine prints its own name first.
  • No process control in a tester: no stop, error stop, simple_end or report_summary. The suite runner reports and sets the exit status. THROW_HARD is only for a broken fixture (a file that could not be written), never for a failed check.
  • Registration: import run_all_<thing>_tests in src/main/commanders/test/simple_commanders_test_class.f90 and add call add_suite(s, n, '<sub-suite name>', run_all_<thing>_tests) to the suites_<area> (or suites_lib_<area>) table. Names are at most 32 characters. Add the selector to the suite= list of the area's program in src/main/ui/simple_test/simple_test_ui_class.f90, in table order; the registry check fails the build until the two agree.
  • A new area suite (a new unit_<area> or lib_<area>) also needs its program in the test UI, a router case and a CTest registration, and it raises the process budget. That is an owner decision.

4.2 Fixtures

  • Generate them in the test: images from gauran, gauimg, square; molecules from the two committed PDB entries (testdata/pdb/1jyx.pdb and 6vxx.pdb, read by simple_molecule_data from the source tree; then pdb2mrc); particles and movies from the simulation commanders. The two PDB files (4.8 MB) are the one committed fixture that is not small; they replaced 6.5 MB of array constructors compiled into the library (2026-11-02).
  • Seed every draw with set_fixed_seed(<n>). Call it after parameters%new, which reseeds.
  • Keep them small and in memory. Write files only when file I/O is what the test is about, in a directory made by enter_fixture(tag, ...) and left by leave_fixture(...) (simple_test_utils): the directory is <tag>_<pid> under the working directory; it is removed when no check failed since the test entered it, and kept, with a message, when one did, so that a failing run can be inspected. Files outside a fixture directory are named tmp_<tester>_* and deleted at the end of the test, also when a check failed.
  • A tester that loops over something printing through logfhandle diverts logfhandle to a scratch unit and restores it.

4.3 White-box testers and self-tests

A module never makes an entity public only for its tester. A tester that needs private entities of the module it tests (components, type-bound procedures, module procedures, constants) is a submodule of that module; a tester that uses only the public interface stays a module (both forms are current, by need):

  • submodule (simple_<thing>) simple_<thing>_tester in the same *_tester.f90 file (built only with BUILD_TESTS=ON). The module declares module subroutine run_all_<thing>_tests() in an interface block and makes it public; the suite table imports it from the module. The tester's entry is module subroutine run_all_<thing>_tests().
  • A plain module procedure the submodule calls stays public. gfortran before 16 gives a private module procedure internal linkage, so the submodule (its own object file) compiles and does not link: the Linux builds failed so on 2026-11-06 while the Mac's gfortran 16 linked. Private type-bound procedures (also when called by name, as simple_flex_cls_kernel's nopass bindings are), private constants and variables, and separate module procedures whose body is in a production submodule (the polarft_calc test hooks) link. scripts/check_submodule_linkage.py (fast gate) finds the case in every submodule, production code included (a production submodule broke the Linux link so on 2026-11-18).
  • The submodule sees everything the module sees. It does not use a name the module already has (gfortran rejects it, also through an umbrella module), and it does not declare a procedure or constant with a module's name. An intrinsic the module shadows (TINY from simple_defs hides tiny) cannot be restored with intrinsic ::.
  • A submodule exports nothing. A fixture or check that several tests use is a module simple_test_<x>_fixture in src/main/commanders/test/ (test-only by folder; simple_test_flex_phantom_fixture, simple_test_sigma2_fixture), never a public procedure of a tester. An entity another tester uses stays public in its module.

simple_flex_cls_kernel_tester and simple_ptcl_sieve_tester are models. A self-test that must stay in the production module's scope is declared there and implemented in the submodule, with an out-argument per check that a tester asserts by name (test_flex_pcg_operator in simple_flex_pca_pcg, implemented in simple_flex_pca_pcg_tester). Every other self-test belongs in a tester: the review moved the self-tests of image, imghead, atoms, oris, ftiter, ftexp_shsrch, bspline_smoother, online_var and aff_prop, the flex PCA, UI hash, cavg-quality and class-average registration self-tests out of their production modules, and deleted those of unused code (hclust, srchspace_map2D_io) and the dead ones (CPlot2D, jpg). No self-test is left in a production module.

4.4 A workflow or platform test

A test that runs a pipeline is a commander: its type and exec_test_<name> routine in the file of its family in src/main/commanders/test/ (simple_commanders_test_highlevel.f90 and its ..._highlevel_<topic>.f90 submodules, ..._single.f90, ..._stream.f90; the suites and platform tests are in ..._class.f90), a case in the router of the same family, src/main/exec/simple_test_exec_{highlevel,single,stream,class}.f90, a program in src/main/ui/simple_test/simple_test_ui_highlevel.f90 (the suites and platform tests are in simple_test_ui_class.f90), a registration in production/CMakeLists.txt with simple_add_test (label, timeout, threads, and RUN_SERIAL for a library or platform entry, PROCESSORS <reservation> for a high-level one) and, for a high-level entry, its row in the test registry (section 1.5) and its card (section 6.5). Section 6 says what it has to check. It still fails through assertions or THROW_HARD with a message that names the metric, its value and the floor.

4.5 Checks and records

Before asking for a build:

  • python3 scripts/check_descr.py . — every source file starts with a one-line !@descr: and declares at most one module or submodule.
  • python3 scripts/check_test_registry.py . --verbose — the CTest registrations, the test UI programs, the router cases and the suite= lists agree. The fast gate runs it on every build.
  • python3 scripts/check_flex_dag.py . --verbose — each FLEX source declares one module or submodule, and the production graph follows its declared layers and remains acyclic. The fast gate runs it on every build.
  • python3 scripts/check_guide_imports.py . — every @ import of a folder's CLAUDE.md names an existing guide. The fast gate runs it on every build.
  • python3 scripts/check_cli_chain.py . — the command-line chain (accepted keys, parameter bindings, UI inputs, stream launcher keys, private programs) is consistent. The fast gate runs it on every build.
  • python3 scripts/check_submodule_linkage.py . — no submodule, production or tester, calls a private plain procedure of its module (section 4.3). The fast gate runs it on every build; a macOS build with gfortran 16 links such a call, so nothing else catches it before a Linux build.
  • The gate and the build run their Python scripts with the interpreter CMake found (find_package(Python3 3.7 ...) in the top-level CMakeLists.txt, SIMPLE_PYTHON3 in the build's cache), never the python3 on PATH (3.6 on the Linux build machines). A script they run uses the standard library and nothing newer than that floor; using something newer raises the floor in the same change, to a version every build machine has. A run on a machine with a newer Python does not show a breach.
  • The default CMake build regenerates the test inventory and code-base map when their source inputs change.
  • ./compile_debug.sh — the build and the gate.
  • SIMPLE_UNIT_ORDER=reverse on the area suite — the sub-suites do not depend on each other's state.

When a test is deleted, the commit says why. When a test finds a defect, the defect is fixed in the same change and the test pins the fix.

Two kinds of code need a check that is easy to leave out:

  • Threaded paths. The fast gate runs every suite on one OpenMP thread, so a routine with a threaded path gets a check that forces a team (the masks suite runs a team of three) and compares with the serial result. Nothing repeats the fast tier on more threads, so that check is the only one.
  • Readers and writers. A file format is tested by round trips at the sizes where its layout changes: small, odd and non-square boxes and the sizes where a header or record length changes. The SPIDER header was wrong for every box below 43 and right for the 64-pixel boxes the tests used.

4.6 Fortran traps seen in the review

  • A dummy argument or local named like a module constant hides it, silently (Fortran is case-insensitive: nmics hides NMICS).
  • set_fixed_seed before parameters%new is overwritten by it.
  • A constant integer division that truncates, (BOX-1)/2, draws a -Winteger-division warning; write the value.
  • Comparing whole images after an interpolating rotation includes the circular wrap of rtsq at the corners; compare inside the inscribed disc.
  • An rmat pointer (get_rmat_ptr) is the box, ldim(1) x ldim(2) x ldim(3) (since 2026-09-30): a whole-array expression on it is an expression on the image and conforms with a box-sized array, and get_rmat() returns a copy of the same box. Until then the pointer was the padded buffer of the in-place FFT, with extra rows in the first dimension; an unbounded whole-array expression on it did not conform with a box-sized array, which bounds checking stops and which passes by luck without it (the cif2mrc tester, 2026-09-25), and a whole-array reduction took the padding in. What is left of the trap: the box is not contiguous in memory, so pass the pointer to assumed-shape or pointer dummies (an explicit-shape dummy gets a copy), and an index past ldim(1) is now out of bounds. In real space the padding holds zeros; a test reads it through max_abs_padding(), never through get_rmat_ptr_padded, which is for the callers that hand Fourier data on in the FFT layout (simple_image_slab, simple_stack_read_session).

5. Library support for tests

5.1 simple_test_utils

The assertion and reporting layer. A tester uses the assertions and set_fixed_seed; the suite runner uses the rest.

routine use
assert_true(cond, msg), assert_false(cond, msg) a logical guarantee
assert_int(expected, actual, msg) an exact integer
assert_real(expected, actual, tol, msg) a real within an absolute tolerance (tol = 0. for an exact value)
assert_double(expected, actual, msg[, ulp_tol]) a double within a number of ulps (10 by default)
assert_char(expected, actual, msg), assert_string_eq(char, string, msg) text, trimmed
set_fixed_seed(base[, propagate]) seed the intrinsic generator with a fixed state, base plus the seed offset; propagate=.true. also sets SIMPLE_SEED, from which the commanders run in process reseed
fix_test_seed SIMPLE_SEED of the test process set to 20260923 plus the seed offset; called by simple_test_exec and the test dispatcher, not by testers
set_test_seed_offset(n), offset_seed(base) the seed offset of the process (seed_offset= of simple_test_exec), and a base seed moved by it (a 64-bit integer); for the front door and the dispatcher, and for a test that prints its effective seed
enter_fixture(tag, cwd_saved, fixture_root), leave_fixture(cwd_saved, fixture_root, nfail_before) the scratch directory of a test (section 4.2): made and entered, then left and removed unless a check failed since nfail_before
begin_test_suite, end_test_suite, reset_test_report, report_summary, tests_run, tests_failed the runner's bookkeeping; not for testers

A failed assertion records its message, with expected and actual values, and the suite goes on: every check of a run is reported, not only the first failure.

5.2 Workflow-gate support

Shared by the highlevel test commanders (src/main/commanders/test/, built with the tests); a new gate uses these instead of its own copies.

routine use
test_gate (simple_test_gate): new(fname), check(name, ok), metric(name, val, floor, ok[, upper]), report(name, val), success(name, ok, floor), passed(), kill a gate's checks and metrics, logged as PASS/FAIL and tabulated in a TSV file (name, value, floor, pass, sense); upper=.true. marks the floor as a ceiling; a success never fails the run, and test=profile holds the fraction of its runs that succeed to floor
validate_reconstructed_volume (simple_test_truth_metrics) a workflow's final map against its simulation truth: box and sampling, docking in both hands, correlation and masked-FSC floors, each decision also a row of the gate it is given
dock_both_hands, compare_to_truth the two steps of it, for a gate with its own floors (the masked FSC is the production compare_volpair of simple_volpair_metrics, which also gives a band-limited correlation)
pair_pose_error poses against the simulation truth without docking (median error of relative rotation angles over seeded pairs)
add_gaussian_blob a blob that breaks the symmetry of a model map, so that c1 poses are unique
state_fixture (simple_test_state_fixture) a multi-state dataset with known states, poses, shifts and CTF: blob phantoms (box 64) or beta-galactosidase states (box 96 at 2.2 A; compositional: tetramer D2, tetramer less one chain C1, dimer C2; conformational: one chain rigidly rotated), one simulate_particles mixture with given populations, and a project per mode (search: no poses, no states; known: the true poses; views: exact repeated views, class = view); the truth is truth.txt beside it. Cached per build in <SIMPLE_PATH>/test_runs/fixture_cache/<family>_<hash>, where the hash (64-bit FNV-1a) is of a key text holding the commit of the build, the fixture version, every parameter of the dataset and its seed with the seed offset; the directory holds the key as key.txt and is built in a temporary directory renamed into place when complete
point_group_check, betagal_frame a truth's self-correlation under its declared point group and under the extra operator of the next larger one; the D2 frame of 1JYX from its chains
match_states, adjusted_rand_index, mapped_accuracy, accuracy_null, collapsed_accuracy, population_errors state labels against the truth: the one-to-one mapping that maximises agreement (at most eight states), the adjusted Rand index, the accuracy under the mapping, its null distribution from shuffled truth labels (counts kept) and the collapsed predictor
match_maps, discrimination the map mapping from docked correlations (it must agree with the label mapping), and whether the maps discriminate the states inside the mask where the truths differ (margins and difference correlations; copies of one map fail)
carry_pose, group_errors, group_operators a pose and shift carried into the truth's frame by a docking and hand (dock_both_hands returns them), and the rotation error under the operators of the truth's declared point group only (poses r and r g are equivalent)

6. The nightly suite

6.1 What belongs in it

  • Library suites: tests that meet every rule of the fast gate except its cost. Realistic box sizes and particle counts, minutes rather than seconds, still hermetic, deterministic and in-process, and they do not start simple_exec or workers. One suite per coherent part of the library.
  • Workflow gates: simulated pipelines. They run production programs on data simulated from embedded atomic models (6VXX, 1JYX, the Pt nanoparticle), where the orientations, defocus, shifts and positions are known, and they compare the result with that truth.
  • Platform entries, on a machine that has the capability.

What does not belong: anything that needs user data or a download, timing benchmarks, and anything that cannot fail.

On the test machine the whole high-level tier runs as one command, simple_test_exec test=nightly (section 1.5), which packs the entries on the machine's cores and writes one report; ctest -L highlevel -j <cores> runs the same entries packed by their PROCESSORS. Despite its name, test=nightly is not a nightly of record with archives and notifications: it is the tier of the tests too expensive for the build, today the simulated workflow gates (ruling of 2026-10-18). The library, platform and fast tiers are not part of it. Real datasets may join it as entries run from within SIMPLE once it is settled how their data reaches the machine (section 6.6).

6.2 How a workflow gate is designed

  • It checks truth, not completion. "The files exist and the counts match" is the floor, not the gate. The gate compares the result with the model that generated the data: the estimated defocus against the simulated one, the estimated frame shifts against the simulated drift, picked positions against the placed particles, the map against the truth map, the recovered orientations against the simulated ones.
  • The truth is independent of the code under test. Compare the final map with the map pdb2mrc makes from the same coordinates on the same grid, not with a map from an earlier stage of the same run.
  • Maps are compared after docking and hand. A solve3D map is neither docked to the truth map nor necessarily of the right hand. The gate docks it with dock_vols at a low-pass of 15 to 20 Å, keeps the hand (the map or its mirror('x')) that docks with the higher correlation, and takes the masked FSC at 0.143 against a declared floor. Orientations are compared after composing each one with the docking rotation (and the mirror), modulo the point group.
  • Floors come from a profile, by the floor rule, never from a first run. test=profile runs the gate at seed offsets 0 to 19 at its CTest thread count (and at one thread where it is deterministic) and gives every metric's distribution. Let s be the robust spread: 1.4826 times the median absolute deviation, or the observed range over 4 if that is zero. For a metric where higher is better, a floor is admissible when it lies
  • at most at the worst of the 20 runs minus s;
  • at most at the median minus 3s;
  • at least at the negative control's value plus 3s.

A ceiling is the mirror image. Every floor is written next to its check with its origin: the profile, its date, its median, spread and worst run, and the control. A floor moves only by this rule, with the new profile written beside it; it is never loosened to make a run pass. If no value is admissible, the metric is reported as a robustness profile (sense report) and the card says why. A contract the code must always keep (a value inside the interval it was asked for, a file written, a count) is a check, not a floor. There are no blessed baselines and no platform keys. - An outcome a single run may miss is a success count, not a gate (ruling of 2026-10-18). Where the profile shows that a correct algorithm misses an outcome in some runs by the nature of the method (the de novo multi-state routes, which take the best-scoring state outright from random labels, so that a state which fits the noise slightly better grows), the outcome is a success row and test=profile holds the number of the 20 runs that succeed to a floor: the observed count less three binomial standard deviations (the square root of n·p·(1−p), with p the observed fraction), rounded down. The floor must be above the count of the shuffled-label control. The nightly run of such a route keeps only the gates that held in every run of its profile (path assertions, pose ceilings, finite values) and reports the rest. - Every gate has a negative control that shows it can fail for the right reason: the same metric against a broken truth (shuffled labels, another molecule, another micrograph's defocus, copies of one map, shuffled poses) must fail the floor. The control's value is a row of the table. - Every workflow writes its metrics to metrics.tsv in its run directory (the working directory it was started in, never a fixture directory it deletes), one name value floor pass sense line per check and metric, for the nightly report and the profiles. The sense says how the floor bounds the value: min (the value must reach the floor), max (the floor is a ceiling), check (1 or 0 against 1), report (no bound) or success (1 or 0, never failing the run; its floor is the smallest fraction of a profile's runs that must succeed). Values are written in exponent form, so a tolerance of 1e-6 keeps its digits. Every value a test decides on is a row, written before the decision, so a failing run still reports it. A name written more than once in a run (a value reported and then held to a floor, a check repeated) is one metric of that run, which passes only if every row of it passes. - It fails on a missed floor, with a message naming the metric, its value and the floor. Its draws are fixed (SIMPLE_SEED and the seed offset), so a one-thread run is reproducible, and so is a run on several threads where every draw is keyed; a run whose classic draws meet the threads is still a draw from a distribution, which is why its floors come from a profile.

6.3 The GitHub Actions runs

Three workflows build and test master on GitHub-hosted runners; each can also be started by hand (workflow_dispatch).

On every push, .github/workflows/ci_push.yml builds a push to master that touches code (src/, production/, cmake/, scripts/, the CMake files, compile_clean.sh) on Linux: a clean checkout and ./compile_clean.sh, so the Release build and the fast gate, in about 8 minutes. It catches a commit that leaves out a file the local build compiled (the library globs its sources), a compile error under Ubuntu's gfortran and a fast-gate failure minutes after the push. A newer push cancels the build of an older one.

Nightly, two scheduled workflows run at midnight (America/New_York):

  • ci_build.yml checks that the build configurations stay viable: on Linux and macOS a Debug build with ./compile_debug.sh and the NICE GUI with ./compile_gui.sh, plus the coarray configuration with ./compile_coarrays.sh where the platform has it. Every configuration uses SIMPLE's bundled OpenBLAS. Each compile script runs the fast gate before installing.
  • ci_test.yml runs the longer labels as a matrix of groups, each a job of its own on Linux and macOS with its own clean Release build (./compile_clean.sh, fast gate included; a failed build runs no tests) and its own time limit:
group CTest selection
library -L 'platform\|library'
workflows -L highlevel -R '^(simulated_workflow\|single_workflow)_'
rest -L highlevel, every high-level entry the other groups do not name, so a new entry runs without a change to the workflow

The groups do not wait for one another and fail independently (fail-fast: false). In a group, CTest packs the entries by their PROCESSORS reservations on the runner's cores. Every job uploads its JUnit file, the CTest logs, the suite reports and the metrics.tsv files (kept 14 days).

GitHub Actions keeps the output, failures, durations and status of every job. A nonzero build-script or CTest status fails the job and the workflow. Tests must not use continue-on-error or shell constructs that hide those exit codes.

The README shows two nightly badges for master: Build SIMPLE (ci_build.yml) and Test SIMPLE (ci_test.yml). A badge summarises a workflow; the per-job results and the metric output of a high-level gate are on the linked Actions pages. Every CTest entry keeps its declared TIMEOUT, and a change that weakens a timeout or a scientific threshold needs review.

6.4 Benchmark-dataset workflow and webpage

The repository-level build and CTest workflows are complemented by the SIMPLE_data_testing workflow linked under Benchmark Datasets in the README. This is a separate real-data integration layer: it exercises installed SIMPLE workflows on representative cryo-EM datasets and publishes the results through the linked GitHub Pages report.

These dataset runs are intentionally short enough for routine automation. Most datasets are trimmed to 50 micrographs, with the exact subset and order fixed in the dataset manifest. The report must identify any different limit. Trimming keeps download, preprocessing, particle extraction, classification, and reconstruction costs bounded while retaining real detector data and an end-to-end workflow. It does not make the subset representative of full-scale production throughput or final biological resolution.

For each dataset, the workflow should record and publish at least:

  • dataset and immutable subset identity, including the number of micrographs;
  • SIMPLE commit or release, workflow parameters, and execution environment;
  • completion status and the stage that failed, if any;
  • imported and accepted micrograph and particle counts;
  • final-map dimensions, sampling distance, symmetry, and particle count;
  • the final FSC curve, the declared FSC criterion, and the resolution obtained at that criterion;
  • the dataset-specific resolution limit and an explicit FSC PASS or FAIL result;
  • important runtime and resource measurements needed to recognize a major performance regression.

The FSC decision must be quantitative. The dataset manifest declares the FSC criterion, commonly 0.143, and the maximum acceptable resolution in Angstrom. The result passes only when the FSC data are finite and valid, the threshold crossing can be determined, and the measured resolution is no worse than the declared dataset-specific limit. A missing curve, invalid crossing, or missed resolution limit is a failure. Changing that limit requires the same review and justification as changing a high-level test floor.

Dataset status must not be report-only. A failed workflow stage, invalid scientific output, or FSC failure must produce a nonzero status that fails the SIMPLE_data_testing GitHub Actions workflow. Its README badge therefore summarizes the actual benchmark-dataset gate, while the published webpage provides the per-dataset FSC plot, resolution, threshold, PASS/FAIL decision, and supporting metrics.

These real-data runs do not replace the hermetic fast, library, platform, or high-level suites. CTest supplies reproducible generated-data gates within the SIMPLE repository; the benchmark-dataset workflow supplies short real-data evidence in its separately versioned data and reporting repository.

6.5 The test cards

One card per high-level entry, from the audit of the runs test_truth and test_truth_sync (doc/implementation_notes/completed/test_suite_truth_and_robustness.md, Progress: Phase 1 for the first profiles, Phase 5 for the repairs, Phase 7 for the entries whose outputs stayed byte-identical through the merge with master, Phase 8 for the profiles of the merged code). Every floor named here is written in the test next to its check with the profile it comes from (section 6.2). "Profile" means 20 seed offsets at the entry's CTest thread count, and at one thread too where a refactoring run checks the entry at one thread; the profiles are kept under the runs' scratch/keep/profiles/ on the test machine. A row of the nightly table whose sense is report is a robustness measurement, not a gate; a success row is held over the seeds of a profile, not in one run. Cost is the wall time in the test=nightly of 2026-10-19 on 24 cores (final code), with the threads and the CPU reservation of the registry. No floor has been profiled on the maintainer's Mac yet; the Mac's values of 2026-10-17 are recorded in the plan's Phase 8 entry.

mini_stream_6vxx, mini_stream_1jxy

  • Claim: six micrographs simulated from the embedded model (8 particles each) go through CTF estimation, picking, extraction, solve2D and shape ranking, and the defocus and the picks agree with the simulation.
  • Checks: every micrograph's defocus against its truth (ceiling 0.15 µm); picked over placed particles (floors 0.05 for 6vxx and 0.25 for 1jxy, ceiling 1.5); at least one class; the project's micrographs, particle counts, class assignments and populations, shape ranks and class averages consistent (checks).
  • Path: the solve2D record and the refine2D iterations it ran (the strategies' benchmark records). Control: the fit against the truth of the micrograph whose defocus lies farthest must fail the ceiling.
  • Profile (2026-10-18, still valid: byte-identical on the merged code): defocus error median 0.002-0.003 µm, worst 0.125 (a rare wrong fit); pick ratio median 0.33 (6vxx, worst 0.19) and 0.49 (1jxy, worst 0.40). Since each suite draws its own data (2026-11-02), 6vxx's defocus worst is 0.144 µm in 20 seeds, which moved the ceiling from 0.13 to 0.15 by the floor rule. The simulator saves no particle positions, so the picks are judged by count only and have no control.
  • Cost: 6vxx 59 s at 8 threads (reserving 2 cores); 1jxy 66 s at 8 threads (reserving 3 cores); each commander one thread.

simulated_workflow_6vxx

  • Claim: simulated particles (160 in 16 movies) go through import, motion correction, CTF estimation, picking, extraction, solve2D and solve3D, and the map matches the map of the atomic model. It exercises C1-to-C3 symmetry-axis discovery.
  • Checks: at least 4 extracted particles and one class; the map written with the expected box and sampling; truth correlation at least 0.80; FSC=0.143 no worse than 6 Å; median pair-pose error at most 15 degrees; and pair fraction within 5 degrees at least 0.45.
  • Control: the map is compared directly with the fixture's own truth volume and planted particle poses; the other molecule is not rendered or used by this workflow.
  • Prior profile (2026-10-19, one thread): 6vxx missed the map in 2 of 20 runs, including the fixed seed, while the found maps correlated at 0.88 (s 0.02-0.03) with FSC 4.5-4.8 Å. The current configuration needs a fresh seed profile; its fixed seed is a correctness gate.
  • Identity: the declared outputs of a one-thread run (the entry is deterministic).
  • Cost: 1129 s at 1 thread (reserving 2 cores).
  • Removed (2026-11-17): simulated_workflow_1jxy. Its shared-memory or distributed solve3D failed the pose gate in 13 of 40 solves of a 20-seed profile, the pair fraction within 5 degrees at 0.48-0.50 in every failure while the map passed; the maintainer had it removed rather than chase it.

single_workflow_fcc, single_workflow_alloy, single_workflow_wurtzite

  • Claim: a simulated Pt (face-centred cubic), random-site Pt/Ni (face-centred cubic), or CdSe (wurtzite) nanoparticle goes through reprojection and a trajectory, then a map, then refine3D_nano refine=cont and the continuous follow-up, and its map and poses match the truth. fcc makes the map with trajectory_solve3D (raw frames centred, 2D, the lattice and model gates, then only the kept frames denoised and refined), and its gates may lose at most 5% of the 300 frames (../implementation_notes/completed/trajectory_solve3D.md, ruling 8; no planted junk). alloy and wurtzite run the stages by hand: denoising, analysis2D_nano, and autorefine3D_nano with the atomicity-prior loop (rec_backend=pcg atm_prior=yes), so both forms stay covered.
  • Checks: the fraction of frames the gates lose (fcc); the frozen 71-Ni/214-Pt FCC site mask (alloy); the products of the atomicity-prior loop (alloy and wurtzite); the transfer table; the map's box and sampling, its correlation with the simulated map (floor 0.90) and FSC (ceiling 5 Å); the median rotation error of the particles in the truth's frame, after one docking of the map to 2 Å and up to the lattice's group (O or D6) and the in-plane rotation by 180° (both lattices are nearly centrosymmetric), reported for autorefine3D_nano and held for refine=cont and the continuous follow-up to at most 0.5° worse than the stage before; each particle is matched to its frame of the trajectory (trajectory_solve3D records it as frame before it swaps in the denoised kept frames).
  • Path: the stages' outputs. Identity: the declared outputs of a one-thread run (deterministic).
  • Profile: fcc 2026-10-18 (byte-identical on the merged code): rotation error median 4.9°, stage-to-stage excess worst +0.19°. wurtzite 2026-10-19 (the merged code no longer clamps the matching low-pass): rotation error median 1.5°, excess worst −0.12°, map correlation worst 0.905, FSC worst 3.0 Å. Random poses err by tens of degrees. The alloy's first complete fixed-seed run on 2026-11-09 is a measurement, not a profile: map correlation 0.9790, FSC=0.143 resolution 3.82 Å, FSC=0.5 resolution 6.36 Å and initial median rotation error 10.45°. Its workflow gate passed the inherited FSC=0.143 ceiling, while the external SIMPLE_data_testing report failed its separate FSC=0.5 resolution limit of 5.0 Å. A 20-seed alloy profile is pending.
  • Cost: fcc 592 s, alloy 967 s and wurtzite 586 s at 1 thread (each reserving 2 cores).

simulate_particles

  • Claim: reproject and simulate_particles make the images they are asked for.
  • Checks: the images against the reprojections at their recorded poses (50 images without CTF: each closer to its own pose's reprojection than to another image's); with three blob volumes and given populations, exact state counts and every image closest to its own state's projection; every CTF and shift draw inside its requested interval (checks of the simulator's contract; the largest of many uniform draws sits just inside its bound by construction, so no floor applies, and the maxima are reported).
  • Profile: passes 20 of 20 (2026-10-18, byte-identical on the merged code).
  • Cost: 11 s at 8 threads (reserving 8 cores).

state_fixture

  • Claim: the multi-state test fixture builds the datasets the multi-state tests rely on.
  • Checks: the blob phantoms in the search, known-pose and exact-view modes (built twice, the second from the cache, the records equal) and the beta-galactosidase states, each truth holding its declared point group (correlation at least 0.99 over the group) and no larger one (at least 0.01 above the next larger group).
  • Profile: passes 20 of 20 (2026-10-18, its gate table identical on the merged code).
  • Cost: 7 s at 8 threads (reserving 8 cores) (from the cache; about 25 s when it builds the datasets).

solve3D_addon

  • Claim: solve3D_addon extends a frozen solution with new particles without disturbing it.
  • Checks: the union map against the truth (correlation floor 0.90, at most 0.03 below the base map, FSC at most 1 Å worse than the base); coverage of the new cohort (floor 0.90); the cohort's pose error in excess of the frozen particles' own (ceiling 10°); the frozen project, map and sigma2 unchanged, the manifests and bundles valid (checks).
  • Control: the cohort's truth shuffled must exceed the ceiling.
  • Profile (2026-10-19, eight threads and one thread, the speed week's one-thread case): excess median 0.49° / 0.11°, spread 0.80 / 1.10, worst 1.80° / 2.16°; the shuffled control at 28.6° / 28.5° (worst 24.7°); the union map worst 0.938 / 0.937.
  • Cost: 289 s at 8 threads (reserving 11 cores); about 25 minutes at one thread.

cont_refine3D_1jxy

  • Claim: continuous Cartesian refinement recovers the poses of 1 000 simulated 1JYX particles from perturbed starts, in every route that uses it.
  • Checks: median rotation error at most 1.5°, shift at most 0.2 px, at least 95 % inside the basin (a tenth of the injected error), on the shift-then-joint seam (stages a-c) and on the production route (stages i, j); the distributed run equal to the shared-memory one within the rounding of threaded evaluation; the follow-up and the continuation no worse than without them.
  • Path: no polar in-plane route where none is expected; the distributed stage ran two parts.
  • Control: every E25 stage's rotation error and basin fraction against the truth shuffled among the particles must fail the floors (the simulation has no shift, so the shift error has none).
  • Profile (2026-10-19, eight threads and one thread): passes 40 of 40, every floor far from its bound (stage a rotation worst 1.00°, stage e worst 2.22° against 7.5°). Stages i, j and the controls (2026-10-20, eight threads): passes 20 of 20, stage i rotation worst 1.01°, stage j 0.24°, basin 1.000 in every run; the shuffled controls at 128.8-135.2° and basin at most 0.001. With the continuous gather (same day): 20 of 20, every floor admissible (stage a worst 1.02°).
  • Cost: a median of 390 s at 8 threads with stages i and j (the 2026-10-20 profile; reserving 10 cores), up to 11 GiB; about 37 minutes at one thread (2026-10-19, before stages i and j).

pose_student

  • Claim: the pose student's programs and the per-particle cone of the neighbourhood search work end to end on 2 000 blob-phantom particles with known poses (one state, SNR 1, no shift): the training half trains the student against the truth map, the test half is predicted from blank poses, every test row is aligned by refine3D refine=prob_neigh prob_neigh_mode=geom from its cone or the athres_cont cone, the same search runs without student records, the dense search runs as the protocol's fallback, and the half is reconstructed from the protocol's merge and from the dense search.
  • Checks (the machinery, ruling R3 of the pose student plan): the model records a threshold and a bound; every test row routed; every seeded row's cone within the bound at or above the threshold; every dense row without a cone; every folded cone radius at most 90°; every searched pose finite; the rows without a cone bit for bit the no-student search's; the seeded rows changed by their cones (when any is seeded); predict_poses over two parts, registering against the truth map, gives the shared-memory table and records byte for byte and leaves no part file. Reported (no floor, by that ruling: no floor from a student that seeds nobody): the held-out record, the seeded fraction, the truth inside the cone and the mode within 12° for the seeded rows, the agreement with the truth per route beside the dense search's on the same rows, the maps' FSC against the truth, every step's wall time.
  • Path: the three searches and the two reconstructions complete in place. Control: the seeded rows' poses must differ from the no-student search's (the cone path did something) while the other rows' do not.
  • Profile: none yet; the reports are the material for one (the floor rule) once the student's seeding on this phantom is settled (1.5% of the test half on 2026-11-08, with 68% held-out mode agreement).
  • Cost: 6:49 at 8 threads on the dell (2026-11-08; reserving 8 cores), 1.6 GB, 0.7 GB of run directory; the training of two designs takes 394 s of it.

center_ptcls

  • Claim: center_ptcls centres raw picks end to end on 2 000 simulated beta-galactosidase particles (one state, SNR 0.5, 96 px at 2.2 Å) whose project holds no pose and no shift, the simulator having planted shifts within 6 px: references from the particles (10 classes at 20 Å on an 88-pixel box), then one pass at 12 Å under the polar shift map, every particle starting not yet centred.
  • Checks (the program's contract): every active particle carries the same shift and state of centring in ptcl2D and ptcl3D (a measured width, or exactly the sentinel and no move where the pass's draw carried no width); no other particle parameter changed; every shift within the 3-sigma disk; the median residual against the planted shifts below the planted shifts' median. Reported: the planted median, the residual's median and the shares within 3 and 5 Å after the common offset, that offset, the share left not centred, the wall time.
  • Path: both refine2D runs complete in place (mkdir=no), the pass in its own folder center_pass/.
  • Profile: none yet; the reports are the material for one (the floor rule). On 2026-11-13 the planted median was 10.4 Å, the residual's 6.4 Å, 18% within 3 Å, 1.25% not centred.
  • Cost: 5 s at 8 threads on the dell with the fixture cached (2026-11-13), 10 s for the Debug build.

class_student

  • Claim: validate_class_student runs end to end on 2 000 simulated beta-galactosidase particles (one state, SNR 0.5, shifts planted within 6 px, the center_ptcls entry's fixture): a random half trains a solve2D teacher of 10 classes, learn_class_student trains the student on the teacher's rows against its class averages, center_ptcls centres every particle, predict_classes predicts the other half, one full refine2D search (refine=prob, all classes) assigns the same half against the teacher's averages, and make_cavgs averages the student's classes (doc/implementation_notes/completed/class_student_2D.md, Phase 3).
  • Checks (the programs' contract): the model reads back with the teacher's classes; every unseen particle carries a class, a read-out angle in [0, 360), a finite shift, a route and a confidence, no training particle a prediction; the student's class agrees with the full search's for more than twice the chance share; predict_classes over two parts gives the shared-memory table, candidates and records byte for byte, leaves no part file, and a part of unselected rows writes its contributions. Reported: the validation report's reads (the share given a shortlist, the shortlists containing the full search's class, centred and perfectly centred, the shortlist's length, the class averages' FRC against the teacher's, the costs per particle) and the diagnostics' (agreement, the angle and shift errors, the frame offset), in percent where a share.
  • Profile: none yet; the reports are the material for one (the floor rule).
  • Cost: 36 s at 8 threads on the dell (Release, 2026-11-13), 1:49 for the Debug build, both passing.

multistate_assignment

  • Claim: one production multi-state refinement block preserves a valid three-state handoff. The fixture is 1 500 particles from the compositional beta-galactosidase states at SNR 2 and exact 50/30/20 populations. Their planted poses and labels reconstruct one fixed reference per state; a residual sigma pass establishes the Euclidean noise model, then one refine3D refine=prob_neigh prob_neigh_mode=geom objfun=euclid iteration searches all particles at 8 A over 2 500 directions with a full update and physical posterior temperature.
  • Checks: adjusted Rand index, mapped accuracy and smallest state recall at least 0.99; largest population error at most 0.01; every state resolved and populated with a map; the map mapping agrees with the label mapping and its discrimination margin is at least 0.40; copies of one map and copies of the mean fail the discrimination control; median pose and shift errors are at most 2 degrees and 0.10 pixels. The recorded path contains the three-state sigma and prob_neigh blocks at 2 500 directions. A second run through two two-thread workers must produce every map and exactly the shared-memory particle assignments.
  • Evidence (2026-11-24, maintainer Mac, Release, four shared threads then two two-thread workers): ARI, accuracy and recall 1.0; populations exactly 750/450/300; discrimination margin 0.456; median rotation error 1.61 degrees and shift error 0.050 pixels; all 1 500 distributed labels identical; 90.4 s, master peak RSS 1.76 GiB.
  • History: the test with this name retired on 2026-11-02 used objfun=cc, searched poses from low-passed truth maps without a residual noise model, and did not represent production. Its code remains in git at eefc7e1a1 (simple_commanders_test_highlevel_multistate.f90). The replacement is suite=assignment of the retained workflow test so the fixture, evaluator and controls have one owner.

multistate_workflows

  • Status: manual robustness program, not a CTest or nightly gate. Four consecutive Linux nightly jobs failed while a current fixed-seed rerun passed all five routes; its de novo convergence and long coupled pipeline do not provide a stable single-run correctness boundary. Keep its focused suite= routes for investigation and profiles. The registered replacement is its deterministic suite=assignment described above; it does not gate on de novo discovery or convergence.

  • Claim: the multi-state workflows recover three compositional beta-galactosidase states (the tetramer, the tetramer less chain D, the A-B dimer; 50/30/20 %) in five routes: labels (the state assignment alone: refine3D refine=prob nstates=3 from the true poses and labels drawn at random with balanced populations, the starting maps reconstructed from them, 1 000 directions, a fixed 8 Å band, ten iterations whose last five anneal to the physical posterior), cavgs (solve3D_cavgs on 600 simulated class averages imported with import_cavgs), shc (solve3D from 3 000 particles), states (refine3D_states from the true poses and the consensus map) and consensus (single-state solve3D in C1, then refine3D_states: the route used on real data).

  • Checks: the path, the controls and the pose ceilings of every route (class averages 4.5° / 0.40 px, particles 2.5° / 0.15 px, refine3D_states 2.0° / 0.10 px, consensus 2.5° / 0.15 px); for states and consensus every true state resolved (recall above one half) with no estimated state empty, and their labels held to floors (states: adjusted Rand index, accuracy and recall 0.99, population error 0.01, discrimination 0.40; consensus: adjusted Rand index 0.40, accuracy 0.70 and population error 0.30, with its recall and legacy discrimination margin reported and the sign of its pairwise map-difference correlation checked).
  • Successes (ruling of 2026-10-18): the de novo routes shc and cavgs start from random labels and their first (shc) stages take the best-scoring state outright (the prob stages after draw it from the posterior), so whether every true state is resolved is decided early and a run may miss it; it is a success row, held by test=profile to 6 of 20 seeds (shc) and 2 of 20 (cavgs), the shuffled-label control at 0; their labels are reported.
  • labels (2026-11-04, gated 2026-11-05): its labels start at random too, so its resolution is a success row; the accuracy, adjusted Rand index, smallest recall, populations and state readout of every iteration are printed (LABELS PER ITERATION). The profile of the posterior state draw (doc/implementation_notes/completed/multistate_posterior_state_draw.md, 2026-11-05, dell2, 20 seeds at eight threads) resolves every state in 13 of 20 runs (accuracy 0.998-1.000; shuffled labels 0 of 20): floor 6 of 20. In the other 7 a random start drains a state in the flat iterations and two true states merge (accuracy 0.79-0.80), as the closest-state rule of the code before the draw does at the three seeds checked, and as hotter draws do (prob_beta 0.1 at all three, 0.03 at two): a drained state is not reseeded (outside that plan). Floors by the floor rule, written with their evidence in the suite: adjusted Rand index 0.70, accuracy 0.75, largest population error 0.30, median rotation error 2.0°, median shift error 0.10 px; the smallest recall and the discrimination margin are reported and the sign of the map differences checked. hard_labels and labels_identical report.
  • Path: the refine mode, directions and states of every iteration from the refine3D strategy's record. Controls: shuffled labels, copies of one map.
  • Profile (2026-10-19, eight threads; consensus at one thread too): shc resolves every state in 13 of 20 runs, cavgs in 9, states and consensus in all (consensus 40 of 40, adjusted Rand index median 0.78, one state often only partly separated). With the posterior state draw (2026-11-05, dell2, eight threads; the code changed in between, so not paired) shc resolves every state in 15 of 20 runs (shuffled labels 0 of 20); in the other five two true states merge (accuracy 0.80). Medians: accuracy 0.984, adjusted Rand index 0.95, rotation error 1.5°, shift error 0.075 px.
  • Current-route evidence (2026-11-02): fixed-seed consensus runs at eight and four threads keep map correlations at 0.940-0.986 and minimum pairwise difference correlations at 0.876-0.886, while the legacy single-map discrimination margins are -0.151 and -0.196. Its old 0.20 margin floor is therefore reported pending a new 20-seed profile; the positive difference-correlation contract and both duplicated-map controls remain gates.
  • Current-route evidence (2026-11-04, dell2, 22a643642): in one of three eight-thread runs the consensus route merged the tetramer with the tetramer less chain D and emptied a state, failing "every true state resolved" (the entry failed); the two others passed with a partial merge (accuracy 0.88, smallest recall 0.60-0.61). At one thread it passes (accuracy 0.891, smallest recall 0.636). A profile of the current route is pending.
  • By hand: suite=cavgs_single, suite=cavgs_as_particles, suite=<route>_identical, suite=hard_<route> (labels_identical and hard_labels included).
  • Cost: 2 692 s at 8 threads alone on dell2 for the five routes (2026-11-05; each route alone on that tree: labels about 4 minutes, cavgs 7, shc 20-22, states 3, consensus 11), 2 517 s on the tree of 2026-11-04 (shc 16 minutes); before labels joined, 1809 s at 8 threads (reserving 11 cores) for the four routes; the consensus route alone about 70 minutes at one thread. On a 4-core CI runner the former entry took about 1.5 h (4 866 s on four pinned cores here, 2026-11-01); while registered it ran on Linux only (owner decision, 2026-11-02).

single_atoms_stats and its CdSe variants (_cdsew, _cdsez, _cdser)

  • Claim: atom detection (species-free, the contact ceiling from the data) and statistics (with the element) recover the atoms of simulated Pt and CdSe (wurtzite, zincblende, rocksalt) nanoparticles.
  • Checks: recall and precision at least 0.90, position error at most 0.75 Å, density correlation at least 0.80, the coordination number of interior atoms and the fitted lattice constant within 2 % (CdSe). Control: the atoms shifted by half a bond must fail.
  • Profile: passes 20 of 20 (noise-free: the values repeat; byte-identical on the merged code).
  • Cost: 19, 10, 12 and 14 s at 8 threads (reserving 3 or 4 cores).

species_discovery

  • Claim: detect_atoms followed by detect_atomic_species (with a species list, or with the class count free) recovers the elements of simulated Pt, Pt/Ni and Pt/Al particles.
  • Checks: Pt recall 0.98, all species 0.95, the second element 0.89 (aluminium 0.88), at most one false atom, half-map label agreement 0.95; on the pure particle no more weak atoms than the recovery's expected false count. Control: the level-1 (strong) atoms of element=Pt find less than 0.90 of the aluminium, so the recovery is what finds it. The atomic density model on the Pt lattice rendered by the model, uniform width with white noise and rising width with correlated noise, through the notch transfer 1 - 0.6 exp(-200 s^2/4): beta within 0.005 (uniform) and 0.01 (gradient: at its seed the fixture gives 0.006 with the true transfer given), the width rise from 12 to 5 neighbours within 1 A^2, and the transfer detect_atoms measures (_transfer.tsv) within 0.06 (uniform) and 0.10 (gradient) of the notch where the atoms have power, by the floor rule from the profile of 2026-11-02 (20 seeds; the section-12 value 0.05 sat inside both distributions: 10 of 20 gradient runs above it, the uniform worst at 0.0497).
  • Profile (2026-10-18, its gate table identical on the merged code): the second element's recall median 0.977, worst 0.908.
  • Cost: 46 s at 8 threads (reserving 8 cores).

stream_preproc

  • Claim: five simulated movies go through the stream's preprocessing stage, its work done by worker jobs of the local queue, and the defocus, frame drift and image are recovered.
  • Checks: defocus within 0.20 µm, drift within 0.5 px, the integrated micrograph's correlation with the optimal average at least 0.50 and 0.05 above another movie's.
  • Path: the worker jobs finished, each with exit status 0. Control: the farthest other movie's defocus must fail the ceiling.
  • Profile (byte-identical on the merged code): defocus worst 0.134 µm.
  • Cost: 82 s at 8 threads (reserving 2 cores), its jobs one thread each.

stream_chains

  • Claim: the production stage types, chained in one process without the master and submitting their jobs to the local queue, take planted two-state data to two state maps that match the planted states. "sieve to 3D": simulated particles in completed reference-picking sets through p05-p07. "movies to 3D": 40 simulated movies through p01-p07, with real picking and extraction in initial analysis and fixture references for reference picking.
  • Checks: each stage's hand-over (the sieve accepts particles and its intake ends at the finished marker upstream, the pool takes the final set and publishes for 3D, the final publication holds enough particles for 3D, 3D reconstructs its first assignment within the 3 h limit); for the movie chain also every movie preprocessed with its finished marker, an optics map, initial analysis reaching extraction at the input sampling, and reference picking extracting particles. The two maps dock in both hands onto both truths; under the better one-to-one assignment each truth's map correlates at least 0.10 (TRUTH_CORR_MIN, a signal floor).
  • Path: every stage's own folder and jobs; no restart (doc/policies/stream/restart_policy.md). Control: none yet; the one-to-one assignment is the only guard against one map matching both truths.
  • Profile: none. The 0.10 floor predates the floor rule (section 6.2); a 20-seed profile is owed.
  • Cost: 790 s for both chains in the run of doc/implementation_notes/completed/prob_align_batch_pipeline.md; the driver one thread, its worker jobs four threads (reserving 5 cores), deadline 3 h.

flex_pca_blobs

  • Claim: flex_pca separates two blob states at their true poses, in shared memory and with two worker processes; the per-state refinement holds; the state sweep refines every published state as its direct state=X run does and merges them into one project; the class-average state route runs end to end.
  • Checks: label accuracy at least 0.60 (one-to-one mapping) in both modes, the two maps matching the two truths, the per-state refined maps' correlation; the state sweep, hard and weighted: every state of the project in its own directory, each truth-matched child's map within STATE_REFINE_MARGIN of the direct run of its state and mode, the merged parent's labels, its map and FSC entries naming the children's files, its state weight set (weighted), a relative pcg_mskfile resolved against the entry directory in every child, the input project unchanged; the chain from each merged parent (refine3D_local without state=): every rebound reference record valid for the merged parent and its state, the copies of the masks of states 2 and up with their originals' bytes, every state refined, each truth-matched local map within STATE_REFINE_MARGIN of the auto sweep's, the local merged parent's labels and weight set, its source unchanged; the route's contract (projects, hand-back of the states, one map per state). Reported: each sweep and chain child's FSC=0.143 resolution, the truth correlations of a state matched to no truth, the median pose and shift differences of the weighted children on the rows two states share; the class-average route's state accuracy, the number of planted states its maps match, and its poses, on three beta-galactosidase states in exact views.
  • Path: the distributed run's parts ran as worker jobs. Control: shuffled labels fail the floor; the route's accuracy beside its shuffled-label null.
  • Profile (2026-10-19): label accuracy median 0.989, worst 0.907; the class-average route at the chance level (four runs deliver one state, one run's maps match a single planted state), a finding left to the maintainer.
  • Cost: 351 to 354 s at 8 threads (reserving 9 cores), up to 8.7 GiB, run directory up to 5.7 GiB, with the state sweep and its chain (2026-11-28, dell; 229 to 248 s and 3.0 GiB before the sweep).

6.6 Real data: the dataset layer (planned)

Real datasets carry no truth of their own, so a real-data case never judges poses or state labels. By the rulings of 2026-10-18 (recorded in doc/implementation_notes/planned/testing_and_benchmarking_plan.md, section 5), real data joins test=nightly as public datasets with previously solved maps:

  • the data: subsets of public datasets (EMPIAR images whose maps are in EMDB, under a licence that allows a subset to be redistributed), kept as versioned Zenodo records with the subset, the reference map, the case's command lines and a checksum per file, fetched by name into a local cache and checked against the checksums; a missing or corrupt dataset skips its case with a visible status, never a pass;
  • the judgement: the run's map docked in both hands onto the earlier map, their FSC and correlation in a band that stops short of the reference's own resolution, with floors by the floor rule from a 20-seed profile and another dataset's reference as the negative control. The reference is never an input of the run (that would measure reference bias), and it judges the map only: it came from the same images. A multi-state dataset is compared state by state only where per-state maps were deposited, and its labels are never judged;
  • robustness and performance as before: does the workflow complete, does it hold its resolution limit (with cFAR, the conical FSC area ratio, beside the FSC=0.143 resolution; FSC=0.5 is never a gate on a dataset whose FSC runs along 0.5), how long does it take, how much do the results scatter across seeds;
  • the components: the fetch and cache with checksums, a SIMPLE test program that runs each case through the same dispatcher as test=nightly and test=profile, and the same metrics.tsv rows (map-to-reference FSC and correlation as floors, resolution and cFAR as ceilings and floors, wall time and per-stage BENCH times as reports).

The full-size benchmark datasets that are not public (PfCRT, msp1, the beta-galactosidase speed cases) stay as local copies behind a per-machine manifest, for profiles and timings. Open: the design of each case (its starting point, downsampling, number of images and budget, which fixes what it can test in the time it is given), the choice of datasets and their licences, how the fetch is done (a SIMPLE program or a one-time setup step per machine), and whether SIMPLE_data_testing's trimmed datasets and the Zenodo records are the same data. No dataset has been chosen, downloaded or uploaded yet. Until the layer exists, real-data runs stay by hand or in the SIMPLE_data_testing workflow (section 6.4).

7. Why tests are no longer standalone programs

Until September 2026 a test could be a program unit in production/tests, built by a glob into its own executable, installed, and called by name from CI. That route is closed; production/tests and the glob are gone. The reasons, all found in the review:

  • Two routes, drifting apart. 83 standalone programs and 83 simple_test_exec cases covered 130 identities; 36 existed on both routes, and the twins had diverged (cmdline duplicated the command line unit test; imgfile was a subset of test_image).
  • No failure path. 63 identities could not fail. A program that runs to its end reports success whatever it computed, and several printed "PASSED" with no way to fail.
  • Process control in the test. A stop ends the process: one failed check hid every later one, and stop with a message exits with status 0 (openmp_offload had 65 of them).
  • No shared lifecycle. Hand-parsed arguments instead of the UI and parameters, ad hoc working directories, files left behind, unseeded random numbers.
  • One process per test. Nothing could be budgeted or run as a gate; each program needed its own executable, install rule and CI call, and many were never run at all.
  • Dead code kept alive. Production routines survived because a program in the test area called them; the review deleted dozens of routines and modules that nothing else used.

A test procedure in a tester module has none of these problems: it shares the runner, the assertions, the seeding and the report with every other test, and a suite runs many of them in one process. Program units are for production executables.

8. What the refactoring deleted, and why

The review gave every test identity in the inventory a verdict. The retired-tests table of doc/refactoring_notes/completed/test_review_record.md has one row per removed identity (136), with its reason and replacement. Most were not lost: 79 were merged into tester modules with real assertions, 10 were modified or moved, and 47 were deleted or retired outright. The reasons for deletion fall into these groups.

reason tests
printed or plotted results for eyeballing; nothing to assert that other tests do not assert uniform_euler, uniform_rot, order_corr, phasecorr, ptcl_center
benchmarks and timing loops rotate_ref, eval_polarftcc, io, io_parallel, star_export, openacc, openmp, simd
duplicates of a route or of a gate sub-suite starfile, binoris_test, binoris_io_test, imgfile, the standalone mini_stream, gui_assembler, gui_metadata, project_merge, clustering, multinomal_test
runners on user data or downloads that asserted nothing continuous_inplane_rotation2D, continuous_inplane_rotation2D_metadata, nu_filter, create_gain, search_gain_flips, atomfit, eo_diff, opt_lp, cif2mrc, cif2pdb
not needed: a production program runs the same code, or replaces the test nu_envmask (nu_filt3D), phase_rand_fsc (fsc), angres (now the program measure_projspace_angres)
drove code that had no production caller, deleted with it subproject_distr, ptcls_ppca_subproject_distr, socket_client, socket_comm_distr, socket_io, socket_server
broken or empty install (ran an executable that no longer existed), nice (posted to a server that does not exist), stream_initial_analysis (a commander smoke on a missing folder)
tested a hand-written command line instead of the production one abinitio2D_stream

9. Where is my test now?

Look your old test up below. "Deleted" means it was removed without a replacement; the reason is in section 8 and in the inventory. A sub-suite is written as sub-suite (entry).

old test now
abinitio2D_stream deleted; solve2D runs nightly in simulated_workflow_6vxx
angres the program simple_exec prg=measure_projspace_angres nspace=<n> (about 223/sqrt(n) degrees for c1)
ansi_colors string (unit_core)
assign_optics optics assignment (lib_stream)
atomfit deleted, with atoms%fit_bfactors, which nothing called
atoms_stats the high-level entries single_atoms_stats (Pt) and single_atoms_stats_cdsew, _cdsez, _cdser (simple_test_exec test=single_atoms_stats); the nanoparticle atoms sub-suite of lib_single no longer exists
binoris, binoris_io, inside_write binoris (unit_project)
binoris_test, binoris_io_test deleted (empty stubs); see binoris
bounds_from_mask3D, bounds_from_mask3D_test, graphene_mask, mask, msk_routines masks (unit_image)
cartesian_fourier Cartesian Fourier (unit_cart_align3D)
cavg_quality_relations cavg quality relations (unit_numerics)
cavg_registration cavg registration (unit_pftc_align2D3D)
cc_connectivity, image_bin binary image (unit_image)
cif2mrc, cif2pdb deleted; they ran the production programs of the same names
class_sample, class_sample_test class sample I/O (unit_core)
clustering deleted; it called affinity propagation (unit_numerics)
cmdline command line (unit_core)
coarrays the capability-gated platform suite coarrays; the coarray-linked private executable runs two images through initial and final synchronization barriers
continuous_3D_pcg_reconstruction observation noise (unit_reconstruction) and PCG half-set (lib_reconstruction)
continuous_inplane_cc_grad, continuous_inplane_hybrid_grad, continuous_inplane_rotation2D_stage1_validation, continuous_inplane_rotation2D_route_identity continuous in-plane (unit_pftc_align2D3D)
continuous_inplane_refine3D refine3D in-plane state and continuous in-plane (unit_pftc_align2D3D)
continuous_inplane_rotation2D, continuous_inplane_rotation2D_metadata deleted (a shell driver; a post-run scan of a user project)
corrs2weights, corrs2weights_test, rank_weights statistics (unit_numerics)
create_gain, search_gain_flips motion gain (unit_motion)
ctf, ctf_test CTF (unit_image)
detect_atoms, detect_atomic_species, simulate_nanoparticle no test of their own; they run as stages of the high-level single_atoms_stats entries (detect_atoms), detect_atoms and detect_atomic_species in species_discovery, and simulate_nanoparticle also in single_workflow_fcc, single_workflow_alloy and single_workflow_wurtzite
detect_calpha C-alpha finder (unit_single)
detect_calpha_molecules deleted; quantitative synthetic coverage remains in C-alpha finder (unit_single)
diff_map_graphs diffusion-map graphs (unit_numerics); deleted 2026-11-02 with the diffusion-map code
discrete_stack_io, stack_io stack I/O (unit_core)
eigh, eigh_test linear algebra (unit_numerics)
eo_diff, opt_lp deleted (needed refine3D volumes or a download; asserted nothing)
eul_prob_tab2D_io 2D probability table (unit_pftc_align2D3D; the part-file I/O retired 2026-11-05, the selection tests on the pipeline's batch)
extr_frac decay schedules (unit_numerics)
flex_gpu deleted with the flex GPU implementation
flex_pca flex PCA (unit_heterogeneity)
flex_pcg flex PCG operator (unit_heterogeneity), flex PCG operator 64 and flex PCG solve sweep (lib_heterogeneity)
forked_process the platform entry forked_process
ft_expanded shift search (unit_numerics)
gencorrs_fft polar correlation (unit_pftc_align2D3D)
gen_pickrefs picking references (lib_stream)
gui_assembler, gui_metadata GUI assembler, GUI metadata (unit_ui)
imgfile image (unit_image), the SPIDER and MRC round trips
install deleted; the fast gate replaces it
io, io_parallel, star_export deleted (benchmarks); the round trips are in stack I/O (unit_core) and STAR file (unit_project)
kbinterpol_fast Kaiser-Bessel kernel (unit_numerics)
lbfgsb, lbfgsb_cosine optimisers (unit_numerics)
lplims, lpstages, lpstages_test low-pass stages (unit_numerics)
master stream heartbeat (forked_process)
maxnloc, maxnloc_test search, sort, locate (unit_numerics)
mini_stream the high-level entries mini_stream_6vxx and mini_stream_1jxy (simulated micrographs)
mrc2jpeg, mrc_validate mrc2jpeg, mrc validate (unit_image)
multinomal_test, rnd_shuffle random draws (unit_numerics)
nano_mask nano mask (unit_image)
score_volume_shape volume shape (unit_image)
neigh, sym, sym_test symmetry (unit_ori)
nice deleted
nu_envmask, nu_filter deleted; simple_exec prg=nu_filt3D
openacc, openmp, simd deleted (demonstrations and timings)
openmp_offload the platform entry openmp_offload
order_corr deleted; its one check is asserted in orientation collection (unit_ori)
ori, ori_test orientation (unit_ori)
oris, oris_test orientation collection (unit_ori)
otsu, otsu_test, peak_thres_fdr segmentation (unit_image)
pca_all, pca_imgvar PCA (unit_numerics); deleted 2026-11-02 with src/main/pca
pcg_frac_update the library entry pcg_frac_update
rec3D_backends by hand, simple_test_exec test=rec3D_backends
pcg_recon the library entry pcg_recon
pdb2mrc pdb2mrc (lib_single)
phase_rand_fsc deleted; simple_exec prg=fsc
phasecorr, ptcl_center, rotate_ref, uniform_euler, uniform_rot, eval_polarftcc deleted; the image basics ptcl_center touched are in image (unit_image), rotate_ref_8 is in polar correlation (unit_pftc_align2D3D)
phshift_policy, ui_visibility UI visibility (unit_ui)
phshift_star STAR project (unit_project)
pick_extract pick and extract (lib_stream)
pose_cont_refine3D_adapter the adapter is gone (pose_cont refactoring): cart calculator, pose optimizer, pose strategy, pose statistics (unit_cart_align3D), pose 1JYX recovery (lib_cart_align3D) and the workflow entry cont_refine3D_1jxy; the workflow sub-suite went with the removed program
pose_cont_refinement cart calculator and pose optimizer (unit_cart_align3D); the pose refiner was split into them
preproc the high-level workflow entry stream_preproc
project_merge project merge (unit_project)
projdir_accumulator retired with projrec (release 4)
qsys_ctrl, qsys_env qsys control, qsys environment (unit_parallel)
rec3D_backend rec3D backend (unit_reconstruction)
reproject the workflow entry simulate_particles
serialize image serialisation (unit_image)
sieve_cavgs particle sieve (unit_project)
sigma2_state sigma2 state (unit_pftc_align2D3D)
simulate_particles the workflow entry simulate_particles
simulated_workflow the workflow entry simulated_workflow_6vxx (simulated_workflow_1jxy removed 2026-11-17)
single_workflow the workflow entries single_workflow_fcc, single_workflow_alloy, single_workflow_wurtzite
socket_client, socket_comm_distr, socket_io, socket_server deleted with the socket modules; IPC TCP socket (unit_ipc) tests the live transport
sp_project project records (unit_project)
starfile, starfile_test STAR file (unit_project)
stream_initial_analysis deleted
stringmatch string (unit_core)
subproject_distr, ptcls_ppca_subproject_distr deleted with the subproject scheduling code, which had no other caller
trail_rec_blend trailing-reconstruction blend (unit_image)
ui_hash_test UI hash (unit_ui)
units simple_test_exec test=units (all fifteen area suites, not a CTest entry)
the unit_<area> suites unchanged names, CTest label fast