diff --git a/AGENTS.md b/AGENTS.md index 29875db..17096d1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,9 +1,10 @@ # AGENTS.md — Agent instructions for autocti_assistant You are working inside **autocti_assistant**, the PyAutoCTI AI Assistant: an agent workspace -combining instructions, skills, wiki content, and science-project machinery for real lens -modelling. **This file is the canonical, agent-agnostic source of truth.** Claude Code, Codex -and other agents read it directly; never maintain a parallel copy. +combining instructions, skills, wiki content, and science-project machinery for CCD +charge-transfer inefficiency (CTI) calibration and correction. **This file is the canonical, +agent-agnostic source of truth.** Claude Code, Codex and other agents read it directly; +never maintain a parallel copy. **Interaction principle.** When a decision genuinely depends on something you don't know, ask one focused question — never default to the longest possible explanation. @@ -35,14 +36,16 @@ ask one focused question — never default to the longest possible explanation. ## Safety invariants — default non-negotiable -Apply in every session. Overridable only by the named maintainer workflow that owns the -rule (`ac_update_wiki` for `wiki/core/`; `PYAUTO_SKIP_API_GATE=1` for the code gate during a -deliberate refactor). Two are NEVER overridden: the real-data gate and never-rewrite-history. +Apply in every session. The wiki and code gate rules define their maintainer exceptions +below. The real-data inspection and history rules apply without exception. -- **Real data → inspect before fitting.** Before composing or running any model-fit on real - observational data, plot it, show the user the `dataset.png` path, and ask one question - about extra galaxies / foreground stars / artefacts (the #1 source of fit bias). Procedure, - bundled-dataset masks, exemptions: [`skills/ac_prepare_imaging_data.md`](./skills/ac_prepare_imaging_data.md). Simulated data is exempt. +- **Real data → inspect before fitting.** Before composing or running any model fit on real + detector data, plot the dataset and show the user the absolute path to `dataset.png`. + Ask one focused question about artifacts or regions that should be excluded, such as + cosmic rays, bad pixels or columns, or contaminated charge-injection regions. + Use [`ac_plot`](./skills/ac_plot.md) for the inspection plot and + [`ac_mask_and_extract`](./skills/ac_mask_and_extract.md) for FPR/EPER masking and + extraction. Simulated data is exempt. - **Code gate.** A PreToolUse hook validates PyAuto* symbols against the installed library and blocks ones written from memory. If blocked, don't guess — grep `skills/` or introspect `dir()`, then re-run. Claude Code and Codex both register this hook from their @@ -56,7 +59,9 @@ deliberate refactor). Two are NEVER overridden: the real-data gate and never-rew [`skills/ac_audit_skill_apis.md`](./skills/ac_audit_skill_apis.md).) - **Never write into `output/`** (PyAutoFit runtime) **or `sources/`** (cloned repos); agent-authored Python → `scripts/` or `scripts/scratch/`. -- **`wiki/core/` is read-only** (only `ac_update_wiki` rewrites it); append to `wiki/project/`. +- **`wiki/core/` is read-only in ordinary sessions.** Change it only during a deliberate + reference refresh requested by a maintainer. Ground refreshed guidance in installed + source. Append project notes to `wiki/project/`. - **Source-edit boundary.** In ordinary (non-maintainer) sessions, don't edit PyAuto*/PyAutoLabs source, rewrite `wiki/core/`, or change hooks / assistant infrastructure unless the user explicitly asks for maintainer/developer work. @@ -75,28 +80,20 @@ deliberate refactor). Two are NEVER overridden: the real-data gate and never-rew Map every request onto one or more layers: 1. **Instructions** (this file, `README.md`) — meta. -2. **Skills** (`skills/*.md`, exposed through generated Claude and Codex adapters) — *procedural*: how to do a - task. Lensing skills are `ac_.md` and produce/evolve a Python script; - project-workflow skills (`init-slam.md`, `start-new-project.md`) drive repo-level - operations; **euclid mode** skills are `euclid_.md` — they pair the - collaboration's `euclid_strong_lens_modeling_pipeline` repo to the assistant, and any - request about modeling *Euclid* data routes through them (entry: - `skills/euclid_setup_pipeline.md`). Skills starting with `_` (`_style.md`, - `_bootstrap_skill.md`) are meta-skills — don't surface them when answering science - questions. -3. **Wiki** (`wiki/**/*.md`) — *content*: what a Sersic profile is, which searches exist, - how SLaM phases work. +2. **Skills** (`skills/*.md`, exposed through generated Claude and Codex adapters) — + *procedural*. CTI skills use `ac_.md` and cover simulation, calibration, + correction, and result inspection. [`start-new-project`](./skills/start-new-project.md) + handles project setup. Files starting with `_` are authoring guidance. +3. **Wiki** (`wiki/**/*.md`) — *content* on detector CTI, trap physics, and calibration. > **Rule of thumb.** *How do I do X?* → a skill. *What / which / why X?* → the wiki. *Build > something end-to-end?* → compose skills, citing wiki pages as you go. -The wiki has four sub-wikis: **`wiki/core/`** (curated PyAuto\* reference, read-only — -refreshed by `ac_update_wiki`), **`wiki/literature/`** (strong-lensing science reference, -own schema in [`wiki/literature/AGENTS.md`](./wiki/literature/AGENTS.md), `[[wiki-link]]` -cross-refs), **`wiki/euclid/`** (Euclid mission + Euclid strong-lensing literature, -same schema as `literature/`, paired with the `euclid_*` skills), **`wiki/project/`** -(this clone's `state.md` head pointer, running journal and `profile.md`). "The wiki" means `wiki/core/` unless -`literature/`, `euclid/` or `project/` is named. +The wiki has three sections. [`wiki/core/`](./wiki/core/index.md) is the read-only CTI +reference. [`wiki/literature/`](./wiki/literature/index.md) covers detector physics, +correction algorithms, and instrument calibration, including Euclid VIS. Its +[schema](./wiki/literature/AGENTS.md) defines `[[wiki-link]]` cross-references. +`wiki/project/` holds this clone's state, journal, and profile. --- @@ -203,8 +200,8 @@ When **not** in maintainer mode, commit at natural checkpoints (a script + its `scripts/scratch/` (gitignored); `search.fit(...)` output → `./output/`. - **Plot path announcement.** The plot API is functional: pass `output_path="scripts/scratch//"`, `output_filename=...`, `output_format="png"` - straight to the `aplt.*` plotting call (e.g. `aplt.subplot_imaging_dataset`, - `aplt.subplot_fit_imaging`) — there is no separate `aplt.Output`/`MatPlot2D` object. + straight to the `aplt.*` plotting call (e.g. `aplt.subplot_imaging_ci`, + `aplt.subplot_fit_ci`) — there is no separate `aplt.Output`/`MatPlot2D` object. Then `print(...)` the absolute path, and after running **quote that absolute path** and offer to open it (platform opener: `open` on macOS, `xdg-open` on Linux, `explorer.exe`/`wslview` from WSL) — don't just say "plot saved". One offer per plot. @@ -217,15 +214,10 @@ Load operational references on demand, not every session: - **Science projects.** `autocti_assistant` is the copilot; a science project is a separate repo created and managed through [`start-new-project`](./skills/start-new-project.md). -- **Dataset layout + `info.json`** → [`wiki/core/operations/dataset.md`](./wiki/core/operations/dataset.md). -- **HPC science** (cores, JAX/GPU, SLURM concepts) → [`wiki/core/operations/hpc.md`](./wiki/core/operations/hpc.md); - **HPC infrastructure shipped here** (`hpc/template.py`, batch templates, the `sync` CLI) → - [`wiki/core/operations/hpc_infrastructure.md`](./wiki/core/operations/hpc_infrastructure.md). -- **Installation** → [`wiki/core/operations/installation.md`](./wiki/core/operations/installation.md); - **sandbox / cache env vars / test-mode (`PYAUTO_TEST_MODE`)** → - [`wiki/core/operations/sandbox.md`](./wiki/core/operations/sandbox.md). -- **External resources** (HowToLens, RTD, `autocti_workspace`) + audience routing → - [`wiki/core/external/`](./wiki/core/external/index.md), [`skills/_style.md`](./skills/_style.md) "Adaptive depth". +- **Dataset geometry and examples** → [`ac_workspace_navigation`](./skills/ac_workspace_navigation.md). +- **Installation and writable caches** → [`ac_setup_environment`](./skills/ac_setup_environment.md). +- **Fit setup and test mode** → [`ac_fit_cti_model`](./skills/ac_fit_cti_model.md). +- **Choosing a reference for the reader** → [`skills/_style.md`](./skills/_style.md) under "Adaptive depth". ## Never rewrite history diff --git a/PENDING.md b/PENDING.md index 76b31d4..64a5928 100644 --- a/PENDING.md +++ b/PENDING.md @@ -1,390 +1,15 @@ -# PENDING — the newborn's growth queue +# CTI maintenance queue -This assistant was born as a **lightweight-seed** clone: the generic -machinery was copied from the reference; everything domain-specific below -is scaffolded, not written. Grow it in use — each line is a future skill, -wiki page or dataset, in the reference's shape. - -- [ ] `.claude/skills/ac_adaptive_pixelization.md` — regenerate for this domain (reference: `.claude/skills/al_adaptive_pixelization.md`) -- [ ] `.claude/skills/ac_aggregator_bulk_analysis.md` — regenerate for this domain (reference: `.claude/skills/al_aggregator_bulk_analysis.md`) -- [x] `.claude/skills/ac_audit_skill_apis.md` — written 2026-08-24 (autocti_assistant#25); a symlink into `skills/`, per the repo's convention -- [ ] `.claude/skills/ac_build_imaging_model.md` — regenerate for this domain (reference: `.claude/skills/al_build_imaging_model.md`) -- [ ] `.claude/skills/ac_build_interferometer_model.md` — regenerate for this domain (reference: `.claude/skills/al_build_interferometer_model.md`) -- [ ] `.claude/skills/ac_chain_searches.md` — regenerate for this domain (reference: `.claude/skills/al_chain_searches.md`) -- [ ] `.claude/skills/ac_cluster_csv_api.md` — regenerate for this domain (reference: `.claude/skills/al_cluster_csv_api.md`) -- [ ] `.claude/skills/ac_configure_search.md` — regenerate for this domain (reference: `.claude/skills/al_configure_search.md`) -- [ ] `.claude/skills/ac_custom_analysis.md` — regenerate for this domain (reference: `.claude/skills/al_custom_analysis.md`) -- [ ] `.claude/skills/ac_custom_profile.md` — regenerate for this domain (reference: `.claude/skills/al_custom_profile.md`) -- [ ] `.claude/skills/ac_datacube_modeling.md` — regenerate for this domain (reference: `.claude/skills/al_datacube_modeling.md`) -- [ ] `.claude/skills/ac_debug_fit_failure.md` — regenerate for this domain (reference: `.claude/skills/al_debug_fit_failure.md`) -- [ ] `.claude/skills/ac_group_lensing.md` — regenerate for this domain (reference: `.claude/skills/al_group_lensing.md`) -- [ ] `.claude/skills/ac_hierarchicac_inference.md` — regenerate for this domain (reference: `.claude/skills/al_hierarchical_inference.md`) -- [ ] `.claude/skills/ac_inspect_results_mcp.md` — regenerate for this domain (reference: `.claude/skills/al_inspect_results_mcp.md`) -- [ ] `.claude/skills/ac_inspect_source_reconstruction.md` — regenerate for this domain (reference: `.claude/skills/al_inspect_source_reconstruction.md`) -- [ ] `.claude/skills/ac_mge_decomposition.md` — regenerate for this domain (reference: `.claude/skills/al_mge_decomposition.md`) -- [ ] `.claude/skills/ac_multi_dataset.md` — regenerate for this domain (reference: `.claude/skills/al_multi_dataset.md`) -- [ ] `.claude/skills/ac_plot_fit_residuals.md` — regenerate for this domain (reference: `.claude/skills/al_plot_fit_residuals.md`) -- [ ] `.claude/skills/ac_plot_tracer.md` — regenerate for this domain (reference: `.claude/skills/al_plot_tracer.md`) -- [ ] `.claude/skills/ac_point_source.md` — regenerate for this domain (reference: `.claude/skills/al_point_source.md`) -- [ ] `.claude/skills/ac_prepare_imaging_data.md` — regenerate for this domain (reference: `.claude/skills/al_prepare_imaging_data.md`) -- [ ] `.claude/skills/ac_refresh_api_docs.md` — regenerate for this domain (reference: `.claude/skills/al_refresh_api_docs.md`) -- [ ] `.claude/skills/ac_run_search.md` — regenerate for this domain (reference: `.claude/skills/al_run_search.md`) -- [ ] `.claude/skills/ac_run_slam_pipeline.md` — regenerate for this domain (reference: `.claude/skills/al_run_slam_pipeline.md`) -- [ ] `.claude/skills/ac_sensitivity_mapping.md` — regenerate for this domain (reference: `.claude/skills/al_sensitivity_mapping.md`) -- [ ] `.claude/skills/ac_simulate_dataset.md` — regenerate for this domain (reference: `.claude/skills/al_simulate_dataset.md`) -- [ ] `.claude/skills/ac_subhalo_detect.md` — regenerate for this domain (reference: `.claude/skills/al_subhalo_detect.md`) -- [ ] `.claude/skills/ac_time_delay_cosmography.md` — regenerate for this domain (reference: `.claude/skills/al_time_delay_cosmography.md`) -- [ ] `.claude/skills/ac_to_notebook.md` — regenerate for this domain (reference: `.claude/skills/al_to_notebook.md`) -- [ ] `.claude/skills/ac_update_wiki.md` — regenerate for this domain (reference: `.claude/skills/al_update_wiki.md`) -- [ ] `.claude/skills/ac_weak_lensing.md` — regenerate for this domain (reference: `.claude/skills/al_weak_lensing.md`) -- [ ] `.claude/skills/euclid_hpc_runs.md` — regenerate for this domain (reference: `.claude/skills/euclid_hpc_runs.md`) -- [ ] `.claude/skills/euclid_model_lens.md` — regenerate for this domain (reference: `.claude/skills/euclid_model_lens.md`) -- [ ] `.claude/skills/euclid_prepare_data.md` — regenerate for this domain (reference: `.claude/skills/euclid_prepare_data.md`) -- [ ] `.claude/skills/euclid_setup_pipeline.md` — regenerate for this domain (reference: `.claude/skills/euclid_setup_pipeline.md`) -- [ ] `.claude/skills/euclid_workflow_products.md` — regenerate for this domain (reference: `.claude/skills/euclid_workflow_products.md`) -- [ ] `.claude/skills/init-slam.md` — regenerate for this domain (reference: `.claude/skills/init-slam.md`) -- [ ] `README.md` — regenerate for this domain (reference: `README.md`) -- [ ] `benchmarks/RESULTS.md` — regenerate for this domain (reference: `benchmarks/RESULTS.md`) -- [ ] `benchmarks/prompts/easy_cosmos_web_ring.md` — regenerate for this domain (reference: `benchmarks/prompts/easy_cosmos_web_ring.md`) -- [ ] `benchmarks/prompts/hard_group_multi.md` — regenerate for this domain (reference: `benchmarks/prompts/hard_group_multi.md`) -- [ ] `benchmarks/prompts/medium_slacs0946_subhalo.md` — regenerate for this domain (reference: `benchmarks/prompts/medium_slacs0946_subhalo.md`) -- [ ] `benchmarks/prompts/teacher_workflow.md` — regenerate for this domain (reference: `benchmarks/prompts/teacher_workflow.md`) -- [ ] `benchmarks/runs/.gitkeep` — regenerate for this domain (reference: `benchmarks/runs/.gitkeep`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F115W/data.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F115W/data.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F115W/info.json` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F115W/info.json`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F115W/mask_extra_galaxies.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F115W/mask_extra_galaxies.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F115W/noise_map.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F115W/noise_map.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F115W/psf.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F115W/psf.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F150W/data.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F150W/data.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F150W/info.json` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F150W/info.json`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F150W/mask_extra_galaxies.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F150W/mask_extra_galaxies.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F150W/noise_map.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F150W/noise_map.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F150W/psf.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F150W/psf.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F277W/data.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F277W/data.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F277W/info.json` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F277W/info.json`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F277W/mask_extra_galaxies.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F277W/mask_extra_galaxies.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F277W/noise_map.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F277W/noise_map.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F277W/psf.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F277W/psf.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F444W/data.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F444W/data.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F444W/info.json` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F444W/info.json`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F444W/mask_extra_galaxies.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F444W/mask_extra_galaxies.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F444W/noise_map.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F444W/noise_map.fits`) -- [ ] `dataset/imaging/cosmos_web_ring/wavebands/F444W/psf.fits` — regenerate for this domain (reference: `dataset/imaging/cosmos_web_ring/wavebands/F444W/psf.fits`) -- [ ] `dataset/imaging/slacs0946+1006/data.fits` — regenerate for this domain (reference: `dataset/imaging/slacs0946+1006/data.fits`) -- [ ] `dataset/imaging/slacs0946+1006/info.json` — regenerate for this domain (reference: `dataset/imaging/slacs0946+1006/info.json`) -- [ ] `dataset/imaging/slacs0946+1006/mask_extra_galaxies.fits` — regenerate for this domain (reference: `dataset/imaging/slacs0946+1006/mask_extra_galaxies.fits`) -- [ ] `dataset/imaging/slacs0946+1006/noise_map.fits` — regenerate for this domain (reference: `dataset/imaging/slacs0946+1006/noise_map.fits`) -- [ ] `dataset/imaging/slacs0946+1006/positions.json` — regenerate for this domain (reference: `dataset/imaging/slacs0946+1006/positions.json`) -- [ ] `dataset/imaging/slacs0946+1006/psf.fits` — regenerate for this domain (reference: `dataset/imaging/slacs0946+1006/psf.fits`) -- [ ] `hpc/.gitignore` — regenerate for this domain (reference: `hpc/.gitignore`) -- [ ] `hpc/__init__.py` — regenerate for this domain (reference: `hpc/__init__.py`) -- [ ] `hpc/batch_cpu/error/.gitignore` — regenerate for this domain (reference: `hpc/batch_cpu/error/.gitignore`) -- [ ] `hpc/batch_cpu/output/.gitignore` — regenerate for this domain (reference: `hpc/batch_cpu/output/.gitignore`) -- [ ] `hpc/batch_cpu/template` — regenerate for this domain (reference: `hpc/batch_cpu/template`) -- [ ] `hpc/batch_gpu/error/.gitignore` — regenerate for this domain (reference: `hpc/batch_gpu/error/.gitignore`) -- [ ] `hpc/batch_gpu/output/.gitignore` — regenerate for this domain (reference: `hpc/batch_gpu/output/.gitignore`) -- [ ] `hpc/batch_gpu/template` — regenerate for this domain (reference: `hpc/batch_gpu/template`) -- [ ] `hpc/sync` — regenerate for this domain (reference: `hpc/sync`) -- [ ] `hpc/sync.conf.example` — regenerate for this domain (reference: `hpc/sync.conf.example`) -- [ ] `hpc/sync_jump.conf.example` — regenerate for this domain (reference: `hpc/sync_jump.conf.example`) -- [ ] `hpc/template.py` — regenerate for this domain (reference: `hpc/template.py`) -- [ ] `paper/.gitignore` — regenerate for this domain (reference: `paper/.gitignore`) -- [ ] `paper/README.md` — regenerate for this domain (reference: `paper/README.md`) -- [ ] `paper/paper.bib` — regenerate for this domain (reference: `paper/paper.bib`) -- [ ] `paper/paper.md` — regenerate for this domain (reference: `paper/paper.md`) -- [ ] `scripts/model_cosmos_web_ring.py` — regenerate for this domain (reference: `scripts/model_cosmos_web_ring.py`) -- [ ] `scripts/prepare_cosmos_web_ring.py` — regenerate for this domain (reference: `scripts/prepare_cosmos_web_ring.py`) -- [ ] `skills/ac_adaptive_pixelization.md` — regenerate for this domain (reference: `skills/al_adaptive_pixelization.md`) -- [ ] `skills/ac_aggregator_bulk_analysis.md` — regenerate for this domain (reference: `skills/al_aggregator_bulk_analysis.md`) -- [x] `skills/ac_audit_skill_apis.md` — written 2026-08-24 (autocti_assistant#25). Written from `audit_skill_apis.py` itself rather than adapted from the lensing sibling, so it describes this repo's actual checks. -- [ ] `skills/ac_build_imaging_model.md` — regenerate for this domain (reference: `skills/al_build_imaging_model.md`) -- [ ] `skills/ac_build_interferometer_model.md` — regenerate for this domain (reference: `skills/al_build_interferometer_model.md`) -- [ ] `skills/ac_chain_searches.md` — regenerate for this domain (reference: `skills/al_chain_searches.md`) -- [ ] `skills/ac_cluster_csv_api.md` — regenerate for this domain (reference: `skills/al_cluster_csv_api.md`) -- [ ] `skills/ac_configure_search.md` — regenerate for this domain (reference: `skills/al_configure_search.md`) -- [ ] `skills/ac_custom_analysis.md` — regenerate for this domain (reference: `skills/al_custom_analysis.md`) -- [ ] `skills/ac_custom_profile.md` — regenerate for this domain (reference: `skills/al_custom_profile.md`) -- [ ] `skills/ac_datacube_modeling.md` — regenerate for this domain (reference: `skills/al_datacube_modeling.md`) -- [ ] `skills/ac_debug_fit_failure.md` — regenerate for this domain (reference: `skills/al_debug_fit_failure.md`) -- [ ] `skills/ac_group_lensing.md` — regenerate for this domain (reference: `skills/al_group_lensing.md`) -- [ ] `skills/ac_hierarchicac_inference.md` — regenerate for this domain (reference: `skills/al_hierarchical_inference.md`) -- [ ] `skills/ac_ingest_paper.md` — regenerate for this domain (reference: `skills/al_ingest_paper.md`) -- [ ] `skills/ac_inspect_results_mcp.md` — regenerate for this domain (reference: `skills/al_inspect_results_mcp.md`) -- [ ] `skills/ac_inspect_source_reconstruction.md` — regenerate for this domain (reference: `skills/al_inspect_source_reconstruction.md`) -- [ ] `skills/ac_mge_decomposition.md` — regenerate for this domain (reference: `skills/al_mge_decomposition.md`) -- [ ] `skills/ac_multi_dataset.md` — regenerate for this domain (reference: `skills/al_multi_dataset.md`) -- [ ] `skills/ac_plot_fit_residuals.md` — regenerate for this domain (reference: `skills/al_plot_fit_residuals.md`) -- [ ] `skills/ac_plot_tracer.md` — regenerate for this domain (reference: `skills/al_plot_tracer.md`) -- [ ] `skills/ac_point_source.md` — regenerate for this domain (reference: `skills/al_point_source.md`) -- [ ] `skills/ac_prepare_imaging_data.md` — regenerate for this domain (reference: `skills/al_prepare_imaging_data.md`) -- [ ] `skills/ac_refresh_api_docs.md` — regenerate for this domain (reference: `skills/al_refresh_api_docs.md`) -- [ ] `skills/ac_run_search.md` — regenerate for this domain (reference: `skills/al_run_search.md`) -- [ ] `skills/ac_run_slam_pipeline.md` — regenerate for this domain (reference: `skills/al_run_slam_pipeline.md`) -- [ ] `skills/ac_sensitivity_mapping.md` — regenerate for this domain (reference: `skills/al_sensitivity_mapping.md`) -- [ ] `skills/ac_simulate_dataset.md` — regenerate for this domain (reference: `skills/al_simulate_dataset.md`) -- [ ] `skills/ac_subhalo_detect.md` — regenerate for this domain (reference: `skills/al_subhalo_detect.md`) -- [ ] `skills/ac_time_delay_cosmography.md` — regenerate for this domain (reference: `skills/al_time_delay_cosmography.md`) -- [ ] `skills/ac_to_notebook.md` — regenerate for this domain (reference: `skills/al_to_notebook.md`) -- [ ] `skills/ac_update_wiki.md` — regenerate for this domain (reference: `skills/al_update_wiki.md`) -- [ ] `skills/ac_weak_lensing.md` — regenerate for this domain (reference: `skills/al_weak_lensing.md`) -- [ ] `skills/euclid_hpc_runs.md` — regenerate for this domain (reference: `skills/euclid_hpc_runs.md`) -- [ ] `skills/euclid_model_lens.md` — regenerate for this domain (reference: `skills/euclid_model_lens.md`) -- [ ] `skills/euclid_prepare_data.md` — regenerate for this domain (reference: `skills/euclid_prepare_data.md`) -- [ ] `skills/euclid_setup_pipeline.md` — regenerate for this domain (reference: `skills/euclid_setup_pipeline.md`) -- [ ] `skills/euclid_workflow_products.md` — regenerate for this domain (reference: `skills/euclid_workflow_products.md`) -- [ ] `skills/init-slam.md` — regenerate for this domain (reference: `skills/init-slam.md`) -- [ ] `wiki/core/README.md` — regenerate for this domain (reference: `wiki/core/README.md`) -- [ ] `wiki/core/api/aggregator.md` — regenerate for this domain (reference: `wiki/core/api/aggregator.md`) -- [ ] `wiki/core/api/analysis_objects.md` — regenerate for this domain (reference: `wiki/core/api/analysis_objects.md`) -- [ ] `wiki/core/api/configuration.md` — regenerate for this domain (reference: `wiki/core/api/configuration.md`) -- [ ] `wiki/core/api/csv_api.md` — regenerate for this domain (reference: `wiki/core/api/csv_api.md`) -- [ ] `wiki/core/api/datacube.md` — regenerate for this domain (reference: `wiki/core/api/datacube.md`) -- [ ] `wiki/core/api/datasets.md` — regenerate for this domain (reference: `wiki/core/api/datasets.md`) -- [ ] `wiki/core/api/light_profile_catalog.md` — regenerate for this domain (reference: `wiki/core/api/light_profile_catalog.md`) -- [ ] `wiki/core/api/mass_profile_catalog.md` — regenerate for this domain (reference: `wiki/core/api/mass_profile_catalog.md`) -- [ ] `wiki/core/api/plotting.md` — regenerate for this domain (reference: `wiki/core/api/plotting.md`) -- [ ] `wiki/core/api/searches.md` — regenerate for this domain (reference: `wiki/core/api/searches.md`) -- [ ] `wiki/core/api_audit_baseline.json` — regenerate for this domain (reference: `wiki/core/api_audit_baseline.json`) -- [ ] `wiki/core/concepts/cosmology_and_units.md` — regenerate for this domain (reference: `wiki/core/concepts/cosmology_and_units.md`) -- [ ] `wiki/core/concepts/extra_galaxies_and_noise_scaling.md` — regenerate for this domain (reference: `wiki/core/concepts/extra_galaxies_and_noise_scaling.md`) -- [ ] `wiki/core/concepts/galaxy_and_plane.md` — regenerate for this domain (reference: `wiki/core/concepts/galaxy_and_plane.md`) -- [ ] `wiki/core/concepts/grids_and_masks.md` — regenerate for this domain (reference: `wiki/core/concepts/grids_and_masks.md`) -- [ ] `wiki/core/concepts/group_and_cluster_lensing.md` — regenerate for this domain (reference: `wiki/core/concepts/group_and_cluster_lensing.md`) -- [ ] `wiki/core/concepts/hierarchicac_models.md` — regenerate for this domain (reference: `wiki/core/concepts/hierarchical_models.md`) -- [ ] `wiki/core/concepts/interferometer_theory.md` — regenerate for this domain (reference: `wiki/core/concepts/interferometer_theory.md`) -- [ ] `wiki/core/concepts/inversions_and_pixelizations.md` — regenerate for this domain (reference: `wiki/core/concepts/inversions_and_pixelizations.md`) -- [ ] `wiki/core/concepts/lensing_basics.md` — regenerate for this domain (reference: `wiki/core/concepts/lensing_basics.md`) -- [ ] `wiki/core/concepts/light_profiles.md` — regenerate for this domain (reference: `wiki/core/concepts/light_profiles.md`) -- [ ] `wiki/core/concepts/mass_profiles.md` — regenerate for this domain (reference: `wiki/core/concepts/mass_profiles.md`) -- [ ] `wiki/core/concepts/multi_wavelength.md` — regenerate for this domain (reference: `wiki/core/concepts/multi_wavelength.md`) -- [ ] `wiki/core/concepts/non_linear_search.md` — regenerate for this domain (reference: `wiki/core/concepts/non_linear_search.md`) -- [ ] `wiki/core/concepts/point_source.md` — regenerate for this domain (reference: `wiki/core/concepts/point_source.md`) -- [ ] `wiki/core/concepts/samples_and_posteriors.md` — regenerate for this domain (reference: `wiki/core/concepts/samples_and_posteriors.md`) -- [ ] `wiki/core/concepts/sensitivity_mapping.md` — regenerate for this domain (reference: `wiki/core/concepts/sensitivity_mapping.md`) -- [ ] `wiki/core/concepts/slam_pipeline.md` — regenerate for this domain (reference: `wiki/core/concepts/slam_pipeline.md`) -- [ ] `wiki/core/concepts/substructure_and_subhalos.md` — regenerate for this domain (reference: `wiki/core/concepts/substructure_and_subhalos.md`) -- [ ] `wiki/core/concepts/time_delay_cosmography.md` — regenerate for this domain (reference: `wiki/core/concepts/time_delay_cosmography.md`) -- [ ] `wiki/core/concepts/tracer.md` — regenerate for this domain (reference: `wiki/core/concepts/tracer.md`) -- [ ] `wiki/core/concepts/weak_lensing.md` — regenerate for this domain (reference: `wiki/core/concepts/weak_lensing.md`) -- [ ] `wiki/core/external/howtolens.md` — regenerate for this domain (reference: `wiki/core/external/howtolens.md`) -- [ ] `wiki/core/external/index.md` — regenerate for this domain (reference: `wiki/core/external/index.md`) -- [ ] `wiki/core/external/rtd.md` — regenerate for this domain (reference: `wiki/core/external/rtd.md`) -- [ ] `wiki/core/external/skill_citation_map.md` — regenerate for this domain (reference: `wiki/core/external/skill_citation_map.md`) -- [ ] `wiki/core/external/workspace.md` — regenerate for this domain (reference: `wiki/core/external/workspace.md`) -- [ ] `wiki/core/index.md` — regenerate for this domain (reference: `wiki/core/index.md`) -- [ ] `wiki/core/operations/dataset.md` — regenerate for this domain (reference: `wiki/core/operations/dataset.md`) -- [ ] `wiki/core/operations/hpc.md` — regenerate for this domain (reference: `wiki/core/operations/hpc.md`) -- [ ] `wiki/core/operations/hpc_infrastructure.md` — regenerate for this domain (reference: `wiki/core/operations/hpc_infrastructure.md`) -- [ ] `wiki/core/operations/installation.md` — regenerate for this domain (reference: `wiki/core/operations/installation.md`) -- [ ] `wiki/core/operations/sandbox.md` — regenerate for this domain (reference: `wiki/core/operations/sandbox.md`) -- [ ] `wiki/core/stack/autoarray.md` — regenerate for this domain (reference: `wiki/core/stack/autoarray.md`) -- [ ] `wiki/core/stack/autonerves.md` — regenerate for this domain (reference: `wiki/core/stack/autonerves.md`) -- [ ] `wiki/core/stack/autofit.md` — regenerate for this domain (reference: `wiki/core/stack/autofit.md`) -- [ ] `wiki/core/stack/autogalaxy.md` — regenerate for this domain (reference: `wiki/core/stack/autogalaxy.md`) -- [ ] `wiki/core/stack/autocti.md` — regenerate for this domain (reference: `wiki/core/stack/autolens.md`) -- [ ] `wiki/core/stack/overview.md` — regenerate for this domain (reference: `wiki/core/stack/overview.md`) -- [ ] `wiki/euclid/AGENTS.md` — regenerate for this domain (reference: `wiki/euclid/AGENTS.md`) -- [ ] `wiki/euclid/CLAUDE.md` — regenerate for this domain (reference: `wiki/euclid/CLAUDE.md`) -- [ ] `wiki/euclid/bibliography/README.md` — regenerate for this domain (reference: `wiki/euclid/bibliography/README.md`) -- [ ] `wiki/euclid/bibliography/bibkey_aliases.yaml` — regenerate for this domain (reference: `wiki/euclid/bibliography/bibkey_aliases.yaml`) -- [ ] `wiki/euclid/bibliography/euclid.bib` — regenerate for this domain (reference: `wiki/euclid/bibliography/euclid.bib`) -- [ ] `wiki/euclid/concepts/euclid-photo-z.md` — regenerate for this domain (reference: `wiki/euclid/concepts/euclid-photo-z.md`) -- [ ] `wiki/euclid/concepts/euclid-psf.md` — regenerate for this domain (reference: `wiki/euclid/concepts/euclid-psf.md`) -- [ ] `wiki/euclid/concepts/psf-homogenisation.md` — regenerate for this domain (reference: `wiki/euclid/concepts/psf-homogenisation.md`) -- [ ] `wiki/euclid/concepts/zero-point-corrections.md` — regenerate for this domain (reference: `wiki/euclid/concepts/zero-point-corrections.md`) -- [ ] `wiki/euclid/entities/euclid-mission.md` — regenerate for this domain (reference: `wiki/euclid/entities/euclid-mission.md`) -- [ ] `wiki/euclid/entities/euclid-wide-survey.md` — regenerate for this domain (reference: `wiki/euclid/entities/euclid-wide-survey.md`) -- [ ] `wiki/euclid/entities/ext-surveys.md` — regenerate for this domain (reference: `wiki/euclid/entities/ext-surveys.md`) -- [ ] `wiki/euclid/entities/nisp.md` — regenerate for this domain (reference: `wiki/euclid/entities/nisp.md`) -- [ ] `wiki/euclid/entities/ou-phz.md` — regenerate for this domain (reference: `wiki/euclid/entities/ou-phz.md`) -- [ ] `wiki/euclid/entities/q1-dr1-releases.md` — regenerate for this domain (reference: `wiki/euclid/entities/q1-dr1-releases.md`) -- [ ] `wiki/euclid/entities/vis.md` — regenerate for this domain (reference: `wiki/euclid/entities/vis.md`) -- [ ] `wiki/euclid/index.md` — regenerate for this domain (reference: `wiki/euclid/index.md`) -- [ ] `wiki/euclid/log.md` — regenerate for this domain (reference: `wiki/euclid/log.md`) -- [ ] `wiki/euclid/sources/euclid-dr1-image-processing.md` — regenerate for this domain (reference: `wiki/euclid/sources/euclid-dr1-image-processing.md`) -- [ ] `wiki/euclid/sources/euclid-forecasts.md` — regenerate for this domain (reference: `wiki/euclid/sources/euclid-forecasts.md`) -- [ ] `wiki/euclid/sources/euclid-mission-data.md` — regenerate for this domain (reference: `wiki/euclid/sources/euclid-mission-data.md`) -- [ ] `wiki/euclid/sources/euclid-strong-lensing.md` — regenerate for this domain (reference: `wiki/euclid/sources/euclid-strong-lensing.md`) -- [ ] `wiki/literature/AGENTS.md` — regenerate for this domain (reference: `wiki/literature/AGENTS.md`) -- [ ] `wiki/literature/CLAUDE.md` — regenerate for this domain (reference: `wiki/literature/CLAUDE.md`) -- [ ] `wiki/literature/README.md` — regenerate for this domain (reference: `wiki/literature/README.md`) -- [ ] `wiki/literature/bibliography/README.md` — regenerate for this domain (reference: `wiki/literature/bibliography/README.md`) -- [ ] `wiki/literature/bibliography/autocti_literature.bib` — regenerate for this domain (reference: `wiki/literature/bibliography/autolens_literature.bib`) -- [ ] `wiki/literature/bibliography/bibkey_aliases.yaml` — regenerate for this domain (reference: `wiki/literature/bibliography/bibkey_aliases.yaml`) -- [ ] `wiki/literature/concepts/bayesian-inference-lensing.md` — regenerate for this domain (reference: `wiki/literature/concepts/bayesian-inference-lensing.md`) -- [ ] `wiki/literature/concepts/bulge-halo-decomposition.md` — regenerate for this domain (reference: `wiki/literature/concepts/bulge-halo-decomposition.md`) -- [ ] `wiki/literature/concepts/cluster-lensing.md` — regenerate for this domain (reference: `wiki/literature/concepts/cluster-lensing.md`) -- [ ] `wiki/literature/concepts/dark-matter-physics.md` — regenerate for this domain (reference: `wiki/literature/concepts/dark-matter-physics.md`) -- [ ] `wiki/literature/concepts/dark-matter-substructure.md` — regenerate for this domain (reference: `wiki/literature/concepts/dark-matter-substructure.md`) -- [ ] `wiki/literature/concepts/deep-learning-lensing.md` — regenerate for this domain (reference: `wiki/literature/concepts/deep-learning-lensing.md`) -- [ ] `wiki/literature/concepts/einstein-radius.md` — regenerate for this domain (reference: `wiki/literature/concepts/einstein-radius.md`) -- [ ] `wiki/literature/concepts/external-convergence-shear.md` — regenerate for this domain (reference: `wiki/literature/concepts/external-convergence-shear.md`) -- [ ] `wiki/literature/concepts/flux-ratio-anomalies.md` — regenerate for this domain (reference: `wiki/literature/concepts/flux-ratio-anomalies.md`) -- [ ] `wiki/literature/concepts/gr-tests.md` — regenerate for this domain (reference: `wiki/literature/concepts/gr-tests.md`) -- [ ] `wiki/literature/concepts/gravitational-imaging.md` — regenerate for this domain (reference: `wiki/literature/concepts/gravitational-imaging.md`) -- [ ] `wiki/literature/concepts/hubble-tension.md` — regenerate for this domain (reference: `wiki/literature/concepts/hubble-tension.md`) -- [ ] `wiki/literature/concepts/interferometric-lensing.md` — regenerate for this domain (reference: `wiki/literature/concepts/interferometric-lensing.md`) -- [ ] `wiki/literature/concepts/kinematics-and-lensing.md` — regenerate for this domain (reference: `wiki/literature/concepts/kinematics-and-lensing.md`) -- [ ] `wiki/literature/concepts/lens-equation.md` — regenerate for this domain (reference: `wiki/literature/concepts/lens-equation.md`) -- [ ] `wiki/literature/concepts/lens-finding.md` — regenerate for this domain (reference: `wiki/literature/concepts/lens-finding.md`) -- [ ] `wiki/literature/concepts/lens-statistics.md` — regenerate for this domain (reference: `wiki/literature/concepts/lens-statistics.md`) -- [ ] `wiki/literature/concepts/lensed-source-science.md` — regenerate for this domain (reference: `wiki/literature/concepts/lensed-source-science.md`) -- [ ] `wiki/literature/concepts/lensed-supernovae.md` — regenerate for this domain (reference: `wiki/literature/concepts/lensed-supernovae.md`) -- [ ] `wiki/literature/concepts/line-of-sight-effects.md` — regenerate for this domain (reference: `wiki/literature/concepts/line-of-sight-effects.md`) -- [ ] `wiki/literature/concepts/mass-models.md` — regenerate for this domain (reference: `wiki/literature/concepts/mass-models.md`) -- [ ] `wiki/literature/concepts/mass-sheet-degeneracy.md` — regenerate for this domain (reference: `wiki/literature/concepts/mass-sheet-degeneracy.md`) -- [ ] `wiki/literature/concepts/mcmc-sampling.md` — regenerate for this domain (reference: `wiki/literature/concepts/mcmc-sampling.md`) -- [ ] `wiki/literature/concepts/microlensing-imf.md` — regenerate for this domain (reference: `wiki/literature/concepts/microlensing-imf.md`) -- [ ] `wiki/literature/concepts/multipoles.md` — regenerate for this domain (reference: `wiki/literature/concepts/multipoles.md`) -- [ ] `wiki/literature/concepts/nested-sampling.md` — regenerate for this domain (reference: `wiki/literature/concepts/nested-sampling.md`) -- [ ] `wiki/literature/concepts/radial-angular-degeneracy.md` — regenerate for this domain (reference: `wiki/literature/concepts/radial-angular-degeneracy.md`) -- [ ] `wiki/literature/concepts/regularization.md` — regenerate for this domain (reference: `wiki/literature/concepts/regularization.md`) -- [ ] `wiki/literature/concepts/selection-effects.md` — regenerate for this domain (reference: `wiki/literature/concepts/selection-effects.md`) -- [ ] `wiki/literature/concepts/shear-ellipticity-degeneracy.md` — regenerate for this domain (reference: `wiki/literature/concepts/shear-ellipticity-degeneracy.md`) -- [ ] `wiki/literature/concepts/smbh-from-lensing.md` — regenerate for this domain (reference: `wiki/literature/concepts/smbh-from-lensing.md`) -- [ ] `wiki/literature/concepts/source-position-transformation.md` — regenerate for this domain (reference: `wiki/literature/concepts/source-position-transformation.md`) -- [ ] `wiki/literature/concepts/source-reconstruction.md` — regenerate for this domain (reference: `wiki/literature/concepts/source-reconstruction.md`) -- [ ] `wiki/literature/concepts/strong-lensing-overview.md` — regenerate for this domain (reference: `wiki/literature/concepts/strong-lensing-overview.md`) -- [ ] `wiki/literature/concepts/time-delay-cosmography.md` — regenerate for this domain (reference: `wiki/literature/concepts/time-delay-cosmography.md`) -- [ ] `wiki/literature/concepts/time-delay-distance.md` — regenerate for this domain (reference: `wiki/literature/concepts/time-delay-distance.md`) -- [ ] `wiki/literature/entities/abell-1201.md` — regenerate for this domain (reference: `wiki/literature/entities/abell-1201.md`) -- [ ] `wiki/literature/entities/bells-gallery.md` — regenerate for this domain (reference: `wiki/literature/entities/bells-gallery.md`) -- [ ] `wiki/literature/entities/cosmic-horseshoe.md` — regenerate for this domain (reference: `wiki/literature/entities/cosmic-horseshoe.md`) -- [ ] `wiki/literature/entities/cosmos-web-ring.md` — regenerate for this domain (reference: `wiki/literature/entities/cosmos-web-ring.md`) -- [ ] `wiki/literature/entities/des-lenses.md` — regenerate for this domain (reference: `wiki/literature/entities/des-lenses.md`) -- [ ] `wiki/literature/entities/euclid-q1.md` — regenerate for this domain (reference: `wiki/literature/entities/euclid-q1.md`) -- [ ] `wiki/literature/entities/h0licow.md` — regenerate for this domain (reference: `wiki/literature/entities/h0licow.md`) -- [ ] `wiki/literature/entities/hsc-survey-lenses.md` — regenerate for this domain (reference: `wiki/literature/entities/hsc-survey-lenses.md`) -- [ ] `wiki/literature/entities/hubble-frontier-fields.md` — regenerate for this domain (reference: `wiki/literature/entities/hubble-frontier-fields.md`) -- [ ] `wiki/literature/entities/lens-finding-challenge.md` — regenerate for this domain (reference: `wiki/literature/entities/lens-finding-challenge.md`) -- [ ] `wiki/literature/entities/lenstronomy.md` — regenerate for this domain (reference: `wiki/literature/entities/lenstronomy.md`) -- [ ] `wiki/literature/entities/pyautofit.md` — regenerate for this domain (reference: `wiki/literature/entities/pyautofit.md`) -- [ ] `wiki/literature/entities/pyautocti.md` — regenerate for this domain (reference: `wiki/literature/entities/pyautolens.md`) -- [ ] `wiki/literature/entities/razor-arc.md` — regenerate for this domain (reference: `wiki/literature/entities/razor-arc.md`) -- [ ] `wiki/literature/entities/sl2s.md` — regenerate for this domain (reference: `wiki/literature/entities/sl2s.md`) -- [ ] `wiki/literature/entities/slacs.md` — regenerate for this domain (reference: `wiki/literature/entities/slacs.md`) -- [ ] `wiki/literature/entities/slam-pipeline.md` — regenerate for this domain (reference: `wiki/literature/entities/slam-pipeline.md`) -- [ ] `wiki/literature/entities/space-warps.md` — regenerate for this domain (reference: `wiki/literature/entities/space-warps.md`) -- [ ] `wiki/literature/entities/tdcosmo.md` — regenerate for this domain (reference: `wiki/literature/entities/tdcosmo.md`) -- [ ] `wiki/literature/index.md` — regenerate for this domain (reference: `wiki/literature/index.md`) -- [ ] `wiki/literature/log.md` — regenerate for this domain (reference: `wiki/literature/log.md`) -- [ ] `wiki/literature/sources/bayesian-inference-methods.md` — regenerate for this domain (reference: `wiki/literature/sources/bayesian-inference-methods.md`) -- [ ] `wiki/literature/sources/bulge-halo.md` — regenerate for this domain (reference: `wiki/literature/sources/bulge-halo.md`) -- [ ] `wiki/literature/sources/cluster-lensing.md` — regenerate for this domain (reference: `wiki/literature/sources/cluster-lensing.md`) -- [ ] `wiki/literature/sources/dark-matter-physics.md` — regenerate for this domain (reference: `wiki/literature/sources/dark-matter-physics.md`) -- [ ] `wiki/literature/sources/dark-matter-substructure.md` — regenerate for this domain (reference: `wiki/literature/sources/dark-matter-substructure.md`) -- [ ] `wiki/literature/sources/deep-learning-lensing.md` — regenerate for this domain (reference: `wiki/literature/sources/deep-learning-lensing.md`) -- [ ] `wiki/literature/sources/degeneracies-systematics.md` — regenerate for this domain (reference: `wiki/literature/sources/degeneracies-systematics.md`) -- [ ] `wiki/literature/sources/external-shear-los.md` — regenerate for this domain (reference: `wiki/literature/sources/external-shear-los.md`) -- [ ] `wiki/literature/sources/flux-ratios.md` — regenerate for this domain (reference: `wiki/literature/sources/flux-ratios.md`) -- [ ] `wiki/literature/sources/galaxy-formation.md` — regenerate for this domain (reference: `wiki/literature/sources/galaxy-formation.md`) -- [ ] `wiki/literature/sources/gr-cosmology.md` — regenerate for this domain (reference: `wiki/literature/sources/gr-cosmology.md`) -- [ ] `wiki/literature/sources/interferometric-lensing.md` — regenerate for this domain (reference: `wiki/literature/sources/interferometric-lensing.md`) -- [ ] `wiki/literature/sources/kinematics.md` — regenerate for this domain (reference: `wiki/literature/sources/kinematics.md`) -- [ ] `wiki/literature/sources/lens-finding.md` — regenerate for this domain (reference: `wiki/literature/sources/lens-finding.md`) -- [ ] `wiki/literature/sources/lens-modeling-methods.md` — regenerate for this domain (reference: `wiki/literature/sources/lens-modeling-methods.md`) -- [ ] `wiki/literature/sources/lens-statistics.md` — regenerate for this domain (reference: `wiki/literature/sources/lens-statistics.md`) -- [ ] `wiki/literature/sources/lens-surveys.md` — regenerate for this domain (reference: `wiki/literature/sources/lens-surveys.md`) -- [ ] `wiki/literature/sources/lensed-source-science.md` — regenerate for this domain (reference: `wiki/literature/sources/lensed-source-science.md`) -- [ ] `wiki/literature/sources/lensed-supernovae.md` — regenerate for this domain (reference: `wiki/literature/sources/lensed-supernovae.md`) -- [ ] `wiki/literature/sources/mass-models.md` — regenerate for this domain (reference: `wiki/literature/sources/mass-models.md`) -- [ ] `wiki/literature/sources/microlensing-imf.md` — regenerate for this domain (reference: `wiki/literature/sources/microlensing-imf.md`) -- [ ] `wiki/literature/sources/multipoles.md` — regenerate for this domain (reference: `wiki/literature/sources/multipoles.md`) -- [ ] `wiki/literature/sources/selection-effects.md` — regenerate for this domain (reference: `wiki/literature/sources/selection-effects.md`) -- [ ] `wiki/literature/sources/smbh-vlbi.md` — regenerate for this domain (reference: `wiki/literature/sources/smbh-vlbi.md`) -- [ ] `wiki/literature/sources/source-reconstruction.md` — regenerate for this domain (reference: `wiki/literature/sources/source-reconstruction.md`) -- [ ] `wiki/literature/sources/specific-lenses.md` — regenerate for this domain (reference: `wiki/literature/sources/specific-lenses.md`) -- [ ] `wiki/literature/sources/time-delay-cosmography.md` — regenerate for this domain (reference: `wiki/literature/sources/time-delay-cosmography.md`) -- [ ] `wiki/literature/sources/unclassified.md` — regenerate for this domain (reference: `wiki/literature/sources/unclassified.md`) -- [ ] review `benchmarks/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/.gitignore` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/general.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/logging.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/non_linear/GridSearch.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/non_linear/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/non_linear/mcmc.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/non_linear/mle.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/non_linear/nest.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/notation.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/output.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/basis.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/cosmology.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/dataset_model.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/galaxy/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/galaxy/redshift.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/chameleon.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/dev_vaucouleurs.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/eff.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/exponential.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/exponential_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/gaussian.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/moffat.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/sersic.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/sersic_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/shapelets/cartesian.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/shapelets/exponential.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear/shapelets/polar.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear_operated/gaussian.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/linear_operated/moffat.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/operated/gaussian.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/operated/moffat.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/operated/sersic.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/chameleon.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/dev_vaucouleurs.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/eff.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/exponential.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/exponential_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/gaussian.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/moffat.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/sersic.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/light/standard/sersic_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/gnfw.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/gnfw_mcr.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/gnfw_virial_mass_conc.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/nfw.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/nfw_mcr.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/nfw_mcr_scatter.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/nfw_truncated.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/dark/nfw_truncated_mcr.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/point/point.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/point/smbh.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/sheets/external_shear.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/sheets/mass_sheet.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/chameleon.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/dev_vaucouleurs.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/exponential.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/gaussian.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/gaussian_gradient.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/sersic.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/sersic_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/stellar/sersic_gradient.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/total/isothermal.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/total/isothermal_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/total/power_law.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/total/power_law_broken.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/total/power_law_core.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mass/total/power_law_multipole.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mesh/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mesh/delaunay.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mesh/rectangular_adapt_density.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mesh/rectangular_adapt_image.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/mesh/rectangular_uniform.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/point_sources.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/adapt.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/adapt_split.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/constant.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/constant_split.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/matern_adapt_kernel.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/matern_adapt_kernel_rho.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/matern_kernel.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/priors/regularization/zeroth.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/visualize/README.md` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/visualize/general.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/visualize/plots.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `config/visualize/plots_search.yaml` — copied with name substitutions only; adapt values to this domain -- [ ] review `llms.txt` — copied with name substitutions only; adapt values to this domain +- [ ] Create the first CTI benchmark using the [simulated calibration demonstrations](scripts/demonstrations/README.md). + Replace the inherited prompt examples in the [benchmark protocol](benchmarks/README.md) + with a CTI prompt and a rubric covering data inspection, trap recovery, and residuals. +- [ ] Add a documented real-detector calibration example. Choose an openly reusable + charge-injection dataset and record provenance, detector geometry, readout direction, + and FPR/EPER regions. Demonstrate the pre-fit inspection, masking, and recovery checks + described in [the agent instructions](AGENTS.md#safety-invariants--default-non-negotiable) + and the [fitting skill](skills/ac_fit_cti_model.md). +- [ ] Review the inherited [configuration](config/README.md) against the installed + PyAutoCTI stack and the 1D and 2D demonstrations. Identify the search, output, + visualization, and prior settings the workflows actually use before changing any + defaults. Include the inherited profile priors and configuration documentation in + that review. diff --git a/README.md b/README.md index 1fd448d..8c573f9 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,7 @@ it goes. You can also ask it to plan a calibration and talk through the trap mod - **Benchmarks** in [`benchmarks/`](benchmarks/README.md). No CTI benchmark has been written or run yet, so there are no performance claims here. -The list of skills the assistant has today is in [`skills/README.md`](skills/README.md), and what's planned next is -in [`PENDING.md`](PENDING.md). +Browse the current [skill catalogue](skills/README.md) and the [CTI maintenance queue](PENDING.md). ## Science Project diff --git a/skills/_style.md b/skills/_style.md index 0a68a00..61f851b 100644 --- a/skills/_style.md +++ b/skills/_style.md @@ -173,70 +173,24 @@ publication-quality docstring detail required by "Generated script style" above. Users arrive with different backgrounds. The same skill needs to serve all of them: -- **The lensing newcomer.** Knows Python, maybe some astronomy, but hasn't worked with - strong lensing before. Doesn't yet know what a `Tracer`, a deflection angle, or a - caustic is. Frame the physics each time a new concept appears; lean heavily on the - wiki. -- **The PyAuto\* newcomer.** Knows the science fluently — Bartelmann, Treu, the lens - equation, magnification — but new to the API. Map straight from science question to - object; skip the physics lecture. -- **The returning user.** Has used PyAutoCTI before. Just wants to load a fit and - inspect the residuals. Quick API recall, no lecture. - -Pick depth from cues in the user's question. *"I'm new to lensing"* → newcomer. *"How -do I get the caustics?"* → already knows lensing. *"Load `output/.../abc/`"* → returning -user. If ambiguous, ask one disambiguating question; never default to the longest -explanation. - -Read `wiki/project/profile.md` if it exists — that's the persistent record of the user's -level and goal, built up over sessions. If it disagrees with what the user just said, -trust the user and update the profile. - -### Resource routing by audience - -The three external resources cover different audiences. Match the user's level to -the source, and pull the URL from -[`wiki/core/external/skill_citation_map.md`](../wiki/core/external/skill_citation_map.md): - -| Audience | Lead resource | Secondary | -|----------|---------------|-----------| -| Lensing newcomer | **HowToLens** notebook — *surfaced before the code block, not after* | RTD `overview_1_start_here` | -| PyAutoCTI newcomer (lensing-fluent) | **RTD** `overview_2_new_user_guide` + `overview_3_features` | Workspace example script | -| Returning PyAutoCTI user | **Workspace** script for the science case | RTD API reference | - -Never dump all three on the user unprejudiced — pick one to lead, optionally cite a -second. +- **New to CTI.** Start with the [CTI concept page](../wiki/core/concepts/charge_transfer_inefficiency.md) + or the narrated overview in [`ac_workspace_navigation`](./ac_workspace_navigation.md). +- **New to PyAutoCTI.** Use [`ac_workspace_navigation`](./ac_workspace_navigation.md) to + find the `start_here.py` for the relevant dataset geometry and task. +- **Returning user.** Lead with the workspace example closest to the user's task. + +Pick depth from the user's question and `wiki/project/profile.md` when it exists. +If the user's current cues differ from the profile, trust the user's latest input +and update the profile. ### Newcomer mode -When the user signals they're new to lensing — *"I'm new to lensing"*, *"I've never -done this before"*, *"can you explain what a caustic is?"* — the agent shifts into a -more pedagogical shape. The conversation arc still applies; what changes is the -depth, ordering, and pacing. - -1. **Lead with the HowToLens notebook.** Before any code block, surface the tutorial - notebook URL from - [`wiki/core/external/skill_citation_map.md`](../wiki/core/external/skill_citation_map.md). - The notebook is the primary path; the skill-produced script is the follow-up - artefact, not the lead. -2. **One concept at a time.** Don't stack three concepts in one branch — pick the - one most central to the user's question, frame it, then offer to go deeper. - *"Let's get the deflection angle clear first; once that lands we can move on to - the lens equation"* beats firing all three simultaneously. -3. **Physics framing → statistical framing → code.** Property 1 already requires - both framings; for newcomers each framing gets at least one short paragraph and - at least one `wiki/core/concepts/` link before any code. -4. **Check-in beat after each concept.** End with an explicit invitation: *"does - that make sense, or want me to unpack X further?"*. Don't barrel into the next - branch. -5. **Encourage running HowToLens themselves.** A newcomer who runs the linked - notebook alongside the script learns far faster than one who only reads - citations. Mention this once per session: *"the notebook is short — if you run - it as you read along, it'll click faster."* - -Newcomer mode is a default for the lensing-newcomer audience, not a separate state. -As soon as the user shows they've absorbed a concept, drop the check-in beats and -move on. +1. Link the relevant CTI overview or concept before showing code. +2. Explain one detector effect at a time. For example, explain how traps cause + trailing charge before discussing how the trail constrains a trap species. +3. Connect the physics to the inference, then show the code. +4. Invite a follow-up after a concept and point to a runnable workspace example + the user can try. ## The conversation arc — Orient → Ask → Branch → Combine @@ -264,7 +218,7 @@ calibrate depth. Skip this step only when the user has already told you. **Combine.** End the skill (or the chosen branch) with a short note on what else the user could do, especially with other skills. *"Once you have the fit running, feed the -output into `ac_load_results` and `ac_plot_fit_residuals`."* +output into `ac_load_results` and `ac_plot`."* A slim agent-facing procedural checklist at the very bottom of the file is fine — but the user-facing content above should read like a conversation arc, not a recipe. @@ -277,8 +231,7 @@ the user-facing content above should read like a conversation arc, not a recipe. - Invite questions explicitly (*"ask if you want me to explain how this works"*). - Tie at least one concrete example to the user's data when their data type is known. - Point at the wiki by relative path every time you teach a concept. -- For newcomers, surface the relevant HowToLens notebook before the code block, not - after. See "Newcomer mode" in Adaptive depth above. +- For newcomers, surface the relevant CTI overview before the code block. See "Newcomer mode" in Adaptive depth above. - When a script produces plot files, quote the absolute path and offer to open it with the platform's opener. See "Plot output and path announcement" below. @@ -322,11 +275,11 @@ back up the skills. Skills that produce visualisations save them through the function-style `autocti.plot` API — every entry point takes `output_path` / `output_filename` / `output_format` kwargs directly (see -[`wiki/core/api/plotting.md`](../wiki/core/api/plotting.md)). Three rules: +[`ac_plot`](./ac_plot.md)). Three rules: 1. **Pass `output_path` / `output_filename` / `output_format` directly to each plot function.** Every `autocti.plot` `plot_*` and `subplot_*` helper accepts - these kwargs, e.g. `aplt.subplot_imaging_dataset(dataset=…, + these kwargs, e.g. `aplt.subplot_imaging_ci(dataset=…, output_path="scripts/scratch//", output_filename=…, output_format="png")`. Never rely on interactive display — the user is often running the script from a terminal where `plt.show()` flashes and @@ -370,38 +323,22 @@ a silent terminal. Three rules: read. Under a factor graph one fit per charge line is written, each in its own subfolder, so name the line whose output you are quoting. -Depth follows "Adaptive depth" above. For either **newcomer** audience, and whenever +Depth follows "Adaptive depth" above. For users new to CTI or PyAutoCTI, and whenever [`modes/teacher.md`](../modes/teacher.md) is active, walk all three rules — reading the output folder *is* part of the workflow being taught. For a returning user, rule 1 alone (one line quoting the path) is enough. ## External resource citation -Every `ac_*` skill ends with a single `## Further reading` block above the agent -checklist (if present). The block is generated from one row of -[`wiki/core/external/skill_citation_map.md`](../wiki/core/external/skill_citation_map.md) -and follows this shape: - -```markdown -## Further reading - -- **Student / new to lensing** — [HowToLens: ](): one - line on what the tutorial teaches. -- **General reference** — [RTD: ](): canonical PyAutoCTI - documentation page. -- **Experienced PyAutoCTI user** — [workspace/lens: