Skip to content

fix: MultiStartResumeNaNCounters uses a normal update cadence (2 → 100) - #118

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/multistart-resume-cadence
Nov 4, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/multistart-resume-cadence

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

scripts/searches/MultiStartResumeNaNCounters.py ran its MultiStart searches with iterations_per_full_update=2. Each full update writes the samples and summary and renders 9 PNGs, about 3 s on this 1D Gaussian, so a single child search paid for about 200 of them. Over three weeks of Workspace Smoke runs the script went from 164 s to 225 s to a TIMEOUT at the 300 s cap (PyAutoHeart run 41432188469). That timeout is the only release-readiness finding on the Heart board (release:361c87850b823009).

A value of 2 is not a realistic setting; it was chosen only so that a checkpoint exists before the kill. This PR changes it to 100. The search converges early, at about 142 steps, so the step-100 checkpoint is the one mid-run checkpoint, and both NaN counters are already non-zero when the script kills the search. The assertion is unchanged: a killed and resumed run must report exactly the same NaN accounting as an uninterrupted run.

Closes #117

Scripts Changed

  • scripts/searches/MultiStartResumeNaNCounters.py: iterations_per_full_update 2 → 100; run_search docstring now explains the choice.

Validation

Run locally from the worktree (PyAutoFit main, Py3.13):

Cadence Result Wall time Counters at kill (value-NaN / grad-NaN) Resumed vs uninterrupted
2 (old) TIMEOUT >400 s n/a n/a
50 PASS 54 s 45 / 0 match
100 (this PR) PASS 46 s 201 / 1 match: 142 steps, 403 / 9

No library change, no cap increase and no no_run entry.

Heart was YELLOW at ship time for two reasons: (1) this timeout, which the PR fixes, and (2) no release rehearsal for the current source, which is unrelated to this change. The human approved the fix, which counts as the acknowledgement. Tier: judge, so the merge is the human's /prm.

🤖 Generated with Claude Code

iterations_per_full_update=2 forced ~200 full updates (samples, summary,
9 PNGs) per child search, so the script crept past the 300s smoke cap
(164s -> 225s -> TIMEOUT). 100 is a realistic cadence that still gives one
mid-run checkpoint before early convergence (~142 steps), with both NaN
counters non-zero at the kill. Local: PASS in 46s, resumed == uninterrupted.

Closes #117

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 400dba8 into main Nov 4, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/multistart-resume-cadence branch November 4, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: MultiStartResumeNaNCounters uses a normal update cadence (2 → 100)

1 participant