Skip to content

cortex: euclid_dr1_prelim → active; phase 4 launched (342301) - #19

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/euclid-dr1-prelim-phase4-launch
Sep 7, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/euclid-dr1-prelim-phase4-launch

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Phase 4 of the euclid-dr1-prep epic — the DR1 prelim 10-lens science run — is launched on RAL. This PR is the Cortex ledger entry for it.

The run

  • Job: 342301_[0-9] — one SLURM array, 10 array tasks, one lens per task, partition ral, 8 CPUs and 64 GB per task, 36 h walltime.
  • Route: the pipeline's documented two-stage CPU chain, hpc/batch_cpu/submit_initial_lens_model_two_stage — vis_lp under JAX pinned to the CPU backend, then a fresh interpreter for vis_pix with the Numba sparse operator and a forked Nautilus pool. One submission, the process boundary preserved, set -e gating stage 2 on stage 1. There is no afterok chain script in the repo; this single-submission script is the chain hpc/README.md documents.
  • Submitted with the project's own CLI: hpc/sync submit cpu submit_initial_lens_model_two_stage. All 10 tasks were R within 30 s; task 0's log shows the dataset loaded (926 pixels noise-scaled from segmentation/artefact_binary.fits, 3457 image-pixels masked) and vis_lp sampling.
  • Expected ≈3 h 17 min per lens, from the 2026-09-03 RAL acceptance run, well inside the phase's 48:00 budget.

Sort key

Plain Python sorted() — byte-wise ascending — over the directory names under /mnt/c/Users/Jammy/Science/euclid/dataset/dr1_prelim_grade_ab/ (3097 entries, all directories, no files), first 10 taken.

The 10 datasets (sample dr1_prelim_grade_ab)

# dataset
0 Tile102005065RA0135279431487DECNEG0701599765928
1 Tile102007299RA0702283866574DECNEG0660415308762
2 Tile102007899RA0631694872236DECNEG0650584220817
3 Tile102007903RA0668831429074DECNEG0648901814905
4 Tile102008165RA0109664211519DECNEG0642902327064
5 Tile102008219RA0727851454839DECNEG0644382776514
6 Tile102008468RA3567390985250DECNEG0647172046261
7 Tile102008475RA0039777627054DECNEG0637715426503
8 Tile102008532RA0683495100072DECNEG0642073858939
9 Tile102008848RA0601376380877DECNEG0634605061157

Task 0 is the epic's reference tile, so the numerics comparison against dr1_prelim_grade_ab_catalogue_csvs_20260623/ has a directly matching row for every one of the 10.

The project, born from the pipeline repo alone

/mnt/c/Users/Jammy/Science/euclid_dr1_prelim is a plain git clone of PyAutoLabs/euclid_strong_lens_modeling_pipeline at dbdbe1d, per autolens_assistant/skills/euclid_setup_pipeline.md. No code was copied from the old Science/euclid tree — only the 10 dataset folders (cp -r, 14 MB). RAL root is /mnt/ral/jnightin/euclid_dr1_prelim, exactly the row's ral_root.

Local adaptations, all of them documented setup steps in hpc/README.md "Setting up the cluster" and euclid_hpc_runs.md:

  • hpc/sync.conf from the example — HPC_HOST=euclid_jump, HPC_BASE=/mnt/ral/jnightin, PROJECT_NAME=euclid_dr1_prelim. hpc/sync check → all checks passed.
  • The project's own copy of submit_initial_lens_model_two_stage: sample=dr1_prelim_grade_ab, the 10-entry datasets list, --array=0-9, the mail address, --partition=ral (setup step 3 — RAL's CPU partition is ral; the repo default cpu is not a partition there), and export PROJECT_PATH / export PYAUTO_HPC_BASE in-script (setup steps 1-2 — hpc/sync submit ssh's cd … && sbatch and carries no exports, and the RAL login profile sets neither).
  • config/ is untouched — the committed, laptop-friendly config is the one the 2026-09-03 RAL acceptance run used and completed under, so it is the proven-on-RAL configuration.

What this PR changes

  • phases/euclid_dr1_prelim/dr1_prelim_10_lens_science_run.md — ready → submitted via scripts/cortex.py move … --run '342301_[0-9]' --partition ral, plus a dated ## Notes bullet recording the sort key, the 10 datasets, the job ids and the two paths.
  • projects.yaml — euclid_dr1_prelim.status: planned → active; the note's "flips to active when phase 4 launches" replaced with active 2026-09-07: phase 4 launched (jobs 342301_[0-9]).
  • dashboard.md / dashboard.html — regenerated with pyauto-brain cortex dashboard --apply.
  • tests/test_cortex.py — the live-body-map test stopped asserting euclid_dr1_prelim is planned. It was the last planned row in the live map; planned as a legal status is already covered on the fixture by test_planned_and_retired_are_legal_statuses.

projects.yaml and tests/ are CODE for ledger_merge.py, so this branch will not auto-merge — a human merges it.

Checks

  • python3 scripts/cortex.py check → cortex check: OK
  • pyauto-brain cortex dashboard --check → dashboard.md + dashboard.html are current
  • python3 -m pytest tests -q → 122 passed
  • pyauto-brain cortex checkin --dry-run → lists euclid_dr1_prelim [active] with cd /mnt/c/Users/Jammy/Science/euclid_dr1_prelim && hpc/sync pull and the live phase to score

Follow-up worth a look when the run is ruled

The euclid_dr1_prelim row still carries its planned-era ledger: wiki/project/state.md and witness_file: results/**/*.json. The born project is a pipeline clone: it has no wiki/ and writes to output/. Left alone here to keep this diff to the launch; worth correcting in a follow-up (projects.yaml is a human's turn either way).

🤖 Generated with Claude Code

https://claude.ai/code/session_01YAZs3f6AAAZrBB3J7vwWdD

Phase 4 of the euclid-dr1-prep epic — the 10-lens DR1 prelim science run —
is submitted on RAL as array job 342301_[0-9], one lens per array task,
through the pipeline's documented two-stage CPU chain
(hpc/batch_cpu/submit_initial_lens_model_two_stage: vis_lp under JAX on the
CPU backend, then a fresh interpreter for vis_pix with the Numba sparse
operator and a forked pool).

The project was born by cloning euclid_strong_lens_modeling_pipeline
(dbdbe1d) into /mnt/c/Users/Jammy/Science/euclid_dr1_prelim and nothing
else — no code from the old Science/euclid tree. Only the 10 chosen
datasets were copied across.

tests/test_cortex.py stopped asserting euclid_dr1_prelim is `planned`:
it was the last `planned` row in the live map, and `planned` as a legal
status is already covered on the fixture by
test_planned_and_retired_are_legal_statuses.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAZs3f6AAAZrBB3J7vwWdD
@Jammy2211

Copy link
Copy Markdown
Contributor Author

Launch-time observation, ~8 min in: one of the ten array tasks has already died.

342301_3 — Tile102007903RA0668831429074DECNEG0648901814905 — FAILED at 00:03:52, exit 1:0, during its first quick update:

autogalaxy.exc.ModelParameterException: ell_comps must satisfy
ell_comps[0]**2 + ell_comps[1]**2 < 1; got (0.7157813669373315, 0.7111659244815104),
whose magnitude is 1.0090093841973504

raised from PyAutoGalaxy/autogalaxy/profiles/validate.py::validate_ell_comps, reached through Gaussian (linear) construction inside instance_for_arguments — i.e. the max-likelihood model the quick-update visualiser tried to instantiate sat just outside the ell_comps unit disk. The vis_lp search was in a bad region at that point (log L ≈ -7.2e7, f_live 1.0000).

The other nine tasks are healthy — all RUNNING and past 2-4 quick updates with no ModelParameterException in their .err:

task state quick updates ell_comps exceptions
0,1,2,6,8,9 RUNNING 3 0
4 RUNNING 4 0
5,7 RUNNING 2 0
3 FAILED (00:03:52) 1 2

The ledger in this PR is deliberately not scored for this. The run line stays 342301_[0-9]: submitted; splitting the task set and marking 342301_3 failed is the check-in door's job (pyauto-brain cortex checkin/collect), not the launch's. Flagging it here so it is not a surprise at the first check-in, and because "the sampler can walk the ell_comps prior outside the unit disk and the quick-update visualiser then raises" looks like a real finding for the phase's verdict rather than a transient — related ground: project_ell_comps_disk_constraint_task and feedback_gradient_lanes_settle_outside_ell_comps_disk.

No resubmit has been attempted: whether task 3 is re-run as-is, re-run with a constrained prior, or treated as a phase-4 finding is a science judgment for the human.

@Jammy2211
Jammy2211 merged commit e9f6ba7 into main Sep 7, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/euclid-dr1-prelim-phase4-launch branch September 7, 2026 16:29
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.

1 participant