Skip to content

fix: lint red after PyAutoArray#634 — re-pin abstract.py anchors, probe shared-Cholesky route - #424

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/profiling-lint-634-drift
Oct 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/profiling-lint-634-drift

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

autolens_profiling lint goes red against PyAutoArray main since PyAutoArray#634 (02aa2e48); seen on PR #422 (run 38883395602, 2 of 1456 tests). This re-pins the abstract.py anchors and makes the positive-negative probe see the new shared-Cholesky route.

Closes #423

Scripts Changed

  • scripts/misc/likelihood_breakdown/xla_attribution.py: LIBRARY_ANCHOR_REVISION → 02aa2e48. Re-pinned _ABSTRACT_LOG_DET_BODY (969,1013)→(1037,1081), _CURVATURE_CALLER (1015,1096)→(1083,1177), _REGULARIZATION_CALLER (1116,1177)→(1197,1258), regularization_term (903,967)→(971,1035), mapped_reconstruction (832,902)→(900,970), second reconstruction_scatter (714,830)→(714,898). Shifts come from difflib between 02aa2e48^ and 02aa2e48, and every anchored line is text-identical. Anchors above line 763 are unchanged.
    • Decision: two whole-function spans (reconstruction_scatter and the curvature caller) now enclose new #634 code. They follow the function body as the AST requires, and the new branch is NumPy-only (the factor is None on JAX), so it never appears in an XLA trace.
  • scripts/misc/likelihood_breakdown/library_solver_injection.py: positive_negative_probe also wraps scipy.linalg.cho_solve for the context. It counts only calls made directly from AbstractInversion.reconstruction. Counts are now {calls, lu_solve, shared_cholesky} with calls = their sum. The citation abstract.py:540 is corrected to 568-569.
  • scripts/imaging/pixelized/fixed_light_library.py: records which route-(c) path ran (two new JSON keys), and route_verified names the path.
  • scripts/misc/test/test_fixed_light_library.py, test_xla_attribution.py: fixture lines follow the anchors. New test: the probe is silent on the positive-only route and restores both patched functions.

Validation

Heart RED override (development only), AUTONOMY.md "Human override for Heart RED (development only)"

  • date: 2026-10-16
  • authorized-by: live human in session 13efb443 (Claude Code CLI, Opus 5.5), AskUserQuestion answer "Override, then merge both (Recommended)" for this task (profiling-lint-634-drift, autolens_profiling#423); the same answer is the explicit merge command for this PR and PR docs: mark gate-60 wording historical; link Pulse route-gate knowledge #422, valid this turn only and only once every required check is green
  • reasons (verbatim, pyauto-heart readiness --json): "PyAutoFit: 1 commit(s) behind origin"; "PyAutoGalaxy: 1 commit(s) behind origin"; "PyAutoLens: 1 commit(s) behind origin"; "release validation incomplete: no rehearsal for current source"
  • passed branch gates: pytest scripts/misc/test/ 1457 passed / 6 skipped / 0 failed against PyAutoArray e59d5fa9 (contains #634); ruff check . and ruff format --check . clean; architect review of the probe + anchor diff
  • permitted: commit, push, PR-open; merge only on all-green CI this turn

🤖 Generated with Claude Code

…fter PyAutoArray#634 (#423)

PyAutoArray#634 (02aa2e48) inserted 81 lines in inversion/abstract.py and
routes the NumPy positivity-off solve through a shared Cholesky factor.
Re-pin every xla_attribution abstract.py anchor (AST + difflib between
02aa2e48^ and 02aa2e48, anchored content identical) and make
positive_negative_probe count both route-(c) paths (lu_solve,
shared_cholesky; calls = their sum).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 0270578 into main Oct 16, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/profiling-lint-634-drift branch October 16, 2026 10:40
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: lint red after PyAutoArray#634 — re-pin abstract.py anchors, probe shared-Cholesky route

1 participant