Repository navigation
Closed
Description
Overview
Fix the active latent/JAX release failures that still reproduce after the latent-class refactor merges. The work starts at the PyAutoFit-level JAX visualization dispatch assertion, then validates the autogalaxy workspace/test failures that depend on the same visualization and latent paths.
Plan
- Restore or replace the JAX visualization dispatch contract in a way that matches the current latent-refactor architecture.
- Verify the PyAutoFit dispatch assertion first because it is the smallest direct failure.
- Re-run the autogalaxy results and visualization failures to separate library-level regressions from workspace-script expectations.
- Patch workspace scripts only if the library contract is correct and the scripts are stale.
- Re-run the targeted Group A release failures, then the relevant unit/smoke checks.
Detailed implementation plan
Affected Repositories
- PyAutoFit (primary)
- autogalaxy_workspace
- autogalaxy_workspace_test
Work Classification
Both: library-first, with workspace follow-up if the scripts need migration.
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoFit | feature/latent-old-api-cleanup | dirty: autofit/example/analysis.py |
| ./autogalaxy_workspace | main | clean |
| ./autogalaxy_workspace_test | main | clean |
Warning: the canonical PyAutoFit checkout has unregistered local work on feature/latent-old-api-cleanup. Development should use a task worktree from the current main commit so that local cleanup work is preserved.
Suggested branch: feature/latent-jax-release-failures
Worktree root: ~/Code/PyAutoLabs-wt/latent-jax-release-failures/
Implementation Steps
- In PyAutoFit, inspect
autofit/non_linear/analysis/analysis.py,autofit/non_linear/analysis/latent.py, andautofit/non_linear/fitness.pyto confirm the intended post-refactor visualization dispatch path. - Fix
Analysis.fit_for_visualization(...)or the workspace assertion contract soautofit_workspace_test/scripts/jax_assertions/fitness_dispatch.pypasses without reintroducing stale state. - Run the PyAutoFit targeted tests covering analysis/latent/fitness dispatch.
- Re-run these scripts against the task worktree environment:
autofit_workspace_test/scripts/jax_assertions/fitness_dispatch.pyautogalaxy_workspace/scripts/guides/results/start_here.pyautogalaxy_workspace_test/scripts/ellipse/modeling_visualization_jit.pyautogalaxy_workspace_test/scripts/ellipse/visualization_jax.pyautogalaxy_workspace_test/scripts/interferometer/modeling_visualization_jit.py
- If autogalaxy workspace/test failures remain and the PyAutoFit contract is correct, route a workspace follow-up to migrate stale scripts or fix workspace data/config issues.
Key Files
PyAutoFit/autofit/non_linear/analysis/analysis.py— JAX visualization dispatch entry point.PyAutoFit/autofit/non_linear/analysis/latent.py— refactored latent engine; may be involved in the empty-stack failure.PyAutoFit/autofit/non_linear/fitness.py— precompile/dispatch behaviour for JAX searches.autofit_workspace_test/scripts/jax_assertions/fitness_dispatch.py— smallest direct failing assertion.autogalaxy_workspace_test/scripts/*/modeling_visualization_jit.pyandvisualization_jax.py— downstream integration checks.
Original Prompt
Click to expand starting prompt
ok fix the first group
Context from adjusted report:
autofit_workspace_test/scripts/jax_assertions/fitness_dispatch.pyfails withAnalysis has no attribute _jitted_fit_from.autogalaxy_workspace/scripts/guides/results/start_here.pyfails with invalid/zero noise-map values.autogalaxy_workspace_test/scripts/ellipse/modeling_visualization_jit.pyfails with expectedjax.Array, gotnumpy.float64.autogalaxy_workspace_test/scripts/ellipse/visualization_jax.pyfails becausefit_ellipse.pngis not produced.autogalaxy_workspace_test/scripts/interferometer/modeling_visualization_jit.pyfails withcompute_latent_samplesempty stack.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Jammy2211 commentedon Jun 9, 2026
First Failure Group Fixed — 2026-06-09
PRs
Status
All first-group targeted reruns passed locally, and all PR CI checks are green. The PRs are labelled
pending-releaseand are ready for library-first merge if approved.Summary
The fixes cover the no-latent-key JAX crash, stale JAX visualization assertions, the saved-results guide noise-map reload, and missing ellipse JAX release-build environment overrides.
Jammy2211 commentedon Jun 9, 2026
Shipped — 2026-06-09
PRs
Summary
Merged the first grouped release-failure fixes after the latent refactor. The fix set covers the no-latent-key PyAutoFit crash, stale JAX visualization assertions, the Autogalaxy results guide noise-map reload, and missing ellipse JAX release-build environment overrides.
Verification
Targeted release reruns, PyAutoFit full suite, PyAutoBuild section checks, and all PR CI passed before merge. Kaplinghat branches were not touched.