Repository navigation
fix: report step count and stop reason in the multi-start search.summary - #1555
Merged
Merged
Conversation
A MultiStartProdigy start_here.py run was reported as "stopping at 49 steps because iterations_per_quick_update=50". The search cannot stop at a quick-update boundary — the multi-start step loop never reads the cadence, and its only stop paths are the auto-convergence plateau (gated behind min_steps=100) and the n_steps ceiling. The 49 was search.summary's "Total Samples" line: 1 best + n_starts=48 per-start final points, a count fixed at construction that carries no step information, yet the summary's one prominent number — and the run's real length appeared nowhere. Label the gradient searches' sample count with its composition — only where the arithmetic actually holds: reloaded samples arrive with the weight-0 per-start rows pruned, and n_starts sits outside the search identifier, so on those paths the label would be self-contradictory and the count stays plain. Report Total Steps and Stop Reason beside it, and pin the non-interaction with an end-to-end regression: a MultiStartProdigy fit whose quick-update boundary falls mid-budget runs every one of its steps, and the cadence's current inertness is asserted so the change that wires real quick updates into the step loop must flip that assertion rather than inherit a vacuously green test. Refs #1553 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RMc7X2QncxHM4GEC7b4K4P
This was referenced Aug 31, 2026
Closed
…verlap with #1554 Keep this PR's composition label, Total Steps and Stop Reason lines in search_summary_from_samples; drop the inline resampling lines, which #1554 moved to the end-of-file Resampling Info section. Targeted suites green (text_util 25 pass, mle 131 pass). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qj5UN31m3FSCxzgp5jTrPj
Jammy2211
pushed a commit
that referenced
this pull request
Sep 1, 2026
…s tripwire to assert quick updates FIRE The wiring makes the cadence live for the MultiStart family, so the e2e regression's quick_update_count assertion flips from == 0 to > 0 exactly as the tripwire's comment demanded; the two ceiling asserts (60 steps, max_steps stop) stay unchanged. mle + wiring + text_util suites: 162 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qj5UN31m3FSCxzgp5jTrPj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1553. A
MultiStartProdigystart_here.pyrun was reported as "stopping at 49 steps becauseiterations_per_quick_update=50". Investigation (on the issue) shows the search cannot stop at a quick-update boundary: the multi-start step loop never reads the cadence (it is inert for this family — theEXEMPTentry intest_quick_update_wiring.py), and the only stop paths are the auto-convergence plateau (gated behindmin_steps=100) and then_stepsceiling. The "49" wassearch.summary'sTotal Samples = 49line — 1 best +n_starts=48per-start final points, a count fixed at construction — while the run's real length appeared nowhere in the summary.This PR makes the summary state the run's actual length and pins the non-interaction:
search_summary_from_samplesnow labels the gradient searches' sample count with its composition (Total Samples = 49 (1 best + 48 per-start final points; not a step count)) — only where the arithmetic actually holds (reloaded samples arrive with the weight-0 per-start rows pruned, andn_startssits outside the search identifier, so on those paths the count stays plain) — and reportsTotal Steps = NandStop Reason = converged|max_stepsbeside it (Stop Reasonomitted for legacysearch_internalfiles that never recorded one).test_multi_start_quick_update_termination.py: aMultiStartProdigyfit with a quick-update boundary (25) mid-budget (60, convergence explicitly off) runs every one of its 60 steps and stops onmax_steps. It also assertsquick_update_count == 0— the cadence's current inertness — as a tripwire: the change that wires real quick updates into the step loop must flip that assertion to "fired" rather than inherit a vacuously green test.API Changes
None — internal. Three new/changed lines in the text of
search.summaryfor the MultiStartGradient family only (no consumer parses that file; verified acrossautofit/,test_autofit/, workspace scripts). No public symbol added, removed, or changed.Test Plan
pytest test_autofit/text/test_text_util.py test_autofit/non_linear/search/mle/— passes (new: step-count/stop-reason lines, composition-mismatch path, legacy no-stop_reasonpath, e2e non-termination witness)test_quick_update_wiring.pyunchanged and green (theEXEMPTentry stays; wiring real quick updates is the sibling task)n_starts=48, cadence 50,n_steps=120): run goes far past step 50;total_samples=49confirmed as the misread numberValidation checklist (--auto run — plan was not pre-approved)
origin/main(dynesty/scipy/optional-dep drift), none in touched code · smoke — n/a in this container; evidence: no workspace script or library code parsessearch.summary(grep) · review CLEAN — witness falsified-first: conjunct 1 reproduced at the reported configuration, conjunct 2 covered by the new e2e test with the inertness tripwire · Heart — YELLOW within the 2026-08-31-pm batch launch ack (manifest drift + CI measurement blindness in web container), recorded in the task'sactive.mdNote for the batch review:
autofit-multistart-iterations(the quick-update wiring task) touches the same seam — merge this first per the batch record's serial order; its wiring change must flip the new test'squick_update_count == 0tripwire to a "fired" assertion.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01RMc7X2QncxHM4GEC7b4K4P
Generated by Claude Code