The 2D structure aligned with 3D, and one project owner on the master¶
Refactoring note, 2026-10-20. Completed 2026-10-20 (all items kept; the
record is the "Progress" section, the summary the report
structure2D_and_project_owner_report.md beside this note). The execution
plan of the unattended run structure2D_owner on the Oracle Linux test
machine (the Dell). The design comes from
doc/implementation_notes/planned/speed_architecture_proposals.md
(section 1.3, the row "one project owner on the master"; section 1.4 "The
commanders used as library routines"; section 1.5 "Moved before the
release", the 2D code structure) and from
doc/implementation_notes/completed/identical_speed_run_review.md ("The
master's project handling"). The code facts below were read at 34f314fe5
on 2026-10-20; line numbers are approximate, find the code by name.
Rulings¶
- 2026-10-19: the run takes the 2D structure first, then "one project owner on the master" for 3D and 2D, with no time limit. It starts by checking the last three speed changes on this machine's x86 build.
- 2026-10-20, random generator: each moved body builds its own
paramstoday, andparams%newreseeds the random generator (withSIMPLE_SEEDset, seed = base + 7919 x the number of earlierseed_rndcalls,src/utils/math/simple_rnd.f90) and sets the thread count. No compatibility reseeds are kept: once a body runs on the master's ownparams, the later random draws change. How those steps are judged is in "The tests". - 2026-10-20,
cfarandlp_est: when volume assembly works on the master's own project, the master seescfarandlp_estof the current iteration instead of the previous one. Done as an isolated item after the rest, checked so that onlycfar,lp_estand what reads them differ. The two items that need it (one write per iteration, and removing the last entry point) follow it. - 2026-10-18 (the accepted proposals): the bodies of volume assembly and the
other master steps move out of the commanders. The
simple-refine3dskill's statement that volume assembly is intentionally executed in the commander is superseded; the report proposes the new skill text. - Not in this run: the states' parallel assembly and the NU filter as an
object (left alone, ruling of 2026-10-19), the worker fold, persistent
workers, edits of stream code (
src/main/stream,commanders/stream: Joe's area) and of the GUI (nice/).
What the code is today¶
3D. exec_refine3D (simple_commanders_refine3D.f90) runs the iteration
loop and picks a strategy (create_refine3D_strategy,
simple_refine3D_strategy.f90): distributed when nparts is set and part
is not, shared memory otherwise. The matcher refine3D_exec
(simple_strategy3D_matcher.f90) samples, searches, writes the orientations
and sigma2 rows and writes the partial reconstructions of its particles. The
strategy assembles the volumes and decides convergence (check_conv3D) in
both modes.
2D. exec_refine2D (simple_commanders_refine2D.f90) runs the loop and
picks create_refine2D_strategy (simple_refine2D_strategy.f90) by the same
rule. The matcher refine2D_exec (simple_strategy2D_matcher.f90) samples,
searches and accumulates the class sums; then its
finalize_restoration_and_convergence either writes the part's contribution
(a distributed worker) or, in shared memory, restores the class averages
(cavger_commit_carryover, cavger_restore_cavgs, cavger_gen2Dclassdoc,
write_merged/write_eo), writes the cls2D/cls3D segments, runs
check_conv2D, applies minits, maxits and full-assignment coverage,
prints the verdict and writes the progress file. The distributed master
assembles through the cavgassemble commander
(simple_commanders_mkcavgs.f90, called from
run_distributed_cavg_assembly) and decides convergence in the strategy.
refine2D_exec is called by the shared-memory strategy and the worker
commander only. The stream's 2D pool always runs distributed
(prg=refine2D_distr, its workers prg=refine2D), never the shared-memory
branch.
The master's project in distributed refine3D. The strategy calls typed
entry points added to commanders: commander_prob_align%execute_from_project
(and the neighbourhood variant), commander_volassemble%execute_hand_on and
commander_commit_sigma2%execute_from_project. Their bodies
(run_prob_align and run_prob_align_neigh in simple_commanders_prob.f90,
about 90 lines each; run_volassemble in
simple_commanders_rec_distr.f90, about 530 lines, beside
restore_state_from_parts and filter_pcg_nonuniform_maps;
run_commit_sigma2 in simple_commanders_euclid.f90, about 100 lines) each
build their own params and toolboxes from a command line and a copy of the
master's project. A kept reprojection builder (refbuild,
materialize_reprojection_model_kept) rereads the project and remakes
volumes by hand every iteration. Per iteration (gridding, prob, Euclidean
objective): two full project reads, four copies in memory, four writes of the
particle segment plus the out segment. The 2D master does the same through
execute(cline) of prob_align2D, cavgassemble (which writes the whole
project) and the sigma commit: three full reads, two segment rereads, one
full write and four segment writes per iteration.
Other callers. Volume assembly is also reached through
simple_rec3D_service%assemble_gridding (reconstruct3D, FLEX, the final
reconstruction, the solve3D add-on); the sigma commit through the solve3D
deferred commit and both 2D strategies; all of them through the private exec
programs. These keep working through the commanders' execute(cline).
Side effects of params%new in each body (simple_parameters_phases.f90):
the reseed above, and omp_set_num_threads(nthr) with nthr_glob. A body
that runs on the master's params must set the thread count it needs itself
and the master must restore its own count after the call.
The target¶
- 2D like 3D. The 2D matcher searches, accumulates the class sums and
writes orientations and sigma2 rows; a distributed worker also writes its
contribution. Restoration of the class averages in shared memory and the
convergence decision in both modes are strategy routines.
refine2Dis a public program, asrefine3Dis. - One project owner. The bodies of
prob_align,prob_align_neigh, volume assembly, the sigma commit,prob_align2Dand class-average assembly become strategy (or domain) routines that take the master's(params, build)and explicit arguments for what differs today through the command line (threads,which_iter,update_frac,combine_eo, state), asexecute_rec3D_pcg_distributed_master(params, build, ...)already does. Each commander'sexecute(cline)builds itsparamsand builder and calls the same routine. The distributed master materialises its reprojection model on its own builder (the kept builder goes), reads only what the workers write, and writes the project once per iteration, at the end of the iteration, so the file always holds a complete iteration (the stream pool's hard stop and stage p07'ssolve3Drely on that). The typed entry points and the builder'sspproj_srcoption are deleted.
The items¶
Phase 1: the 2D structure aligned with 3D¶
- Restoration and convergence out of the 2D matcher. The matcher keeps
everything through the orientation writes, the worker's
cavger_write_contributionandcavger_kill, andqsys_declare_part_finished; in shared memory it returns with the sums in the class averager. New strategy routines: the shared-memory restoration (the matcher's present restoration lines, unchanged in order) and one convergence routine both modes call (check_conv2D,minits,maxits, coverage, the verdict, the progress file). The matcher'sconvergedargument and the deadrefine2D_ctrl%displaygo. Keep the order that makes results identical: - convergence runs before the shared-memory strategy restores
update_frac(check_conv2Dreadsparams%l_update_frac); - the carry-over flag (
l_frac) is returned by the matcher (it is computed inside the matcher's set-up, and the shared-memory strategy may switch fractional update off before the matcher runs); - convergence runs after
cavger_gen2Dclassdoc, which writes each particle'sresthatcheck_conv2Daverages; check_conv2Dchangesparams%trsandl_doshift: shared memory applies them in the next iteration, distributed through the job description from iteration 4; keep both;- a fresh convergence object per iteration in shared memory, as today;
cavger_newstays in the matcher (reference preparation needs it);- shared memory is not routed through part files and
cavgassemble: its particle field on disk is stale during the run. refine2Dpublic. Anew_refine2Ddescriptor insimple_ui_refine2D.f90(categoryrefine2d, the visibilityrefine3Dhas, required keys onlyprojfileandmskdiam, since the private command of the same name is checked against the public required keys);case('refine2D')insimple_exec_refine2D.f90routed tocommander_refine2D; the privaterefine2Dstays the worker (the memory estimator keys on it);scripts/default_audit.pytracesset_refine2d_defaults; a registration check insimple_ui_visibility_tester.f90; the UI JSON validator passes. The GUI accepts class selection only fromsolve2D(nice/): report it, do not edit.solve2D_policy.mddescribes the new ownership (matcher, strategy, public program).
Phase 2: the bodies out of the commanders (3D, pure moves)¶
- Volume assembly (
run_volassemble,restore_state_from_parts,filter_pcg_nonuniform_maps) moves into a new strategy module,simple_volassemble_strategy.f90, besidesimple_rec3D_pcg_strategy.f90. The commander keeps buildingparamsand the builder and calls it; the strategy modules stop importing the commander module. Identical. prob_align,prob_align_neighand the sigma commit move the same way: the two alignment bodies into a newsimple_prob_align_strategy.f90, the commit intosimple_strategy_sigma2.f90. Identical.- Volume names as outputs. Assembly returns the names of the volumes it
wrote instead of writing
params%vols,vols_even,vols_odd, so that a caller'sparamsnever points at a state left without a map. Identical.
Phase 3: the 3D master owns its project¶
- The master's own builder replaces the kept builder. Build the general
and 3D search toolboxes once on
build; each iteration remake the volumes (a builder method, not hand-written in the strategy), rebuild the search toolbox, set the band and materialise the model onbuild, as the shared-memory path does. The full read after the model becomes a read of the particle segment while assembly still writes the file. Checkprojinfoandoutin the dumps. prob_alignandprob_align_neighon the master's builder. Sampling happens in place; the body sets the thread count it needs (the workers'nthr, as its command line said) and the master restores its own after. No reseed (ruling): later draws change.- The sigma commit on the master's builder, with explicit
which_iterand thread count, the same way. - The two
execute_from_projectentry points go. The distributed strategy calls the bodies directly since items 8 and 9; shared memory stays on the commanders'execute(cline). Identical to item 9's build.
Phase 4: the 2D master owns its project¶
prob_align2D, class-average assembly and the sigma commit for 2D, in two steps:- Pure move (identity): the bodies of
exec_prob_align2Dandexec_cavgassemblebecome strategy routines (insimple_prob_align_strategy.f90andsimple_cavgassemble_strategy.f90) that the commanders'execute(cline)call; the 2D strategy still calls the commanders. Identical to the Phase 3 build. - On the master's project (check build): the 2D strategy calls the
routines with its own
(params, build). Class-average assembly writes only what it changes (cls2D,cls3D,outand the particle field) at the end of the iteration, not the whole project. The master's owncls2D,outandjobprocstay current in memory; its reread of the particle segment goes. Keep the 2Dupdate_fracof the distributed master'sparamsunchanged and passwhich_iteras the commit needs it (sigma2_commit_iter). Themake_cavgscallers keep working through the commander.
- Pure move (identity): the bodies of
Phase 5: assembly on the master's project, one write per iteration¶
- Volume assembly on the master's builder (ruling: isolated). The low-pass
refresh reads memory;
cfarandlp_estreach the convergence log, itsLP_ESTIMATEDstatistic and the final project one iteration earlier. Judged against the Phase 4 build: onlycfar,lp_estand what reads them may differ. Any other difference: restore the item, record why, go on. - One write per iteration. A variant of
merge_algndocsthat merges into the master's field without writing; assembly and the PCG master stop writing the project; the segment rereads go. The master writes the particle segment once before the workers start (after the model and the sampling) and the iteration's results once at its end, plusout; the final full write as now. The distributed polish pass (pose_cont=yes) reproduces its sample from the project the merge wrote, so the merged particle segment is written before the polish pass starts. Identical to item 12's build, unless the Nyquist clamp ofresin assembly ever binds (check: the clamp againstrefresh_resolution_fields_from_fsc). execute_hand_onand the builder'sspproj_srcoption go; the commanders'execute(cline)are thin wrappers.
Phase 6: final checks, documents and close¶
- The truth suite on the final build.
simple_test_exec test=nightlyon the base build and on the final build. Every entry that passes on the base passes on the final build; entries that already fail on the base are recorded as such. The workflow entries judge what identity cannot (the changed random draws of Phases 3 to 5). - Documents.
refine3D_policy.md(the master's project, the bodies as strategy routines),solve2D_policy.md, the multi-state memory policy if the assembly's ownership text changes,speed_architecture_proposals.md(status), this note's progress, and the report beside the completed note, ending with a commit message.
The tests¶
Identity (one thread, fixed seed SIMPLE_SEED, each case in one fixed
directory, outputs moved aside after each run, every regular file compared
except exclusions declared in Phase 0 with reasons, project files compared
through print_project_field dumps of ptcl2D, ptcl3D, cls2D, cls3D and out,
table part files through lossless decoders of their layouts). The
determinism of every case is shown in Phase 0 by two runs on the base build.
The run test_truth_sync left identity scripts and decoders on this machine
in ~/agent_runs/test_truth_sync/scratch/logs/identity/ (read, copy, never
write); the Mac runs' decoders know the newer 2D layouts (format words -4 and
-5) and are not on this machine: teach the copied decoder those layouts.
Cases (all made on the base build; the 3D cases read one fixture, the SW1 directory of the base build, in every build):
| case | what it covers |
|---|---|
| SW1, SW6 | simulated_workflow_1jxy (with its two-part step) and _6vxx, including shared-memory solve2D |
| MSI | three-state distributed refine3D, dense then neighbourhood table, box_crop=128 so that the reconstruction's cropped records run; it starts from E2's 1,500 simulated particles with their simulated poses, because on x86 the fixture's 82 particles leave one state with a single particle after the first step and the second step refuses to start (Phase 0) |
| CCI | correlation objective, fractional update, trailing reconstruction (box_crop=128) |
| PCI | the PCG backend with the nonuniform filter (box_crop=128) |
| NU3D | nu_filt3D and postprocess_nu on the fixture's final half maps |
| SIG | distributed refine3D refine=sigma from the fixture |
| REC | distributed reconstruct3D from the fixture |
| MKC | distributed make_cavgs |
| E2 | solve2D with two parts on about 1,500 particles simulated from the fixture's truth map, all six stages (snhc_smpl, sparse prob_snhc, dense prob), cropping |
| E2S | E2's command line in shared memory |
| R2, R2S | refine2D refine=prob for two iterations from E2's final project, two parts and in shared memory |
| R2F | R2S with update_frac=0.5 and fillin=yes, continuing from E2's last stage (startit=2 with its carried class sums, cavg_state.bin), so that both iterations blend carry-over; a fresh start never blends carry-over (Phase 0) |
| R2FD | R2F with two parts (distributed carry-over) |
| R2P | R2 through the public simple_exec prg=refine2D (from Phase 1 on; mkdir=yes puts the outputs in a subdirectory); its exclusions (the files that record the command line or the program name) are declared in Phase 0 by reason |
| CRD | distributed refine3D with the polish pass (pose_cont=yes) from the fixture, two parts: the polish pass reproduces its sample from the project the merge wrote |
| FLX | the weighted (state weight set) branch of volume assembly: the existing high-level test that reaches it (find it among the FLEX tests of simple_test_exec), compared by its check values |
| AD1, CR1 | solve3D_addon and cont_refine3D_1jxy at one thread, compared by their check values |
MKC runs distributed make_cavgs (two parts) on E2's final project. The
command lines of SW1, MSI, CCI, PCI and NU3D are in
doc/implementation_notes/completed/identical_speed_run.md ("The identity
test"), with box_crop=128 added to MSI, CCI and PCI (MSI's second step takes
the first step's recvol_state0N.mrc maps); E2, E2S and R2 are described in
doc/implementation_notes/completed/speed2d3d_run.md. Each 2D case should
take at most about ten minutes at one thread.
Judging each item.
- Items that keep the random draws (Phases 1 and 2, items 6, 7, 10, 13, 14,
and the pure-move step of item 11): byte-identical to the previous item's
build on every case the item can reach.
- Items whose code runs a body on the master's params (8, 9, the second
step of 11, and 12), so that the draws change by ruling: judge them on a
check build: a copy of the working tree with the item applied plus a
scratch-only patch that calls seed_rnd exactly where each params%new the
item removed called it (the same calls, in the same order, together with the
earlier seed items' patches). The check build must be byte-identical to the
previous item's check build (or, for the first seed item, to its delivered
build) on every case the item reaches; for item 12, apart from cfar,
lp_est and what reads them (both are read only for reports). The patches
never enter the repository; keep them in scratch/keep/seed_patches/ and
list them in the report. The delivered build then runs every case once to
the end with finite results, and Phase 6 runs the truth suite.
- Items that build on others: 8 needs 7; 9 and 10 need 8; 12 needs 7 and 9;
13 and 14 need 12. If an item is not kept, skip the items that need it and
record why; the rest goes on.
- After every item: its Debug build and the fast gate, the unit suites of the
area (unit_pftc_align2D3D, unit_reconstruction, the class and stream
unit suites such as "pool 2D", "pool 2D object" and "class-average
carry-over"), the identity cases it reaches; scripts/check_test_registry.py
when tests or the test interface change. At the end of every phase: SW6,
the full ./compile_debug.sh on an idle machine, mini_stream_* and
lib_stream CTest entries (the stream pool runs distributed refine2D),
one multi-threaded E2S at 24 threads, MSI with two parts of 12 threads, and
from Phase 4 on E2 with two parts of 12 threads (each to the end, finite).
AD1 and CR1 at the end of Phases 1, 3 and 5.
Parallel code. No item adds a parallel region by design. If one does: no string temporaries or module-buffer calls inside it, work arrays sized by the team, errors raised after it, and a tester check at 24 threads repeated 20 times (the reason: commit 43de9b340).
The x86 check of the speed changes (Phase 0)¶
The last three speed commits were shown byte-identical on the maintainer's Mac (ARM) only. On this machine, at one thread, each against its parent:
| commit | parent | what must hold |
|---|---|---|
aea5b1846 (finishing fixes, 2D speed) |
508d99066 |
SW1, MSI, CCI, PCI, E2, E2S, R2 byte-identical; the 3D dense part files through the decoders of both layouts |
af13bc828 (3D reconstruction from the search's cropped records; cropped 2D class sums) |
aea5b1846 |
MSI, CCI, PCI byte-identical (they run no 2D step; the 2D class sums change results by design) |
f078cf683 (2D tables, 3D table, NU label optimisation, 2D look and feel; the 2D table on the cropped image) |
0c9542e50 |
MSI, CCI, PCI, NU3D byte-identical; E2, E2S and R2 with cache=no on f078cf683 byte-identical to the same cases with cache=yes on 0c9542e50 (apart from the cache files and the files that record the command line); the 2D part files through decoders of both layouts |
Build each commit from an export (git archive <commit> | tar -x -C <dir>
under scratch); never move the repository's HEAD. Make each pair's inputs
(the fixture and E2's particle set and final project) with the pair's parent
build, so that no build reads a project written by a newer one. A difference is recorded
with the item of the speed run it belongs to and, if it is a defect, fixed in
Phase 0 as an item of its own; if it cannot be fixed identically, stop.
Common rules¶
- The base is the HEAD the copy started from (
34f314fe5or later) with the maintainer's uncommitted edits the copy carried. - Release builds out of tree under
scratch/keep/build_*withBUILD_TESTS=ON; the Debug build of./compile_debug.shfor the fast gate.SIMPLE_PATHandPATHset to the build in use in every run. After adding a source file, configure again (the source globs have noCONFIGURE_DEPENDS). - Fortran as CLAUDE.md, the simple-modern-fortran skill and the compile-time
policy say:
use ..., only:, large types allocatable as components,new/killsymmetry, noflag .and. allocatable_array(i)on one line, no goto, THROW macros never continued with//&, no integer-overflow tricks, dead code deleted, short comments without history. - Release 4 keeps no backwards compatibility except for reading
.simpleprojects of earlier releases. - Fix as you go: a defect found during the work is fixed in the phase that finds it, as an item of its own (add its file to the table first). A design question only the maintainer can answer is written up and the run goes on, unless it blocks the phase.
- Documents and the report are plain and self-contained: short sentences, terms defined, items named by what they do, the learning first.
Phases¶
Phase 0: base, cases and the x86 check. Find how SIMPLE builds on this
machine; build the base (Release and Debug, fast gate) and the five commits of
the x86 check. Make the fixture (SW1 on the base build) and the E2 particle
set; run every case of "The tests" twice on the base build (AD1, CR1 and FLX
once); declare the exclusions from the pairs, and, by reason, the files the
R2P comparison and the x86 check's cache=no against cache=yes
comparisons may skip (files that record the command line or the program
name; the cache files). Run the x86 check. Exit: every case deterministic at
one thread under the exclusions; the 2D cases crop and reach their table
paths; MSI, CCI and PCI report the cropped records (particle buffer +:
cropped records in their refine3D reports); CRD runs its polish pass with
two parts; the x86 check's verdict recorded per commit.
Phase 1 (items 1-3), Phase 2 (items 4-6), Phase 3 (items 7-10), Phase 4 (item 11), Phase 5 (items 12-14): exit of each, every kept item judged as "The tests" says, its evidence in the progress section; items not kept recorded with the cause; the phase-end runs done.
Phase 6 (items 15-16): the truth suite on the base and final builds, the
documents, the report, the note moved to completed/.
File table¶
| file | why | phase |
|---|---|---|
doc/refactoring_notes/planned/structure2D_and_project_owner.md |
this plan and its progress | each |
src/main/strategies/search/simple_strategy2D_matcher.f90 |
items 1, 11 | 1 4 |
src/main/strategies/parallelization/simple_refine2D_strategy.f90 |
items 1, 11 | 1 4 |
src/main/commanders/simple/simple_commanders_refine2D.f90 |
items 1, 2 | 1 |
src/defs/simple_default_clines.f90 |
item 2, if the defaults audit needs it | 1 |
src/main/simple_convergence.f90 |
items 1, 12 | 1 5 |
src/main/ui/simple/simple_ui_refine2D.f90, src/main/ui/simple_ui_visibility_tester.f90, src/main/exec/simple_exec_refine2D.f90, scripts/default_audit.py |
item 2 | 1 |
src/main/commanders/simple/simple_commanders_rec_distr.f90 |
items 4, 6, 12, 14 | 2 5 |
src/main/commanders/simple/simple_commanders_prob.f90 |
the Phase 0 fix of the 2D sampler (its comment), items 5, 8, 10, 11 | 0 2 3 4 |
src/main/commanders/simple/simple_commanders_euclid.f90 |
items 5, 9, 10, 11, 14 | 2 3 4 5 |
src/main/commanders/simple/simple_commanders_mkcavgs.f90 |
item 11 | 4 |
src/main/strategies/parallelization/simple_refine3D_strategy.f90 |
items 4-10, 12-14 | 2 3 5 |
src/main/strategies/parallelization/simple_rec3D_service.f90, simple_rec3D_pcg_strategy.f90, simple_make_cavgs_strategy.f90 |
items 4, 6, 11, 13 | 2 4 5 |
src/main/strategies/parallelization/simple_strategy_sigma2.f90 |
items 5, 9, 11 | 2 3 4 |
src/main/strategies/parallelization/simple_volassemble_strategy.f90 (new) |
items 4, 6, 12-14 | 2 3 5 |
src/main/strategies/parallelization/simple_prob_align_strategy.f90 (new) |
items 5, 8, 10, 11 | 2 3 4 |
src/main/strategies/parallelization/simple_cavgassemble_strategy.f90 (new) |
item 11 | 4 |
src/main/strategies/search/simple_matcher_smpl_and_lplims.f90 |
the Phase 0 fix: a fresh 2D start with fillin=yes samples by update count |
0 |
src/main/image/simple_accum_blend_tester.f90 |
item 4 (its comments name the module that holds blend_trailing_accumulators) |
2 |
doc/policies/NU/nonuniform_filtering_policy.md, doc/policies/3D/solve3D_addon_policy.md |
item 16 (they name the volume-assembly commander as the owner of the moved code) | 6 |
src/main/strategies/search/simple_matcher_refvol_utils.f90 |
item 7 | 3 |
src/main/simple_builder.f90 |
items 7, 14 | 3 5 |
src/main/project/simple_sp_project_core.f90, src/main/project/simple_sp_project.f90 |
items 11, 13 | 4 5 |
doc/policies/2D/solve2D_policy.md |
items 3, 16 | 1 6 |
doc/policies/3D/refine3D_policy.md, doc/policies/3D/separate_alignment_and_reconstruction_for_multistate_peak_mem_reduction.md, doc/policies/3D/reconstruct3D_pcg_policy.md |
item 16 | 6 |
doc/implementation_notes/planned/speed_architecture_proposals.md |
item 16 | 6 |
doc/refactoring_notes/completed/structure2D_and_project_owner.md, doc/refactoring_notes/completed/structure2D_and_project_owner_report.md |
item 16: this note moved to completed/ at the close, and the report |
6 |
Progress¶
Phase 0, 2026-10-20: base, cases and the x86 check¶
Verdict of the x86 check: all three speed commits are byte-identical to their parents on this machine's x86 build. One defect was found and fixed (the 2D sampler below); two cases had to be defined differently from the Mac's (MSI and R2F, in the table of "The tests").
Files changed: this plan;
src/main/strategies/search/simple_matcher_smpl_and_lplims.f90 and
src/main/commanders/simple/simple_commanders_prob.f90 (the sampler fix and
a comment that described the sampler wrongly). The run directory below is
~/agent_runs/structure2D_owner (R); scripts, decoders and logs are in
R/scratch, the builds, inputs and case trees in R/scratch/keep, the
journal in R/state/journal_phase_0.md.
- How SIMPLE builds here. GCC 15.2 (
gfortranfromgcc-toolset-15, first onPATH), CMake 3.26, OpenMP,USE_ARCHOPT=ON, no modules; the gate's Python scripts need Python 3.12 first onPATH(R/scratch/pybin). Release builds withBUILD_TESTS=ONout of tree (R/scratch/build_release.sh), about 1.5 minutes each at 24 jobs. The base isabeeebfbawith no uncommitted edits. Builds kept:keep/build_base(the base) andkeep/build_p0(the base with the sampler fix: the build later phases compare with). The Debug build of./compile_debug.shpassed the fast gate, 15 of 15, before and after the fix (logs/compile_debug_base.log,logs/compile_debug_p0.log; 107 s, over the 60 s budget only because cases were running). - The cases.
R/scratch/run_case.shruns each case at one thread withSIMPLE_SEED=20261019in its fixed directorykeep/idcase/<case>/runand moves the outputs toout_<tag>; projects are dumped withprint_project_field;R/scratch/compare_case.shcompares two output trees. The inputs, all made once on the base build and never rerun: the fixture (keep/idcase/fixture_base, SW1); E2's particle set (e2data_base: 1,500 particles simulated from the fixture's 1JXY map, box 192, 1.3 A, SNR 0.1, shift error 3 pixels, defocus 2 +- 0.5 um, astigmatism 0.1, imported with only their CTF parameters); R2's start project (r2data_base: E2's command line run once); MSI's start project (msidata_base: the same particles imported with their simulated poses). The 3D cases withbox_crop=128; R2P is defined but runs from Phase 1 on (compare_r2p.sh). - Determinism. Every case ran twice on the base with no difference
under the exclusions (files compared): SW1 641, SW6 581, MSI 226, CCI 50,
PCI 53, NU3D 19, SIG 27, REC 29, CRD 51, MKC 19, E2 147, E2S 146, R2 32,
R2S 30, R2F 30, R2FD 32. Run once: AD1 passes its 46 checks, CR1 its 60,
FLX (
flex_pca_blobs, the test that reaches the weighted state branch of volume assembly through its per-staterefine3D_autoruns) its 95 rows ofmetrics.tsv. Logs:logs/chain_<case>_base.log. - What the cases reach. E2 and E2S crop 192 to 88 and run stages 1-2
with
snhc_smpl, 3-5 with the sparseprob_snhctable and 6 with the denseprobtable; R2 keeps the dense 2D part files (format word -5). MSI, CCI and PCI reportcropped recordsin their refine3D reports. CRD runs the polish pass (continuous pose work) after each discrete pass, both with two parts. MSI's three states hold 448 to 554 particles. - The exclusions (declared here, frozen from now on): project files are
compared through their dumps; logs and
BENCH/reports (timings); job recordsEXIT_CODE_JOB_*; particle previews named by process id;metadata.jsonwithout its time and process-id fields; PDF dates and document ids; the PCG diagnostics' timing lines;solve3D_manifest.txtwithout run id and checksum; table part files through lossless decoders (R/scratch/decode/decode_tab.f90reads all five layouts of the dense and 2D part files,decode_neigh.f90the neighbourhood files; between two layouts only the fields both hold are compared). New on x86: ametadata.jsonis skipped where two processes published particle previews in its directory: in SW1's extraction step the master and its worker both write the graphical interface's metadata at the same moment and the last write wins (seen once in the x86 check; a race in the interface's metadata writer,src/utils/gui, reported for the maintainer). Thecache=noagainstcache=yescomparison and the R2P comparison needed no file excluded: no output records the command line or the program name, and the cache files are gone at the end of a run (R/scratch/exclusions.tsv). - The x86 check (each pair's inputs made on the parent build):
aea5b1846against508d99066: SW1 642, MSI 226, CCI 50, PCI 53, E2 147, E2S 146, R2 32 identical, the 3D dense part files compared across their two layouts (format word -2 against -3 with its active-state list).af13bc828againstaea5b1846: MSI, CCI, PCI identical.f078cf683withcache=noagainst0c9542e50withcache=yes(in the same directory): MSI, CCI, PCI, NU3D, E2, E2S and R2 identical, R2's part files compared across the old candidate stream and the dense format -5; an extra one-iterationprob_snhcrun with two parts (the sparse part filessolve2Ddeletes) identical across the old stream and format -4, chunks and candidate counts included. Logs:logs/chain_<case>_x1|x2|x3.log. - Fixed: a fresh 2D start with
fillin=yesnever ended. Withstartit=1the 2D sampler keeps the subset it drew first (the sticky stage ofsolve2D's stage 1), whilefillin=yesmakesrefine2Diterate until every particle has been assigned: half the particles were never sampled, and R2F as first written ran past 145 iterations.solve2Dnever combines the two. Now a fresh start withfillinsamples by update count, as later stages do. Nothing that ended before changes: the fixed build is byte-identical to the base on SW1, SW6, E2, E2S, R2, R2S, R2F, R2FD and MKC (logs/chain_<case>_p0.log), and the fresh-start form (case R2F1) now ends after two iterations with every particle assigned. - MSI and R2F redefined. MSI from the fixture fails on x86 (a state
keeps one particle after the first step; the second step needs six), so
it starts from E2's particles with their simulated poses, as
identical_speed_run.mdforesaw for a thin state. R2F as written never blended carry-over (blending needs a run that continues,startitabove 1) and hit the defect above; it now continues from E2's last stage with its carried class sums. - Cost at one thread on a loaded machine (wall time, peak memory of the master): SW1 24 min, 1.9 GB; SW6 28 min, 2.0 GB; MSI about 10 min; PCI 56 s; CRD 46 s; CCI, NU3D, SIG, REC under 15 s; E2 1.3 min; E2S 2.5 min; R2, R2F, R2FD under 20 s; R2S 33 s; AD1 25 min, 1.0 GB; CR1 34 min, 8.5 GB; FLX 22 min, 7.2 GB.
- References for Phase 1. The case trees were moved under
keep/idcase(the oldscratch/idcaseis a link to it, so that the inputs' absolute paths still resolve), and every case ran once more there onbuild_p0(tagp0): the trees Phase 1's first item is compared with.
Exit items: every case deterministic at one thread under the exclusions (above); the 2D cases crop and reach their table paths; MSI, CCI and PCI report the cropped records; CRD runs its polish pass with two parts; the x86 check's verdict is recorded per commit (identical, all three).
Phase 1, 2026-10-20: the 2D structure aligned with 3D¶
All three items kept; every case they reach is byte-identical to the build
before. Files changed: simple_strategy2D_matcher.f90,
simple_refine2D_strategy.f90, simple_commanders_refine2D.f90 (item 1);
simple_ui_refine2D.f90, simple_exec_refine2D.f90,
simple_ui_visibility_tester.f90, scripts/default_audit.py (item 2);
doc/policies/2D/solve2D_policy.md (item 3); this plan. Builds
R/scratch/keep/build_i1 and build_i2; logs in R/scratch/logs,
journal R/state/journal_phase_1.md.
- Restoration and convergence out of the 2D matcher. The matcher
(
refine2D_exec) now samples, searches, accumulates the class sums and writes the orientations and sigma2 rows; a distributed worker also writes its class-sum contribution; in shared memory it returns with the sums in the class averager and hands back whether the iteration blends carried sums. Itsconvergedargument and the unusedrefine2D_ctrl%displayare gone. Two new routines in the strategy:restore_cavgs_inmem(the matcher's former restoration lines, in their order) andcheck_refine2D_convergence, which both modes call (check_conv2D,minits,maxits, full-assignment coverage, the verdict, the progress file). Shared memory runs matcher, restoration, convergence (with a fresh convergence object per iteration, as before), then restoresupdate_frac; the distributed master keeps its shift-search activation after the routine. The restoration now runs after the matcher has freed its polar transforms and sigma object and written its benchmark report; the restoration code reads neither. Identity against Phase 0's build: SW1 641 files, SW6 581, E2 147, E2S 146, R2 32, R2S 30, R2F 30, R2FD 32, R2F1 30, MKC 19, all identical (logs/chain_<case>_i1.log). refine2Dpublic.simple_exec prg=refine2Druns in shared memory or, withnparts, as the distributed master; its descriptor (category "Refine 2D Workflows", the visibilityrefine3Dhas) requires onlyprojfileandmskdiam, because the private worker of the same name is checked against the public required keys. The workers stay onsimple_private_exec(the queue picks the executable, not the program name), and the memory estimator still keys on the worker's name. The defaults audit tracesset_refine2D_defaults, so the descriptor showsmaxits30,cls_initptcl,refinesnhc_smpl. The UI JSON validator passes;unit_uichecks the category, the executable and the two required keys (894 assertions). Side effect: a command line withprg=refine2Drun in-process now honoursmkdirand project discovery;solve2Dandrefine2D_nanoalready setmkdir=noand the project. Identity against item 1's build: the same cases, all identical. R2P (the public route with two parts) equals R2 on 33 compared items once the execution directory is mapped in both of its forms: absolute, and relative to the project root as the star files write it (1_refine2D/where R2 writesrun/); its case-root project is the input, whichmkdir=yesleaves untouched. No file excluded.solve2D_policy.mddescribes the public program, the matcher's and the strategy's new shares, and the sampler change of Phase 0.- Checks after each item: the Debug build with the fast gate, 15 of 15
(
unit_pftc_align2D3D,unit_reconstruction, andunit_streamwith the "pool 2D", "pool 2D object" and "class-average carry-over" suites are in the gate). -
Phase-end runs on item 2's build: SW6 identical (above);
lib_stream,mini_stream_6vxxandmini_stream_1jxypass on the Debug build (logs/ctest_stream_p1.log); E2S at 24 threads and MSI with two parts of 12 threads run to the end with no NaN or infinity (logs/mt_i2.log); AD1 and CR1 pass withmetrics.tsvidentical to the base's; the full./compile_debug.shon the idle machine passes, its gate 15 of 15 in 16 s, within the 60 s budget (logs/compile_debug_p1_final.log). Exit: every item kept and judged by identity, its evidence above; the phase-end runs done. -
For the report (not edited here): the graphical interface accepts a class selection only from
solve2D(nice/nice_lite/views/job_builder_views.py), sorefine2Dresults cannot be selected there yet;doc/user_guide/user_guide.mddoes not listrefine2D.
Phase 2, 2026-10-20: the 3D bodies out of the commanders (pure moves)¶
All three items kept; every case they reach is byte-identical to the build
before. Files changed: the new
src/main/strategies/parallelization/simple_volassemble_strategy.f90 and
simple_prob_align_strategy.f90; simple_commanders_rec_distr.f90,
simple_commanders_prob.f90, simple_commanders_euclid.f90,
simple_strategy_sigma2.f90, simple_refine3D_strategy.f90,
simple_rec3D_service.f90, src/main/image/simple_accum_blend_tester.f90
(comments only); this plan. Builds R/scratch/keep/build_i4, build_i5,
build_i6; journal R/state/journal_phase_2.md.
- Volume assembly moved. The routine that assembles the state volumes
from the workers' partial reconstructions (
run_volassemble, withrestore_state_from_parts,filter_pcg_nonuniform_mapsand their types and constants) is now insimple_volassemble_strategy.f90, unchanged. It still builds its own parameters and builder from its command line; the commander keeps its type withexecuteandexecute_hand_onas one-line wrappers. Decision: the plan asks both that the commander keep building the parameters and that the strategy modules stop importing the commander; the refine3D strategy and the reconstruction service build nothing themselves, so the command-line entry moved with the body and both now call it from the strategy module. Running the body on a caller's own parameters and builder is the work of Phase 5. Identity against Phase 0's build (logs/chain_<case>_i4.log): SW1 641 files, SW6 581, MSI 226, CCI 50, PCI 53, CRD 51, REC 29, SIG 27, NU3D 19. - Probability alignment and the sigma commit moved. The dense and
neighbourhood alignment bodies (
run_prob_align,run_prob_align_neigh, with their output cleanup and benchmark writer) are insimple_prob_align_strategy.f90; the sigma commit (run_commit_sigma2) is insimple_strategy_sigma2.f90. Decision: in shared memory the alignment fills its table through the table commander, which lives in the module that calls the bodies, so importing it would be circular; the bodies take the table commander as an optional argument of the abstract commander type, which the alignment commanders pass and the distributed master, which always schedules parts, does not need. The strategies still call the commanders' entry points; Phase 3 replaces them. Identity against item 4's build: the 3D cases above and E2 147, E2S 146, R2 32, R2S 30, R2F 30, R2FD 32, R2F1 30, MKC 19 (the sigma commit is in every Euclidean run). - Volume names as outputs. Assembly returns the names of the volumes
each state ends with (restored, or carried forward from disk) in optional
outputs instead of writing
params%vols,vols_evenandvols_odd, so that a caller's parameters never name a state left without a map; nothing read those fields after assembly wrote them. Identity against item 5's build: the 3D cases, E2 and R2. - FLX is not deterministic. FLX (
flex_pca_blobs, the weighted branch of volume assembly) runs its per-state refinements at two threads whatevernthris, so its check values vary from run to run: two runs on item 4's build differ in 12 of its 95 rows, as the base run differs from item 2's build. Phase 0 ran it once and could not see this. It is judged by its check values passing their floors: no failure on the base, item 2, item 4 (twice) or item 6. - Checks after each item: the Debug build with the fast gate, 15 of 15
for items 4, 5 and 6 (
logs/compile_debug_i4.logto_i6.log, built in each item's snapshot). - Phase-end runs on item 6's build: SW6 identical (above); E2S at 24
threads and MSI with two parts of 12 threads ran to the end with no NaN
or infinity, the master reporting 12 threads (
logs/mt_i6.log); the full./compile_debug.shon the idle machine passes, gate 15 of 15 in 15 s (logs/compile_debug_p2_final.log);lib_streamand the twomini_streamentries pass (logs/ctest_stream_p2.log).
Exit: every item kept and judged by identity, its evidence above; the phase-end runs done.
Phase 3, 2026-10-20: the 3D master owns its project¶
All four items kept. Files changed: simple_refine3D_strategy.f90,
simple_builder.f90, simple_prob_align_strategy.f90,
simple_strategy_sigma2.f90, simple_commanders_prob.f90,
simple_commanders_euclid.f90; this plan. Builds
R/scratch/keep/build_i7 to build_i10 (items as delivered) and
build_c8, build_c9 (check builds); the seed patches and the thread
probe are in R/scratch/keep/seed_patches; journal
R/state/journal_phase_3.md.
- The master's own builder replaces the kept builder. The distributed
refine3D master used to keep a second builder for its reprojection model
(the references the workers search), reread the project into it each
iteration, and then read the whole project file again into its own
builder. Now the model is made on the master's builder: the general
toolbox once, at the first iteration; on later ones the volumes again
(
new_vols, a new builder method thatbuild_general_tboxalso uses), the search toolbox, the band and the model. Before the model the master reads the segments the kept builder read (the non-data segments,out,opticsand the particle field), because the particle field on file is volume assembly's version, and sets the project's file name as a full read does (update_projinfo); the full read after the model is gone. Identity against Phase 2's build: SW1 641 files, MSI 226, CCI 50, PCI 53, CRD 51, SIG 27, REC 29; the final projects'projinfois unchanged. - An incident while testing it. The first build of this item left out
update_projinfo. A run started from a project in another directory then names that project inprojinfo, so the master's writes went to the fixture's project (the shared input of the 3D cases). It was caught by the identity check (CCI differed). The jobs were stopped, and the fixture was regenerated on the base build at its original path. It equals the damaged copy in every file but that project, and the project equals SW1's reference run in every segment. The fixed build is the one above. prob_alignandprob_align_neighon the master's builder. The alignment bodies (prob_align_exec,prob_align_neigh_exec) take the caller's parameters, builder, command line and thread count; the commanders build their own and call them. The master draws the sample in its own particle field, runs the bodies at the workers' thread count and restores its own. Theparams%newof each body, which reseeded the random generator, is gone (ruling: no compatibility reseed). Check build (oneseed_rndcall where thatparams%newran, patchp8.py) against item 7's build: SW1, MSI, CCI, PCI, CRD, SIG identical. The delivered build ran every case it reaches to the end with finite results.- The sigma commit on the master's builder.
commit_sigma2_exectakes the caller's parameters and builder, an explicitwhich_iterand the thread count; the master calls it after volume assembly. Check build (patchesp8.pyandp9.py) against item 8's check build: SW1, MSI, CCI, PCI, CRD, SIG identical. - Thread counts. A probe build (item 10 with log lines,
thread_probe.py, never in the repository) ran MSI's first step with two parts of six threads while the master had twelve: in the second iteration the master stood at 12 before the alignment, the alignment ran at 6, and the master was back at 12 after it; the commit ran at the 12 its command line gives (logs/thread_probe_t10.log), finite. - The
execute_from_projectentry points gone (ofprob_align,prob_align_neighand the sigma commit), with the project argument of their wrappers. Identity against item 9's build: SW1, MSI, CCI, PCI, CRD, SIG. - Checks after each item: the Debug build with the fast gate, 15 of 15 for items 7 to 10.
- The 2D cases reach the sigma commit's command-line wrapper, which items 9 and 10 changed: E2, E2S, R2, R2S, R2F, R2FD, R2F1 and MKC are identical on item 9's build against Phase 2's and on item 10's against item 9's.
- Phase-end runs on item 10's build: SW6 identical; AD1 passes with its
check values identical to the base (it runs in shared memory); CR1
passes its 60 checks, its values from stage e on differing from the base
as its distributed refinements' random draws now do; E2S at 24 threads
and MSI with two parts of 12 threads ran to the end with no NaN or
infinity (
logs/mt_i10.log); the full./compile_debug.shon the idle machine passes, gate 15 of 15 in 15 s (logs/compile_debug_p3_final.log);lib_stream,mini_stream_6vxxandmini_stream_1jxypass (logs/ctest_stream_p3.log).
Exit: every item kept and judged as "The tests" says (items 7 and 10 by identity, items 8 and 9 on their check builds), its evidence above; the phase-end runs done.
Phase 4, 2026-10-20: the 2D master owns its project¶
Item 11 kept in both steps. Files changed: the new
src/main/strategies/parallelization/simple_cavgassemble_strategy.f90;
simple_prob_align_strategy.f90, simple_refine2D_strategy.f90,
simple_commanders_prob.f90, simple_commanders_mkcavgs.f90; this plan.
Builds R/scratch/keep/build_i11a (the pure move), build_i11b (as
delivered) and build_c11 (its check build); seed patch p11.py and the
probe thread_probe2D.py in R/scratch/keep/seed_patches; journal
R/state/journal_phase_4.md.
- The pure move. The body of
prob_align2D(sampling, the particle cache, the 2D probability table filled in process or on the parts, the class assignment) becameprob_align2D_execinsimple_prob_align_strategy.f90, the body of class-average assembly (reducing the workers' partial class sums, restoring and writing the class averages, the class document)cavgassemble_execin the newsimple_cavgassemble_strategy.f90; each has a command-line wrapper that builds its own parameters and builder, which the commanders call. Identity against Phase 3's build: E2 147 files, E2S 146, R2 32, R2S 30, R2F 30, R2FD 32, R2F1 30, MKC 19, SW1 657, SW6 581. - On the master's project. The distributed refine2D master calls the
three bodies (alignment, assembly, sigma commit) with its own parameters
and builder: the alignment draws its sample in the master's particle field
(a full update sets the master's
update_fracto 1 for the call and restores it), the commit getswhich_iterassigma2_commit_itergives it. Assembly updates the master's class document,outsegment and the particles' resolutions in memory and the master writes only those segments (cls2D,cls3D,out, the particle field) instead of the whole project; its rereads of the particle segment after the alignment and after assembly are gone. The command-line route (make_cavgs, the privatecavgassemble) keeps its full write, which also keeps the file'sprojinfocurrent. Shared-memory refine2D stays on the commanders, as 3D does. - A difference found and kept identical. The first check build differed in the even and odd class averages of distributed runs: restoration picks the even/odd low-resolution averaging limit from the builder's previous class FRCs (Fourier ring correlations) before it stores the new ones, and a freshly built toolbox has none, while the master's builder kept the previous iteration's. Assembly now starts the class FRCs afresh, as a new toolbox did. For the maintainer: shared-memory refine2D reads the previous FRCs from file for the same averaging, so the two modes differ there.
- Judged on the check build (one
seed_rndcall before each of the three bodies, where theirparams%newran, patchp11.py, withp8.pyandp9.py): E2, R2, R2FD and MKC identical to the pure move's build. The delivered build is identical on the cases the master path does not reach (E2S, R2S, R2F, R2F1, MKC, SW1, SW6) and ran E2, R2 and R2FD to the end with finite results. - Thread counts. A probe build ran R2 with two parts of six threads and
a twelve-thread master: the alignment ran at 6, the master was back at 12
after it, assembly and the commit ran at the master's 12
(
logs/thread_probe_t11b.log), finite. - Checks after each step: the Debug build with the fast gate, 15 of 15.
- Phase-end runs on the delivered build: SW6 identical; E2S at 24
threads, MSI with two parts of 12 threads and E2 with two parts of 12
threads ran to the end with no NaN or infinity (
logs/mt_i11b.log); the full./compile_debug.shwith no job running passes, gate 15 of 15 in 16 s (logs/compile_debug_p4_final.log). lib_stream,mini_stream_6vxxandmini_stream_1jxypass on the Debug build (logs/ctest_stream_p4.log); the stream pool runs the distributed refine2D this phase changed.
Exit: item 11 kept and judged as "The tests" says (the pure move by identity, the second step on its check build), its evidence above; the phase-end runs done.
Phase 5, 2026-10-20: assembly on the master's project, one write per iteration¶
All three items kept. Files changed: simple_volassemble_strategy.f90,
simple_refine3D_strategy.f90, simple_commanders_rec_distr.f90,
simple_builder.f90, src/main/project/simple_sp_project.f90 and
simple_sp_project_core.f90; this plan. Builds R/scratch/keep/build_i12
to build_i14 and build_c12; seed patch p12.py and the probe
thread_probe12.py in R/scratch/keep/seed_patches; journal
R/state/journal_phase_5.md.
- Volume assembly on the master's builder (isolated by ruling). The
assembly body (
volassemble_exec) takes the caller's parameters, builder and thread count;run_volassemblekeeps building its own for the command-line callers (reconstruct3D, the shared-memory refine3D, the final reconstruction). The distributed master runs it on its own builder, so its particle field receives this iteration's resolution fields in memory; the copy of its project that assembly used to hand back is gone, and the matching low-pass refresh reads the master's own project. Judged on the check build (oneseed_rndwhere assembly'sparams%newran, patchp12.py, with the earlier patches) against Phase 4's check build: SW1 641 files, CCI 50, PCI 53, CRD 51, SIG 27 identical; MSI differs only where the ruling expects: the particle dumps of both steps incfarandlp_est, and theLP_ESTIMATEDstatistic of both steps, which now reports this iteration's nonuniform-filter limit instead of the previous one (R/scratch/compare_cfar.shstrips the two keys and lists every other changed line). The delivered build ran every case it reaches to the end with finite results. - One write per iteration.
merge_algndocscan merge the workers' alignment documents into the master's field without writing; assembly and the PCG master (the preconditioned conjugate gradient reconstruction) no longer write the project on the master's path (a write flag, on by default for every other caller); the reprojection model no longer writes, and its segment reads happen at the first iteration only. The master writes the particle field once before the workers start (with the alignment's sample, or as the model left it), again after the merge only when a polish pass follows (its workers read the merged field), and once at the end of the iteration; theoutsegment keeps its single write before postprocessing (which reads it) and does not change after it; the final full write is as before. Identity against item 12's build: SW1, MSI 226, CCI 50, PCI 53, CRD 51, SIG 27, REC 29, E2 147, R2 32, MKC 19. MSI being identical shows that the Nyquist clamp of the resolution in assembly does not bind. - The typed entry point and the copied project gone.
execute_hand_onof the volume-assembly commander and the builder'sspproj_srcoption (a project copied instead of read) are deleted; every commander'sexecute(cline)is now a thin wrapper of a strategy routine. Identity against item 13's build on the same cases. - Thread counts. A probe build ran MSI's first step with two parts of six
threads and a twelve-thread master: assembly ran at the master's 12, the
alignment at 6, the master was back at 12 after each body
(
logs/thread_probe_t14.log), finite. - Checks after each item: the Debug build with the fast gate, 15 of 15.
- Phase-end runs on item 14's build: SW6 identical; AD1 passes with its
check values identical to the base; CR1 passes its 60 checks (its
distributed stages' values change with the draws, as in Phase 3); FLX
passes its 95 floors and reaches the weighted branch; E2S at 24 threads,
MSI with two parts of 12 threads and E2 with two parts of 12 threads ran
to the end with no NaN or infinity (
logs/mt_i14.log); the full./compile_debug.shon the idle machine passes, gate 15 of 15 in 15 s (logs/compile_debug_p5_final.log);lib_stream,mini_stream_6vxxandmini_stream_1jxypass (logs/ctest_stream_p5.log).
Exit: every item kept and judged as "The tests" says (item 12 on its check
build with only cfar, lp_est and their statistic differing, items 13
and 14 by identity), its evidence above; the phase-end runs done.
Phase 6, 2026-10-20: final checks, documents and close¶
Files changed: doc/policies/3D/refine3D_policy.md,
doc/policies/2D/solve2D_policy.md,
doc/policies/3D/separate_alignment_and_reconstruction_for_multistate_peak_mem_reduction.md,
doc/policies/3D/reconstruct3D_pcg_policy.md,
doc/policies/NU/nonuniform_filtering_policy.md,
doc/policies/3D/solve3D_addon_policy.md,
doc/implementation_notes/planned/speed_architecture_proposals.md, the report
structure2D_and_project_owner_report.md, and this note, moved from
planned/ to completed/. Journal R/state/journal_phase_6.md.
- The truth suite (
simple_test_exec test=nightly, the 19 simulated gate entries packed on the 24 cores, the CTest environment) ran on the base build and on the final build (item 14's; this phase changes documents only): every entry passes on both (base 2,618 s, final 2,720 s), and all 855 metric rows pass their floors on both (logs/nightly_report_base.tsv,logs/nightly_report_final.tsv, side by side with each floor inlogs/nightly_compare.tsv). The values differ only in multi-threaded entries (cont_refine3D_1jxy,flex_pca_blobs,multistate_assignment,multistate_workflows,solve3D_addon, five rows ofsimulated_workflow_1jxy), whose draws vary with the threads and, in their distributed parts, changed by ruling. No entry fails on either build. - Documents.
refine3D_policy.md: the strategy routines own probability alignment, volume assembly and the sigma2 commit, the commanders are thin wrappers, and the distributed master owns its project (its model on its own builder, the writes of an iteration).solve2D_policy.md: the distributed 2D master's own project and assembly's class FRCs. The PCG, nonuniform-filter, solve3D add-on and multi-state memory notes name the new owners;speed_architecture_proposals.mdrecords the status.
Exit: the truth suite on both builds with every entry passing, the documents
written, the report beside this note, the note in completed/.