Repository navigation
Custom-P hierarchy state no longer outlives a change to its solver or mesh (#1019, #1020, #1017, #1012) - #1036
Conversation
… mesh (#1019, #1020, #1017, #1012) - #1019: FAC keys leave the options database once a solve has set the levels up from them (top-level path: after a solve that ran a linear iteration; velocity block: straight after its set-up), and when the preconditioner choice changes. A GAMG level read the leftover composite with no members: PETSc error 73. The qmd ordering key is dropped only where we wrote it, not a user's own. - #1020: a solve that installed a hierarchy empties petsc4py's deferred list collectively at its end, as the rotated path does (#1007). - #1017: mesh.deform kills the FAC patch (Louis's ruling, 2026-11-08). The re-install runs without it, pc_fallbacks["custom_mg.fac_patch"] records it, and a warning says the fault is absent until the hierarchy is registered again. - #1012: the solver instrumentation's KSP entries take their monitor, post-solve hook and deadline test off the KSP on release; the bound methods and the entry's KSP made a cycle through the PETSc object, so every discarded SNES kept its KSP tree (+23 MB per Stokes solve with bodyforce reassigned, serial too). Root cause from H1. - scripts/test.sh: #611's np 4 deselect removed (H1 verified #611 at np 4). Tests: test_1149 (serial, tier B) and tests/parallel/test_1149 (np 2, #1020). Underworld development team with AI support from Claude Code
Underworld development team with AI support from Claude Code
… mover H1's review of 03c33e2. - B1: test_1145's dense-reference helper took a global vector before the tangent switch, which can rebuild the DM and SNES. The leak #1012 fixes kept the old objects alive; with it fixed the solve read a freed vector (segfault in SNESComputeJacobian). The helper now takes the vector after the switch and gives it back before undoing it, as adjoint_solve does. - M1: the rotated routes (add_fault_bc) configure the velocity block in rotated_bc and never call install(), the only place the patch's geometry was recorded, so a deform there declined the moved patch silently. Every install route now records through CustomMGHierarchy._record_installed_patch. - M2: only mesh.deform moved _mesh_version; the movers that commit through remesh_with_field_transfer (smoothing, MMPDE) did not. The bump moves into the helper, so swarms and kd-trees also see a smoothed mesh. ephemeral_coords and snapshot restore call _deform_mesh directly and still do not bump. The kill's verdict is allreduced: the helper's no-move test is rank-local. - L2: the kill's warning says to register the new levels; the old coarse levels registered again get the patch declined at the cover gate. - L3: tests for the Stokes adapt-child GAMG case and for a user's block ordering key; tests for the rotated route and a mover. Each fails on the mutant it guards. - L4: the parallel test_1149 leaves the serial batch (it has min_size 2; the MPI phase runs it by glob). - L1: _release_fac_keys says what a setFromOptions on the FAC smoother does after the drop. Underworld development team with AI support from Claude Code
…apshot restorable H1's review of bundle A, round 2. d22d225 moved the _mesh_version bump from mesh.deform into remesh_with_field_transfer so that movers would kill the FAC patch. Snapshot restore refuses a moved _mesh_version, so a snapshot taken before smoothing or an MMPDE step became unrestorable, which development allows (the case #966 records for #959). _mesh_version is back to development's meaning. A new Mesh._move_version counts committed moves: remesh_with_field_transfer bumps it (mesh.deform and every mover), and snapshot restore bumps it when it moved the nodes. _deform_mesh does not, so the trial moves inside ephemeral_coords do not count. The kill keys on it (solver._fac_patch_move_version). This is the dedicated counter #966 proposes; only the patch reads it here. New test: a snapshot taken before a mover restores (fails if the helper bumps _mesh_version). Serial: 1057 passed over the bundle files, every mover and deform test, and every snapshot test. Underworld development team with AI support from Claude Code
H1's review of bundle A, round 2, item 2. The restore puts the coarse levels back with the fine mesh, so the patch built before the move applies exactly again. Killing it there was never needed for correctness (every solution matched to 1.4e-9) and cost 3 -> 6 iterations on the fault fixture and 2 -> 15 on a zone patch, with a warning that said "deformed". Where the coarse levels stay moved, the cover gate declines the patch as before. Serial: test_1149, test_1146 and the 25 snapshot files, 358 passed. Underworld development team with AI support from Claude Code
# Conflicts: # scripts/test.sh
Review record, round 1 of 2: 03c33e2This is the first round, on the branch's first commit. Its merge conditions were answered in d22d225 and cce8112. Round 2 follows in the next comment, with the verdict on the PR head. Paths under Adversarial review: bugfix/custom-mg-hierarchy-lifecycle (bundle A: #1019, #1020, #1017, #1012, #611)Tip reviewed: 03c33e2, built as Probes and logs are in
Housekeeping:
VerdictNot ready to merge. There is one blocker (B1) and two medium findings (M1, M2). What the branch gets right:
What stops it:
FindingsB1 (blocker). test_1145 segfaults on the branch: the #1012 detach exposes a use-after-free in the test helperWhat happens.
Which part of the detach. We ran the one test id under each mutation (
So the crash comes from the old KSP being freed, not from taking the callbacks off. Backtrace (gdb, Cause.
Before the fix, the leak kept the old SNES and its objects alive, so the stray reference stayed valid. Now they are freed. Evidence for the fix. With Production is not affected. A user-level sequence ran clean on both builds ( Fix: reorder the helper. M1 (medium). The #1017 kill does not reach the rotated (fault-BC) pathThe rotated route builds through Measured with
The ruling says: "Neither a stale patch nor a silent decline by the cover gate." A fault that slips takes the rotated path. The new guide text in fault-multigrid.md is also wrong for this path. It says that after Fix:
M2 (medium). The kill's key covers too few moves and too many patches(a) Mesh movers do not trigger the kill.
(b) A
L1 (low).
|
| mutation (one change undone) | test_1149 np 1 | test_1149 np 2 | parallel test_1149 np 2 | test_1146 np 1 | test_1090 np 2 | test_1145 np 1 |
|---|---|---|---|---|---|---|
| none | 6 passed | 6 passed | 2 passed | 4 passed | 8 passed | segfault |
| m1019top (top-level drop and setter drop) | 2 failed | 2 failed | passed | passed | passed | segfault |
| m1019vel (velocity-block drop) | passed | passed | passed | passed | passed | segfault |
| m1019qmd (ordering key always dropped) | passed | passed | passed | passed | passed | segfault |
| m1020 (no collective free) | passed | passed | 2 failed | passed | passed | segfault |
| m1017 (no kill) | 2 failed | 2 failed | passed | passed | passed | segfault |
| m1012 (detach a no-op) | 2 failed | 2 failed | passed | passed | passed | 5 passed |
| m1012guard (callbacks off, test left registered) | passed | passed | passed | passed | passed | segfault |
- m1019vel brings preconditioner = "gamg" on an adapt child with a FAC level fails with PETSc error 73: GAMG reads the leftover FAC composite key #1019 back on Stokes. Under it,
probe_1015 pcchange adapt_stokesgives error 73 twice, then 56, at np 1 and 2 (logs/bA-np*-mutwrap-*). test_1149's GAMG case is Poisson only; add the Stokes adapt child. - m1019qmd deletes a user's ordering key. A user's
…sub_1_sub_pc_factor_mat_ordering_type ndis gone after the first solve, and the next rebuild silently runs qmd (logs/MU-m1019qmd-*). The branch keeps the user's nd through solves and rebuilds on Poisson and on the velocity block. Add a test line with a user key. - m1012guard is not a gap. Once the entry has let its KSP go, the registered test pins nothing, so unregistering it is hygiene.
L4 (nit). test.sh runs the parallel test_1149 in the serial batch, where it skips
batch 3 tests/parallel/test_1149_custom_mg_reinstall_frees_parallel.pysits under the "So is …" block, which is for files without amin_sizemark.- This file is
mpi(min_size=2), so the serial run gives "2 skipped" (logs/T-bA-np1-test_1149_custom_mg_reinstall_frees_parallel-r0.log). - Custom-P reinstall on the standard path leaks deferred PETSc objects at np > 1: +28 entries and 8 MB per reinstall on Stokes (#1007 pattern) #1020 does not occur at np 1, and the
tests/parallel/test_*.pyglob already runs the file. Drop the line.
Residual of #1012 (not a merge condition)
- Deleting a solver still keeps its KSPs: +3 live KSPs per deleted Stokes solver, on both builds, at np 1 and 2 (
p12.py delete). - Calling
release()beforedelbrings this to 0 on the branch. So it is the cycle this fix breaks; nothing callsrelease()when a solver is deleted.weakref.finalize(solver, inst.release)would close it. - RSS grows +4.6 MB per deleted solver with or without the release. At this size the KSP tree is not the main cost, and the rest is outside this change.
Attacks that failed (numbers)
Attack 1: reconfiguration after the drop.
-
These events left the live level types, block PC/ordering, LU fill and iterations equal to development at np 1 and 2:
- an adjoint solve on the Poisson kernel route, and on Stokes with Stokes adjoint_solve drops the custom-FMG velocity hierarchy and its FAC patch: one-level mg, 29 iterations against the forward's 4 #1016's re-inject (velocity 4 → 5 iterations in the adjoint on both builds);
estimate_difficulty, which reaches its cap with reason −5 on the visco-plastic case on both builds;- continuation with
picard=2: 3 SNES iterations and 4 velocity iterations on both builds; setFromOptionson the SNES, the outer KSP, the velocity KSP and the PCMG;- a user
ksp_rtolchange and asnes_typechange; _force_setup,is_setup=Falseandpc.reset();- a tolerance change on the standard and rotated paths (1e-8 then 1e-6);
- a warm re-solve that converged at 0 linear iterations.
-
FAC fill, all
lu/qmdand equal on both builds:path np 1 np 2 Poisson 3101 3076 Stokes velocity block 12404 12301 rotated 15788 16181 -
FAC keys left in the database after a solve: 0 on the branch, 4 on development. The rotated path was already 0 on both.
-
estimate_difficultyrefuses on the rotated path on both builds, by design. -
probe_fac (45 states, np 1, 2 and 4) is identical to development in iterations, v_rms and block kinds:
fixture iterations Poisson 3 stokes_plain (velocity) 4 stokes_rotated [3] sheet_rotated [2] zone_split [4] at np 1 and 2, [5] at np 4 zone_struct [3]
Attack 2: collective safety of _free_after_install.
p20.pyat np 2, 3 and 4 ran five scenarios:- a coarsest level with empty ranks (cells per rank [0,2], [0,2,0], [0,0,0,2]);
- a reinstall whose solve diverges and is retried;
- the guard firing in every reinstall solve;
- an exception injected on every rank after the install;
- two solvers, of which only one reinstalls.
- No hang: 15 of 15 runs exited 0. The installed flag agreed on every rank at every step.
- Deferred entries after each step on the branch were 0 throughout. The one exception is a raised solve, which keeps 6 / 9 / 12 entries (np 2 / 3 / 4) until the next solve frees them.
- On base, at np 4, the same runs grow: empty-rank 12 → 76, guard 72 → 296, two-solver 32 → 56.
- The verdict is rank-uniform by construction
[read]:- The flag is set at install, which runs on every rank or none. The Custom FMG with a FAC patch: re-solve after mesh.deform fails with PETSc error 73 (empty composite); the hierarchy is not re-installed #1015 review measured that the install check agrees across ranks.
getLinearSolveIterationsis a global KSP count, and thelinvalues we saw were 0 on every rank or above 0 on every rank.- The free sits outside the
finally, so a raising solve skips it on every rank. garbage_cleanupmatches objects across ranks, so a per-rankgc.collectorder is safe.
- Deform cycles (
probe_1015 cycles, np 2, 10 cycles):- Poisson: the branch stays at 2 deferred entries, with RSS +0.4 MB in total. Base adds +14 entries and +2.4 MB per cycle.
- Stokes: the branch stays at 2 entries and RSS is flat at 409.4 MB.
Attack 3: the #1017 kill.
- The kill is rank-uniform at np 2, 3 and 4: the killed flag, the live smoother and the warning count are identical on every rank.
- The warning fires once per kill: 1 on the first post-deform solve, 0 afterwards. A second deform does not warn again, and the record stays.
- A zero-displacement
deform, anephemeral_coordsround trip andnuke_coords_and_rebuilddo not kill, and the patch stays valid (composite, 3 / 4 / [3]). - Iterations after the kill equal development's after its silent decline: 5 / 7.
Attack 4: the #1012 detach.
- Rebuilds tried at np 1 and 2: a reassigned bodyforce,
mesh.deform, a flippedpreconditioner(the setter's_buildcallsrelease), and an adjoint solve (its kernel rewire releases). - Live KSPs stay at 3 per rank, and at 0 after the adjoint. Development adds 3 per rebuild.
- Sub-reports still count on the new SNES: velocity 143 / 166 iterations and pressure 11 / 13, at np 1 / 2.
- With
guard(1e-9)armed and bodyforce reassigned 6 times, the deadline fired on every rebuilt SNES (reason −3,deadline_expiredTrue), with 3 live KSPs throughout. - A user monitor on the live outer KSP keeps firing:
begin_solvedetaches only when the outer handle changes. - Each sub-KSP entry unregisters its own test
[read].
Attack 5: regressions.
- Serial, 34 files: adjoint 0018-0022, 0052, 0203, 0753, 0847, 1014-1022, 1068, 1077, 1087, 1096, 1111, 1113, 1115, 1131, 1134, 1142, 1145, 1146 and 1149. Counts are identical on both builds, except test_1145 (B1).
- test_0052 fails in the archive copy because it needs
src/. Withsrc/present (s0052/) it gives 5 passed on both builds. - Parallel np 2, identical on both builds: 0078, 1017, 1064, 1089, 1090, 1095, 1106, 1108, 1114, 1133, 1134, 1135, 1144, 1147. 1149 runs on the branch only.
- np 3: 1139 gives 9 passed on both builds.
- np 4 on the branch: the same 15 files all pass. 1103 gives 3 passed, as it does on development.
- test_0760 at np 4 on the branch, without the deselect: 4 passed in each of 6 repeats.
#1019 itself (probe_1015 pcchange, adapt children):
- Development: GAMG gives error 73, 73, then 56, for Poisson and Stokes at np 1 and 2.
- Branch: GAMG converges (Poisson 4 iterations, Stokes 18 velocity iterations), and
autorestores composite at 2 / 2.
The ordering key. A user's nd survives solves and rebuilds on Poisson and the velocity block, on both builds. On the rotated path, on both builds, the solve runs qmd although the key is set, because the key does not reach that path's prefix. That predates this branch.
Merge conditions
- B1: reorder
_dense_adjoint_errorin test_1145 so it takes the global vector after_consistent_tangent_for_adjoint, then rerun test_1145. - M1: make the kill reach the rotated route and add an
add_fault_bccase to test_1149. The alternative is to narrow the claim and keep After mesh.deform the FAC patch is declined: the custom-P coarse levels do not move with the fine mesh #1017 open for the rotated path. - M2: bump
_mesh_versioninremesh_with_field_transfer, or key the kill on the coordinates. Settle thefac_zonecase, by a ruling or by exempting zone-keyed blocks. - L3: add a Stokes adapt-child GAMG case, which catches m1019vel, and a user ordering-key line, which catches m1019qmd.
- Nice to have: the L1 docstring line, the L2 warning text, the L4 test.sh line.
Issue adjudication
| issue | verdict |
|---|---|
| #1019 | Fixed by this branch, for Poisson and Stokes. The Stokes half needs the L3 test. |
| #1020 | Fixed by this branch. |
| #1012 | Fixed for rebuilds. Still live for solver deletion: +3 KSPs per deleted solver. |
| #1017 | Fixed for mesh.deform on the standard paths. Still live on the rotated path and for mesh movers (M1, M2). |
| #611 | Fixed: 6/6 at np 4. |
What we could not test
- 3-D fixtures, and the add-on hierarchy (
set_custom_fmgafter an add-on partition) after a deform. - An exception raised on only one rank. That hangs either way, and we did not try to construct one.
follow_metricandnode_redistributionwith a metric. We moved the mesh only withsmooth_mesh_interior(method="spring"). All movers shareremesh_with_field_transfer[read].- The 23 MB/solve Stokes: reassigning bodyforce leaks about 23 MB per solve (28 MB per rank at np 2); Poisson and an updated uw.expression do not #1012 annulus case. H1 ran it; we counted live KSPs on a box instead.
- PETSc source, to see which
PCSetUppaths callKSPSetFromOptionson MG levels: it is not installed. L1 rests on the measured events only. - The
scripts/test.shsharding itself, which we were not allowed to run.
Underworld development team with AI support from Claude Code
Review record, round 2 of 2: cce8112, with the verdict on the PR head 09a6105Verdict on 09a6105: ready to merge, with no merge condition. 09a6105 is cce8112 plus one change: snapshot restore no longer bumps Rebuilt and re-run on 09a6105:
Trade-off of dropping the restore bump (not a merge condition). Take a snapshot that does not hold the coarse levels, for example levels re-refined from the moved fault after it was taken (the F1 (the one-rank-mover hang) is now on #960, and F3 (stale caches after a mover) on #966, as the PR body says. Adversarial review, round 2: bugfix/custom-mg-hierarchy-lifecycleVerdict for cce8112: ready to merge. No merge conditions remain. Four follow-ups are listed at the end; none blocks the merge.
Probes and logs are in
Housekeeping:
1. Snapshot after a mover, and after
|
| build | move | np | load_state | coords and T back | _mesh_version after the move |
|---|---|---|---|---|---|
| base a6eebb6 | spring smooth | 1, 2 | restored | yes, yes | 0 |
| base | MMPDE | 1 | restored | yes, yes | 0 |
| base | mesh.deform |
1 | refused (SnapshotInvalidatedError) |
- | 1 |
| d22d225 | spring | 1, 2 | refused | - | 1 |
| d22d225 | MMPDE | 1 | refused | - | 1 |
| d22d225 | mesh.deform |
1 | refused | - | 1 |
| cce8112 | spring | 1, 2 | restored | yes, yes | 0 |
| cce8112 | MMPDE | 1 | restored | yes, yes | 0 |
| cce8112 | mesh.deform |
1 | refused, unchanged from base | - | 1 |
-
Rewind over a step that runs a mover.
p3.py rewind: two steps underrecord_every = 1, the move in the second, thenmodel.rewind(). -
Snapshot restore: split geometry vs topology mesh version (deform should not invalidate) #296 is still live for
mesh.deform, as expected. -
The other counters do not separate the cases.
_topology_versionand_geometry_versionmove on every move on every build (0 → 3 under one spring smooth), so neither tells a mover from an adapt. -
The d22d225 regression is gone. On that tip I had recorded it as N1: a snapshot taken before a mover could not be restored, and
rewindrefused across a mover step. cce8112 behaves like base. The new testtest_a_mover_leaves_a_snapshot_restorablecatches d22d225's coupling: the mutantm2snap(a committed move also bumps_mesh_version) fails it at np 1 and 2. -
No code path restores a snapshot after a mover on purpose. The grep covered src/, docs/, examples/ and
hyperion-work/campaigns(uw3-campaigns). Two generic paths do it implicitly:Model.rewind()(model.py:1633);TranscriptAdjoint(adjoint.py:559, :647)[read].
No meshing, systems or utilities module calls save_state or load_state. The campaigns'
ve_cylinder.pyuses snapshots on a mesh that does not move. -
A new interaction with Snapshot restore: split geometry vs topology mesh version (deform should not invalidate) #296. The author's case builds the patch, takes a snapshot, runs a mover, re-registers on the moved mesh, then restores. If the coarse levels are moved with
mesh.deform, which is the obvious way to move them, the restore is refused: those level meshes are registered on the model and their_mesh_versionmoved. Measured inp5.py fault kill, the first version, at np 1. Moved with a mover-style commit, they restore (below). That is Snapshot restore: split geometry vs topology mesh version (deform should not invalidate) #296, not this branch.
2. The kill on _move_version (priority 3)
p2.py on cce8112. In every row, every rank gave a collective verdict of True, warned once, switched to sor and recorded unavailable, with no hang. Iterations are the velocity block's for Stokes and ksp for the sheet.
| path | event | np 1 | np 2 | np 4 | (mesh, move) versions after |
|---|---|---|---|---|---|
| Poisson | mesh.deform |
3 → 5 | 3 → 5 | 3 → 5 | (1, 1) |
| Poisson | spring smooth | 3 → 4 | 3 → 4 | 3 → 4 | (0, 1) |
| Poisson | MMPDE | 3 → 5 | 3 → 6 | 3 → 5 | (0, 1) |
| Stokes velocity | mesh.deform |
4 → 7 | 4 → 7 | 4 → 7 | (1, 1) |
| Stokes velocity | spring | 4 → 7 | 4 → 7 | 4 → 7 | (0, 1) |
| Stokes velocity | MMPDE | 4 → 8 | 4 → 9 | 4 → 9 | (0, 1) |
add_fault_bc, saddle route |
mesh.deform |
[3] → [5] | [3] → [6] | [3] → [6] | (1, 1) |
add_fault_bc, saddle route, corner fault |
mesh.deform |
- | [2] → [5] | [2] → [5] | (1, 1) |
add_fault_bc, saddle route |
spring | [3] → [5] | [3] → [5] | [3] → [5] | (0, 1) |
add_fault_bc, saddle route |
MMPDE | [3] → [6] | [3] → [7] | [3] → [7] | (0, 1) |
add_fault_bc, velocity-only route (ThinSheet) |
mesh.deform |
[2] → [4] | [2] → [4] | [2] → [4] | (1, 1) |
add_fault_bc, velocity-only route (ThinSheet) |
spring | [2] → [4] | [2] → [4] | [2] → [4] | (0, 1) |
The largest node moves were: deform 0.0100, spring 0.0143, MMPDE 0.025-0.026.
-
No-kill controls (
p17.py, np 1 and 2):ephemeral_coordsround trip,nuke_coords_and_rebuildand zero-displacementdeform. Each keeps composite at 3 iterations with no warning.deform0on the rotated route also keeps composite. -
A rank with no patch rows. Every fixture has one: with the mid fault at np 2 and 4, and with the corner fault, every patch row is on one rank. The others record empty arrays, not None, so the "has a patch" allreduce agrees on every rank. Every rank recorded the version at 0, and every rank killed.
-
The version moves on one rank only (
bumpone:_move_version += 1on the last rank). The local verdicts were[0, 1]at np 2 and[0, 0, 0, 1]at np 4. The collective verdict was True on every rank for all four paths, each rank warned once and recorded, and nothing hung. This is the only way I could reach the allreduce. -
A mover that moves only one rank's nodes hangs, on every build. The setup moved interior nodes of the last rank that appear in no other rank's local coordinates: 168 nodes at np 2 (Poisson) and 66 at np 4 (rotated, corner fault). It hangs on cce8112, on d22d225 (12 of 12 runs) and on base (Poisson at np 2). See F1. It hangs before any solve, so the kill is never reached.
-
The rest of cce8112's tip matches d22d225:
- the kill on the rotated route (round-1 M1);
- the kill after a mover (round-1 M2a);
- zone patches killed universally (M2b, by ruling);
- the L1-L4 changes.
The only difference is the counter that is read.
3. The author's case: patch, snapshot, mover, re-register, restore (priority 4)
The author's claim: "the restore bumps _move_version, so the next solve kills the re-registered patch; conservative and intended".
Probe: p5.py. Each solve starts from u = 0 at tolerance 1e-8. I compared the solution after the restore with the first solve on the same geometry. There are two fixtures:
- fault: pr.py's Poisson with a fault, spring smooth with the fault pinned;
- zone: p4's weak band, contrast 1e-4.
Sequence:
- Build and solve.
- Take a snapshot.
- Run the spring mover. The kill fires.
- Move the coarse levels to match the fine mesh, using a mover-style commit, then re-register.
- Restore the snapshot. Fine mesh and coarse levels come back exactly, and
_move_versiongoes 1 → 2. - Apply one of four variants.
Variants after the restore:
kill: solve as is.keep: the kill bypassed by hand.rereg0: register the levels again.fresh0: a new solver.
Level handling:
inplace: the coarse levels are in the snapshot, so they come back too.stay: the coarse levels are put back on the moved geometry, as levels re-refined after the snapshot would be.
Results. Linear iterations and finest smoother, identical at np 1 and np 2 except where shown as np 1 / np 2. The kill row also warns and records.
| fixture, levels | 1 built | 2 after mover (killed) | 3 re-registered on the moved mesh | after restore: kill | keep | rereg0 | fresh0 | base (no kill) |
|---|---|---|---|---|---|---|---|---|
| fault, inplace | 3 comp (gate 117) | 5 sor | 3 comp (gate 89) | 6 sor | 3 comp (gate 117) | 3 comp | 3 comp | 3 comp |
| fault, stay | 3 | 5 sor | 3 | 6 sor | 6 sor (silent decline) | 6 sor (silent) | 6 sor (silent) | 6 sor (silent) |
| zone, inplace | 2 comp | 14 / 16 sor | 2 comp | 15 / 16 sor | 2 comp | 2 | 2 | 2 (base never killed) |
| zone, stay | 2 | 14 / 16 sor | 2 | 14 / 16 sor | 2 comp | 2 | 2 | 2 |
The solution is right in every case. The largest difference from the first solve was ≤ 1.4e-9 at np 1 and ≤ 4.6e-10 at np 2. With the levels restored (inplace), keep, rereg0 and fresh0 match it bit for bit.
Reading:
- With the levels restored, which is the normal case, the kill only costs speed.
- The re-registered hierarchy holds the same level meshes, and they are back at the original geometry.
- Its rebuild produces exactly the original patch: gate subdomain rows 117, the same as at step 1, not the 89 of the moved mesh. That gives 3 / 2 iterations, the same as the original registration, and an identical solution.
- So the original registration's patch is what applies, and the re-registered hierarchy reproduces it.
- The kill costs 3 → 6 iterations on the fault fixture and 2 → 15-16 on the zone fixture. It also warns that the mesh "was deformed after its FAC patch was built", which is untrue after a restore to the original geometry.
- With the levels left on the moved geometry, the kill gives a warning, not a different result.
- Without the kill, the fault patch is declined at the cover gate: 6 sor, silently. That is round 1's M2 failure mode.
- The kill gives the same 6 sor, with a warning and a record.
- The zone patch, which is keyed on cells, still works with mismatched levels: 2 composite against 14-16 when killed.
- So the kill is never needed for correctness here. It is conservative, as the author says, but at an efficiency cost of 2× on the fault fixture and 7-8× on the zone fixture. When the levels come back with the fine mesh, it is also wrong on the facts.
- A sharper key is possible (follow-up, not a merge condition). The kill could fire only when the finest mesh moved relative to its coarse levels. For example: record every level's
_move_versionat install, and kill when the finest moved and some coarse level did not. That keeps the kill forstayand skips it forinplace. - The restore bump is untested. The mutant
m2restore(restore does not bump_move_version) passes all of test_1149. From the table, its only effect is thestaycase: a silent decline at the cover gate in place of a recorded kill.
4. The fac_zone probe (priority 5; evidence for the ruling, not a merge condition)
Fixture (p4.py):
- an unsplit box, cellSize 1/8, refinement 1, 648 cells;
- Poisson, tolerance 1e-8;
- diffusivity 1e-4 in a band fixed in space, 1 elsewhere;
fac_zone= the 36 cells whose centroids lie in the band.
Moves: k MMPDE moves (redistribute_nodes, n_outer = 2, density concentrated on the band) or 6 spring moves.
What was measured:
- the solver registered once: on base its patch survives; on cce8112 and d22d225 it is killed;
- after the last move, three fresh registrations with the coarse levels moved to match (0 unmatched vertices in every run): the zone recomputed from the moved centroids, the old cell mask, and no zone.
Results. Linear iterations, each solve from u = 0. The cce8112 numbers are the same as d22d225's to within one iteration.
| move | np | max node move | base: surviving patch | cce8112: killed | fresh, zone recomputed (cells / patch rows) | fresh, old zone | fresh, no zone |
|---|---|---|---|---|---|---|---|
| none | 1, 2, 4 | 0 | 2 (215 rows) | 2 | - | - | - |
| MMPDE ×1 | 1 / 2 / 4 | 0.024 | 3 / 3 / 3 | 17 / 22 / 26 | 2 / 2 / 2 (48 / 247) | 2 / 3 / 2 | 16 / 13 / 18 |
| MMPDE ×3 | 1 / 2 / 4 | 0.045 | 3 at every move | 17 / 22 / 25-28 | 2 / 2 / 2 (59 / 270) | 2 / 2 / 2 | 18 / 19 / 21 |
| MMPDE ×6 | 1 / 2 / 4 | 0.052-0.054 | 3 at every move | 17-18 / 21-24 / 24-28 | 2 / 3 / 2 (63-64 / 278-285) | 3 / 3 / 3 | 16 / 22 / 21 |
| spring ×6 | 1 / 2 / 4 | 0.023 | 2 at every move | 14-15 / 16 / 17-18 | 2 / 2 / 2 (37 / 215) | 2 / 2 / 2 | 14 / 19 / 21 |
- The surviving zone patch stays correct and efficient. On base it holds 2-3 iterations through six moves at np 1, 2 and 4, against 2-3 for a fresh registration.
- It degrades by at most one iteration. It goes 2 → 3 once MMPDE has concentrated nodes on the band, so the band now covers 48-64 cells against the original 36 (35-36 of the original cells remain in it). It gets no worse with more moves.
- The universal kill costs 14-28 iterations, 6-12× more. That is worse than a fresh registration with no zone at all (13-22).
- The partition does not move. Movers do not repartition, so the partition stays the one taken at construction.
- Limits: one 2-D Poisson fixture, one band, one contrast.
- The evidence favours exempting zone-keyed blocks from the kill, as a follow-up for Louis's ruling.
5. Tests and mutations
Tests on cce8112:
| file | np 1 | np 2 | np 4 |
|---|---|---|---|
| test_1149 (11 tests) | 11 passed | 11 passed | - |
| parallel test_1149 | - | 2 passed | 2 passed |
| test_1146 | 4 passed | 4 passed | - |
| test_1145 | 5 passed (344 s), no segfault | 1 passed, 4 skipped | - |
d22d225 gave the same results; its test_1149 has 10 tests.
Mutation matrix on cce8112 (cce8112 tests, in-process monkeypatch, one change undone per row):
| mutation | what it undoes | test_1149 np 1 | test_1149 np 2 | other | caught by |
|---|---|---|---|---|---|
| none | - | 11 passed | - | parallel np 2: 2 passed | - |
| m1019top | top-level key drop | 3 failed | - | - | gamg[poisson], fac_keys_leave…, user_block_ordering |
| m1019vel | velocity-block key drop | 1 failed | 1 failed | - | gamg[stokes_velocity] |
| m1019qmd | ordering key always dropped | 1 failed | 1 failed | - | user_block_ordering_survives_the_drop |
| m1020 | collective free | 11 passed | - | parallel np 2: 2 failed | parallel reinstall test |
| m1017 | the kill | 4 failed | - | - | both deform cases, rotated, mover |
| m1017rot | rotated-route record | 1 failed | 1 failed | - | rotated fault route |
| m2mover | movers do not bump _move_version |
1 failed | 1 failed | - | mover kills the patch too |
| m2snap | a move also bumps _mesh_version (d22d225) |
1 failed | 1 failed | - | mover leaves a snapshot restorable |
| m2restore | restore does not bump _move_version |
11 passed | - | - | not caught |
| m1012 | the #1012 detach | 2 failed | - | test_1145: 5 passed | rebuilt_stokes_snes[gauge, guard_armed] |
| m1012nullonly | - | - | - | test_1145: 5 passed | (B1 is gone) |
Round-1 findings:
| finding | status |
|---|---|
| B1 | fixed |
| M1 | fixed: the saddle and the velocity-only rotated routes, np 1, 2 and 4 |
| M2a | fixed |
| M2b | ruled: zone patches killed universally |
| L3 | fixed: Stokes adapt-child GAMG case, user ordering key |
| L4 | fixed: parallel test_1149 is out of the serial batch, and gives 2 passed at np 2 and 4 |
- preconditioner = "gamg" on an adapt child with a FAC level fails with PETSc error 73: GAMG reads the leftover FAC composite key #1019 on cce8112.
probe_1015 pcchangewas run on d22d225 only: GAMG converged on both adapt children at np 1 and 2 (Poisson 4, Stokes velocity 18), andautowent back to composite. cce8112 does not touch that code. - L1 and L2. Their text was read
[read]and not re-run.
Regression suites, cce8112 against base. 62 serial files and 23 np-2 files, run one by one: every swarm test, the mover and MMPDE tests (0750, 0751, 0762, 0764, 0773, 0850, 0855×2, 0861), and the snapshot, transcript and restart tests (0007-0014, 0020×3, 0060, 0077, 0140, 1060, 1063, 1074), plus the parallel snapshot, swarm and smoothing files.
- Serial: 640 passed, 10 xfailed and 4 skipped on all three builds.
- np 2: 101 passed, 5 skipped, 1 failed and 1 error, the same on all three builds, file by file.
- The failure is the serial
test_0764run at np 2, which stops atPetscGarbageKeySortedIntersect … too big for PetscInton every build. - The error is
ptest_000d, which errors on every build. Theptest_*files are not collected by pytest.
- The failure is the serial
Follow-ups (none blocks the merge)
- F1 (pre-existing): a move that leaves some rank's local coordinates unchanged hangs.
- Cause:
_remesh_with_field_transfer_impldecides "moved" per rank (remesh.py:378-383). A rank whose local coordinates did not change returns False. The ranks that moved go on intoremap_var_set, whose deform-back calls the collective_deform_mesh. - gdb at np 2: the moving rank is in
UW_DMPlexCreateCoordinateSpaceWithinPlex → DMGetCoordinates → MPI_Allreduce, while the other has returned. - It hangs on base too.
- Fix: allreduce
movedbefore the early return. That also makes_move_versionrank-uniform by construction, and the docstring's "a version could move on some ranks only" then describes a hang that no longer happens. - A real trigger would be a pass in which one rank's nodes are all pinned or all below the skip threshold
[read]; I did not construct one.
- Cause:
- F2 (the author's case): when the levels come back with the fine mesh, the restore bump kills a valid patch.
- Cost: 3 → 6 iterations (fault) and 2 → 15-16 (zone).
- The warning says "deformed", which is untrue after a restore.
- Suggestion: key the kill on the finest mesh moving relative to its coarse levels.
- Add a test for the restore bump;
m2restoreis uncaught.
- F3 (pre-existing on base; cce8112 brings it back): caches stay stale after a mover.
- After a mover the variable kd-tree is not rebuilt. The largest query miss on the moved DOFs is 1.3e-4 (spring) and 8.8e-4 (MMPDE).
- Swarms are not migrated at the next solve entry: 0
migratecalls. - Measured on base and on cce8112 at np 1 and 2.
- d22d225 fixed both by bumping
_mesh_versionand so broke the snapshots. cce8112 reverts both. - These consumers could read
_move_versioninstead, which the snapshot does not check[read]. Candidates: variable and domain kd-trees, the swarm solve-entry sync, the proxy cache, and the cell projectors. That would fix them without touching restore.
- F4 (fac_zone): exempt zone-keyed blocks from the kill. The evidence is in section 4.
What could not be tested
- The kill's allreduce through a real rank-asymmetric mover: that hangs first (F1). It was exercised only through an injected per-rank bump, and no mutant of it was run.
TranscriptAdjointover a mover run[read]; onlyrewindwas run.follow_metricandnode_redistributionwith a metric, beyondredistribute_nodes(MMPDE) and spring.- 3-D; the add-on hierarchy after a mover; a structural fault patch through several MMPDE moves.
- The author's case with levels re-refined from the moved fault.
staystands in for levels the snapshot does not hold. scripts/test.shitself, which I was not allowed to run.
Underworld development team with AI support from Claude Code
… the moved fields Louis, 2026-11-10: "this is mostly about efficiency and I am good with what works but I don't want to compromise accuracy." The zone exemption (#1017). A fac_zone patch is cut from the masked cells' rows, which a node move leaves in place, and only preconditions, so a move keeps it. On a split level the move still drops what the coincidence test found, the structural rows outside the zone (warned once, recorded). A change of the finest mesh's cells (a repartition, a topology change in place), read from a checksum of the rank's cell-node table, kills the whole patch, keyed or not. tests/parallel/test_1152: after each of 3 MMPDE moves the kept patch matches a fresh registration with the zone recomputed in velocity (2e-8), pressure (8e-7) and slip (5e-7) at the same velocity iterations (6 and 6; 13 and 13 on the split level); a stale or killed zone patch takes 12 and 15 and fails. test_1149: the split-level zone keeps its blocks after a deform, and a changed topology kills them. The stale first solve. remesh_with_field_transfer writes the transferred fields through plain views of the variables' local vectors, which do not mark the mesh's assembly vector stale, so a solver that had solved before a move assembled its first solve after it with the pre-move coefficients: on the zone fixture 6 % in velocity and 80 % in pressure after mesh.deform, 0.2 % and 15 % after one MMPDE move (confirmed on development by hyperion at np 1 and 2). The transfer now marks it. test_1151 fails without the mark (2.1e-2 and 4.1e-2 in velocity), and asserts that the move changed the field. Underworld development team with AI support from Claude Code
test_0057 read T after mesh.deform as carried with the nodes. That was the stale assembly vector the previous commit fixes: the deform remaps T into T.data, and the first evaluation after the move read the pre-move nodal values. With the mark the evaluation reads the remapped T, and beyond the old boundary the remap can only extrapolate (the crest levels off and dips by 5e-3), which is not what the test is about. It now sets T to the radius on the deformed mesh, so a located point reads its own radius (within 0.01) and a point clamped to the old boundary reads ~r_o; its nav-coordinate and membership checks are unchanged. Serial: 1080 passed over the bundle files, every mover, deform and snapshot test, test_1150, 1151 and 1152. Underworld development team with AI support from Claude Code
The previous commit set T on the deformed mesh. #959 (open, H2), which has the same stale-vector fix, makes the test carry T instead (remesh_policy="carry"), so the field along the crest is known; this takes its hunk verbatim, so the two branches agree on the file. Underworld development team with AI support from Claude Code
H1's review of e57ad72. - Merge condition: test_1152's bounds equalled the solve tolerance, so kept and fresh differed by convergence noise alone (1.46e-6 velocity, 1.19e-5 slip at np 2). It now solves at 1e-8 and bounds velocity at 100x and pressure and slip at 1000x the tolerance; hyperion measured kept against fresh at ~4e-9 there, and a stale patch costs only iterations, which the iteration guard catches. - L2: test_1149 tests _topology_signature itself (the same after a move and a new field, different on other cells); a constant signature fails. - L3: after a move on a split level the zone patch's gate verdict is None (the structural rows are dropped, not found again and declined); keeping them fails. - M1: the stale mark's comment said every rank reaches it; only a rank that moved does (#960). #959's all-rank move decision carries the same mark and replaces this one at its merge. Serial: test_1149 and test_1152, 15 passed; test_1151, 2 passed. Underworld development team with AI support from Claude Code
Review record, round 3: 86c9bbe and e57ad72, with the verdict on the PR head 336fcceVerdict on 336fcce: ready to merge. The round-3 merge condition C1 is met:
The other findings, as answered in 336fcce:
One note on test_1152. At np 1 its kept and fresh preconditioners are bit-identical (§4), so its kept-against-fresh comparison only has teeth in parallel. That is where scripts/test.sh runs it. Louis's accuracy condition holds throughout: no kept fac_zone patch changed a converged answer (§5). Paths under Adversarial review, round 3: bugfix/custom-mg-hierarchy-lifecycle (PR #1036)Verdict86c9bbe and e57ad72 are not ready to merge yet. There is one hard condition: test_1152 fails at np 2. One more fix is recommended (section 6).
Builds and test trees:
Probes (in
Logs and summaries: logs are in Housekeeping:
0. e57ad72 (the coordinator's mid-task change): test_0057 carries T
1. (a) test_1152 at np 1, 2 and 4 (86c9bbe tests, wt-bA2 build)
2. (b) A topology signature that differs on one rank only
The BOR allreduce of 3. (c) The stale-lvec mark and the rank-local early returnReading the code
But the mark does add a new asymmetry (finding M1):
4. (d) The fac_zone table, with accuracyFixture: round 2's p4: Poisson, a band fixed in space with contrast 1e-4, cellSize 1/8, refinement 1, tolerance 1e-8. Columns:
The "sync" columns add a dummy MeshVariable after each move, which works around P1. "nosync" is round 2's protocol. Iterations on honest geometry (sync). base and head are identical in every cell. Each cell gives iterations at move 1 … k.
Round 2's protocol (nosync). Iterations are the same as above, 2-3 at every move on both builds. But kept vs LU is 0.36-0.71 on both builds: the solver's DM still holds the pre-move coordinates, displaced by up to 0.0545. That is P1, not the patch. Stale masks (head, sync, MMPDE). The patch is kept with the wrong mask. Iterations are given at move 0, then moves 1 …; errors are against LU.
Stokes, test_1152's fixture (
5. The accuracy assessment, against Louis's ruling
6. Findings
The topology signature
|
| mutant | test_1149 np 1 / 2 | test_1152 np 1 / 2 | test_1151 np 1 / 2 | test_0057 (e57ad72) |
|---|---|---|---|---|
| noexempt (zone patch killed whole) | 1 failed / 1 failed | 2 failed / 2 failed (iterations) | pass / pass | pass |
| sigconst (= topology check dropped) | pass / pass | pass / C1 only | pass / pass | pass |
| nostale | pass / pass | 1 failed / 2 failed (accuracy) | 2 failed / 2 failed | pass |
| structkept | pass / pass | pass / C1 only | pass / pass | pass |
| nonav, noindex (#264 undone) | - | - | - | failed (also the original test) |
Regressions
Each file was run on its own, head (t3) against dev8f (tbase).
-
Serial, 34 files: results are identical on both builds, except:
- test_1151 fails on base (expected);
- test_1149 is absent on base;
- test_1150 fails on both builds, 18 each:
scripts/check_examples_compile.pyis not in a tests-only archive, which is an artefact of the setup; - test_1060_stress_store_smoothing was still running on both builds after 28 min, with no verdict.
-
Serial on the head, among others:
- 1145 (5 passed), 1146 (4), 1149 (12), 1151 (2), 0057 (1);
- the snapshot, transcript and restore tests, 0007-0020;
- the movers 0750, 0751, 0762, 0764, 0773, 0850, 0855 and 0861;
- 1060 nitsche, 1063 and 1074.
-
np 2, 11 files: 1146, 1149, parallel 1149, 1151, parallel 0020, 0079, 0773, 0775 and 0855 all pass on the head. Two failures are the same on both builds:
- test_0007's
test_backstepping_cfl_recovery_end_to_endfails; - test_0020_restore_continuation hits an MPI error.
Both are pre-existing.
- test_0007's
7. Merge conditions
- C1: make test_1152's accuracy bounds tolerance-aware, then show it passing at np 1 and 2 (and 4).
- Recommended, M1: allreduce the moved verdict, or the stale mark, across ranks, and correct the comment. A one-line allreduce before the early return (F1) closes M1, Mesh-move field transfer: remap_var_set can skip a collective on one rank, and ghosts are not synchronised #960/F1 and
_move_versionasymmetry together.
Not conditions:
- Open an issue for P1.
- L1-L4.
- A signature test that does not replace the function (L2).
8. What I could not test
- A real in-place topology change (
mesh.remeshneeds MMG, which is not registered in this PETSc). The "changes when it should" half of the signature rests on reading the code. - The one-rank-move hang (F1) under gdb. I only confirmed the silence; round 2 has the stack.
- 3-D fixtures, the add-on hierarchy after a mover, and
follow_metric. - The full scripts/test.sh, which I was not allowed to run.
- test_1150 in a tests-only archive.
- test_1060_stress_store_smoothing, which had no verdict within the time.
Underworld development team with AI support from Claude Code
#959 carries the same stale-mesh-vector mark, after an all-rank move decision; its copy is kept and this branch's is dropped, which also makes the _move_version bump collective (H1's M1). test_a_mover_leaves_a_snapshot_ restorable is dropped as a duplicate of #959's test_0766 snapshot test. test_1151 stays: it covers mesh.deform and a Stokes assembly against a solver built after the move, which test_0766 (a mover, read through an integral) does not. Underworld development team with AI support from Claude Code
When #765 was split out of 19fdbc0, the solver file was taken whole from that commit, which predates #1036. That reverted #1036's _release_fac_keys and _free_after_install calls in the solver, and test_1149 failed three ways (FAC keys left in the options database, PETSc error 73). The file is now development's, with only this branch's change: _peel_except delegates to adjoint._peel_except. test_1149 and test_0032: 16 passed. Underworld development team with AI support from Claude Code
A custom-P hierarchy's state outlived a change to its solver or mesh in four ways. This is bundle A of the issue sweep: one PR for the custom-P lifecycle, fixed together because the four share the install and solve paths.
What changes
#1019: the FAC keys leave the options database. The FAC install wrote its smoother keys (
mg_levels_<l>_pc_type composite, the blocks' LU, shift and ordering) into the database, and the standard paths left them there. A laterpreconditioner = "gamg"on an adapt child read the composite back on a GAMG level with no members: PETSc error 73.custom_mg._release_fac_keys, called at the end of each solve, and forced when the preconditioner changes).#1020: a reinstall frees what it dropped. In parallel petsc4py defers each destroy to a collective
garbage_cleanup, and nothing on the standard paths ran one. Each reinstall kept its predecessor's transfers and level objects: +6 entries per reinstall on Poisson and +28 on the Stokes velocity block at np 2. A solve that installed now empties the list at its end (custom_mg._free_after_install), as the rotated path does (#1007).#1017: a move of the mesh kills the FAC patch (Louis's ruling, 2026-11-08), except a
fac_zonepatch (2026-11-10, below).Mesh._move_versioncounts committed moves.remesh_with_field_transferbumps it, so it coversmesh.deformand every mover (smoothing, MMPDE). The trial moves insideephemeral_coordsand a snapshot restore don't count._mesh_versionkeeps its meaning, so a snapshot taken before a mover still restores.add_fault_bcroutes.pc_fallbacks["custom_mg.fac_patch"](reasonunavailable) and warns once.A
fac_zonepatch survives a move. Louis, 2026-11-10: "this is mostly about efficiency and I am good with what works but I don't want to compromise accuracy."The first solve after a move reads the moved fields. The mesh-move transfer wrote the remapped fields without marking the mesh's assembly vector stale. A solver that had solved before a move then assembled its first solve after it with pre-move coefficients: on a zone-viscosity fixture, 6 % in velocity and 80 % in pressure after
mesh.deform. #959 (H2) fixes this and merged first; its copy of the mark is the one kept here. test_1151 stays beside #959's test_0766: it coversmesh.deformand a Stokes assembly against a solver built after the move.#1012: a rebuilt SNES lets its KSPs go. The solver instrumentation hung bound methods of its entries on the KSPs (monitor, post-solve hook, deadline test) while the entries held the KSPs. That cycle runs through a PETSc object, which the collector cannot see. Every discarded SNES kept its KSP tree resident: +3 KSPs and about 23 MB per solve when a Stokes
bodyforceis reassigned, in serial too. Releasing an entry now takes its callbacks off (_InstrumentedKSP.detach,ksp_convergence_tests.unregister).adjoint_solvedoes.#611: the stale np 4 deselect of test_0760 leaves
scripts/test.sh. The test passes 6 of 6 at np 4.Tests
tests/test_1149_custom_mg_hierarchy_lifecycle.py(tier B). GAMG after a FAC install on an adapt child, for Poisson and the Stokes velocity block. The FAC keys leave the database and the blocks keep LU. A user's block ordering survives. A deform kills the patch: Poisson, Stokes velocity, and the rotated fault route. A mover kills it too. A snapshot taken before a mover restores. A rebuilt Stokes SNES lets its KSPs go, with and without the guard.tests/parallel/test_1149_custom_mg_reinstall_frees_parallel.py(tier B, min 2 ranks): a reinstall leaves nothing deferred.tests/parallel/test_1152_fac_zone_survives_a_mover_parallel.py(tier B; serial and np 2). After each of 3 MMPDE moves, the kept zone patch matches a fresh registration with the zone recomputed: velocity, pressure and slip to the solver tolerance (1e-8), at no more than one velocity iteration more. Both the plain zone and the zone on a split level are covered.tests/test_1151_first_solve_after_a_mesh_move.py(tier B): the first solve aftermesh.deformand after an MMPDE move matches a solver built after the move.test_1149also covers: a split-level zone keeps its blocks after a deform, and a changed topology kills it; the topology signature follows the cells, not the nodes.Review
Three rounds on hyperion, records on this PR. Round 2 found that the first design, bumping
_mesh_versionin the mover helper, made a snapshot taken before a mover refuse to restore. It also brokeModel.rewind()across a mover step. The design above replaced it.After round 2, the restore no longer bumps
_move_version. Hyperion measured the kill there as never needed for correctness: every solution matched to 1.4e-9. It cost 3 → 6 iterations on the fault fixture and 2 → 15 on a zone patch.Left open
release()on deletion. This PR fixes the rebuild case._mesh_versionand are stale after a mover, as on development. They can move onto_move_versionin their own change.mesh.deformis refused, as on development.mesh.dmbut notmesh.dm_hierarchy[-1], so on a mesh withrefinement >= 1a Poisson solve after a move runs on the pre-move geometry (hyperion). A Stokes solve after a move is right, with FMG and with GAMG (H2). This is H2's issue. The tests here check kill and keep behaviour, and test_1152's mesh is unaffected.Underworld development team with AI support from Claude Code