You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
yield_anchor follow-ups from the #475 review: snes_max_it latch resurrect, side-attribution docstring, small validation gaps #490
Follow-ups from the #475 adversarial review (none blocked the merge; all probed at the PR head):
_snes_max_it_user latch never clears (petsc_generic_snes_solvers.pyx ~6428-6443): set snes_max_it=200 → delete the option → the next solve correctly uses the default, but the one after resurrects the stale 200. The latch should clear when the key is absent from the options DB. (Still strictly better than the pre-yield_anchor: which side of exact Min the soft-min yield law sits on #475 always-clobber, hence follow-up not blocker.)
Docstring attributes the Min side to the smoother family (~8810): "powermean (default, approaches the yield surface from below) or sqrt (from above)" — the side belongs to yield_anchor, not the family; under the default onset anchor both families sit below Min near yield. Also anchor is forwardable via homotopy_options (**options passthrough) but missing from the documented key list.
Uncommented except Exception: return default at the options read (~6433) — Charter swallowed-exception rule: state what is being swallowed and why.
yield_anchor setter orphans a pre-built YieldHomotopyControl's δ atom (constitutive_models.py:1030-1039) — diagnostics-only exposure since yield_continuation refuses anchor= with a ready-made control; either rebind or document.
Test name: test_yield_anchor_keeps_onset_stress_exact exercises anchor="yield"; "onset" is the other anchor. Rename. A march-level test driving anchor="yield" through JIT/solve would also pin what is currently only probe-verified.
Fixed by PR #597, merged to development as 74f1c49. Five of the six items; item 4 (the orphaned delta atom) is documented rather than rebound, per this issue's own reading that it is diagnostics-only.
The latch in item 1 no longer had the name given here — _snes_max_it_user became _resolve_owned_option — but the defect survived the refactor and reproduced on development exactly as described: set 200, delete the key, and the second solve after deletion resurrects 200 permanently.
Auto-close does not fire because PRs target development, not the default branch.
Activity
lmoresi commentedon Aug 18, 2026
Fixed by PR #597, merged to
developmentas74f1c49. Five of the six items; item 4 (the orphaned delta atom) is documented rather than rebound, per this issue's own reading that it is diagnostics-only.The latch in item 1 no longer had the name given here —
_snes_max_it_userbecame_resolve_owned_option— but the defect survived the refactor and reproduced ondevelopmentexactly as described: set 200, delete the key, and the second solve after deletion resurrects 200 permanently.Auto-close does not fire because PRs target
development, not the default branch.An owned option's user latch dies with the option