Repository navigation
fix: end search.summary with a 'Resampling Info' section - #1554
Merged
Merged
Conversation
…ummary The gradient searches' resampling diagnostics (Resurrections, the NaN lane-step counts and rates, Constrained Lane-Steps) were emitted between the sample counts and the timing lines. They now close the file: one blank line after the timing/visualization lines, a 'Resampling Info' subheader, then the lines. Every emit-nothing guard is unchanged — a search without the counters writes a byte-identical summary. PyAutoFit#1551 Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017qZxCvpS4on7XtUe4cxyxr
This was referenced Aug 31, 2026
Jammy2211
pushed a commit
that referenced
this pull request
Sep 1, 2026
…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
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.
Closes #1551.
Summary
The gradient searches' resampling diagnostics (Resurrections, Value/Gradient-NaN Lane-Step counts and rates, Constrained Lane-Steps) were emitted in the middle of
search.summary, between the sample counts and the timing lines. They now close the file: one blank line after the timing/visualization lines, aResampling Infosubheader, then the lines — as requested verbatim in the prompt. The block is extracted into_resampling_summary_fromand appended bysearch_summary_to_file; every emit-nothing guard is unchanged, so a search without the counters (e.g. Nautilus) writes a byte-identical summary.API Changes
None — internal output-format change only. No symbols added, removed, or re-signatured;
search_summary_from_samples(not exported fromautofit/__init__.py, no external callers) no longer includes the resampling lines, which are appended at file level instead.See full details below.
Test Plan
-n autohits a pre-existing xdist collection-ID instability intest_prior_properties.py, unrelated to this diff)test_autofit/text/test_text_util.py: 12 passed, including a new Witness-shaped end-of-file ordering testmcmc.pyfirst failed on the container missing optionalzeus-mcmc; passed after installing the pinned optional samplers — environment gap, not this diff)search.summaryendsVisualization Time (seconds) = …, blank line,Resampling Info, then the six lines; the LBFGS summary (no counters) is unchangedFull API Changes (for automation & release notes)
Changed Behaviour
autofit.text.text_util.search_summary_from_samples— no longer emits the resampling lines (Clipper/Scaler lines unchanged); they are appended bysearch_summary_to_file.search.summarylayout — for searches carrying the resampling counters, the file now ends with a blank line, aResampling Infosubheader, and the six resampling lines. Searches without the counters write byte-identical files (verified differentially againstorigin/main's module).Added
autofit.text.text_util._resampling_summary_from(samples_info)— private helper holding the moved block, guards preserved verbatim.Migration
search.summaryexists in the organism (grepped); human readers find the diagnostics at the bottom of the file.Validation checklist (--auto run — plan was not pre-approved)
test__search_summary__nan_counters_absent_for_other_searches+ file-level no-section assertion · Heart STALE score 35 (stale reasons: five library statuses unknown, no test report.json in this container; shift heart-ack per batch record: manifest drift 1 mismatch, CI-status measurement blindness) · adversary CLEAN (independent model; witness basis-cited by an end-to-end exact-tail run, byte-identical claim by differential old-vs-new module runs across four no-counter configurations)Flagged decision (decide-and-flag, batch launch — one per PR)
supervised(the bug work-type cap clamps the prompt'ssafeheader).awaiting-input, so it is reviewable in the 2026-08-31-pm slot (three PyAutoFit members merge serially at review; this one first).Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_017qZxCvpS4on7XtUe4cxyxr
Generated by Claude Code