Repository navigation
Closed
Description
Overview
The release PyAutoBuild run fails three downstream latent robustness guards before they reach the intended latent masking assertion. In PYAUTO_TEST_MODE=2 / =3, PyAutoFit bypasses the sampler and _build_fake_samples always creates exactly two fake samples. The latent robustness guards need more than one latent batch (>3 samples) to exercise the fixed JAX latent masking path, so they fail with AssertionError: Need >3 samples ... got 2.
Plan
- Increase the deterministic fake sample count used by bypass test mode while keeping bypass mode cheap and sampler-free.
- Preserve the current best-at-prior-median sample and deterministic perturbed samples.
- Add focused PyAutoFit coverage proving bypass mode returns enough samples for multi-batch downstream checks.
- Verify the affected downstream latent robustness scripts progress past the sample-count gate.
Detailed implementation plan
Affected Repositories
- PyAutoFit (primary)
Work Classification
Library
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
./PyAutoFit |
main |
clean |
./PyAutoPrompt |
main |
new prompt file |
Suggested branch: feature/test-mode-fake-sample-count
Worktree root: ~/Code/PyAutoLabs-wt/test-mode-fake-sample-count/
Implementation Steps
- Update
PyAutoFit/autofit/non_linear/search/abstract_search.py::_build_fake_samples. - Return at least four deterministic fake samples from bypass mode instead of exactly two.
- Keep the first sample at the prior median / canonical parameter vector so existing max-likelihood and summary behavior remains stable.
- Generate additional small deterministic perturbations with lower likelihoods and positive weights.
- Add or update tests under
PyAutoFit/test_autofit/non_linear/search/for bypass fake sample count. - Run targeted PyAutoFit tests.
- Run the three downstream latent robustness scripts if feasible:
autofit_workspace_test/scripts/features/latent_nan_robustness.pyautogalaxy_workspace_test/scripts/latent/latent_nan_robustness.pyautolens_workspace_test/scripts/latent/latent_nan_robustness.py
Key Files
autofit/non_linear/search/abstract_search.py— deterministic fake samples for bypass test mode.test_autofit/non_linear/search/...— focused regression coverage.
Original Prompt
Click to expand starting prompt
ok back to the release list
go
Metadata
Metadata
Assignees
Labels
No labels
Activity
Jammy2211 commentedon Jun 8, 2026
Smoke Test Results — 2026-06-08
All 46 smoke tests passed across 6 workspaces; 2 configured entries were skipped.
Also verified the three release-blocking latent robustness scripts directly against the PyAutoFit worktree; each now runs with 4 bypass samples.
Jammy2211 commentedon Jun 8, 2026
Shipped — 2026-06-08
PR
Summary
Expanded bypass-mode fake samples from two to four deterministic samples in
PYAUTO_TEST_MODE=2/3. This keeps bypass mode cheap while allowing downstream latent-variable and multi-batch sample checks to run.Verification
Jammy2211 commentedon Jul 28, 2026
Closing as complete — swept by an issue-tracker reconciliation pass.
This work shipped and is recorded in PyAutoMind:
PyAutoMind/complete/2026/06/test-mode-fake-sample-count.mdVerified via two independent legs: the record claims this issue in its
- issue:header, and its pull request is confirmed merged. Reopen if anything here is still outstanding.