Skip to content

Reject stale truth files in the simple cluster cache - #532

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/stale-auto-simulated-cluster-dataset
Nov 24, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/stale-auto-simulated-cluster-dataset

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #445.

Scripts Changed

The simple-cluster cache gate now requires the scaling-member CSV and loads the saved tracer with the installed PyAutoLens before returning the dataset to the caller. A missing table or incompatible tracer names the offending file and explains how to regenerate it. This applies to both cluster profiling cells and the robust-settings sweep, including newly simulated outputs. Other datasets keep their existing cache and resolution policy.

Validation checklist

  • Reproduced on main at 9b4a645 using the original legacy dataset. The gate returned with the CSV missing, then deserialization failed on the old rs keyword.
  • Witness on the patched branch. The old directory raised an error naming scaling_galaxies.csv. Pairing its tracer with a current CSV raised an error naming tracer.json and rs. A clean CPU run of scripts/misc/simulators/cluster.py produced a 168-byte member CSV and a loadable PyAutoLens Tracer. The patched cache gate accepted that output.
  • Regression module passed (one test). Ruff passed.
  • Targeted Heart smoke selected no script for this profiling repo. Ran the repo's import smoke directly on the image-plane and source-plane likelihood breakdown cells and imported the changed helper successfully.
  • Scoped dev-ship Heart verdict GREEN. CI for this repo is deferred to PR checks. The brief acknowledged the organism-wide manifest mismatch and missing release rehearsal.
  • Independent review CLEAN on the final diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

decision-taken A shift worker made a decision requiring human review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: stale auto-simulated dataset/cluster/simple is never regenerated

1 participant