Skip to content

feat: COSMOS-Web Ring greeting — replaces the Abell 1201 demo, fit benchmark, audience routing, Colab notebook (#136) - #137

Merged
Jammy2211 merged 16 commits into
mainfrom
feature/cosmos-web-ring-greeting
Sep 26, 2026
Merged

Jammy2211 merged 16 commits into
mainfrom
feature/cosmos-web-ring-greeting

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Replaces the Abell 1201 demonstration with a COSMOS-Web Ring greeting (#136): a real JWST/NIRCam Einstein ring a new user can fit end-to-end in their first session, a one-shot fit benchmark that proves an agent can do it, audience routing for general readers, and a Colab notebook as the second way to start.

Abell 1201 removal

The Abell 1201 point-mass demonstration (#133/#134: scripts/abell_1201/, dataset/imaging/abell_1201/, its tests and the abell-1201-setup benchmark card) is removed — superseded by this greeting.

COSMOS-Web Ring reference fits (scripts/cosmos_web_ring/)

fit θ_E notes
good (F444W, pixelized source) 0.803" (effective 0.775") reduced χ² 0.62, M_E ≈ 4.2e11 M☉
poor (F444W, Sérsic source) 0.755" reduced χ² 2.88 — the "why a pixelized source" contrast
good (F277W) 0.801" achromatic — agrees with F444W
literature (Mercier et al. 2024) 0.78 ± 0.04"

The greeting's recommended fit bounds the Einstein-radius and shear priors so it avoids the spurious 2.4" basin; al_build_imaging_model now carries the same bounded-prior guidance for real data. The wiki entity cosmos-web-ring records the COWLS identity and the Mercier 2024 Einstein radius.

Benchmark card cosmos-web-ring-fit

One-shot card with truth (benchmarks/truth/cosmos-web-ring-fit/) and scorer tests. Three recorded runs (claude-sonnet-5 / claude-code): 0, 0, 100. The two zeros were headless sessions that backgrounded the fit and exited before it finished; benchmarks/AGENTS.md now states the foreground rule (one-shot sessions must not background the fit), and run 3 passed after it. The scorer also counts new figures written beside the reference results.

Greeting skill and audience routing

New al_greeting_cosmos_web_ring skill (Claude command/skill + Codex skill wrappers), general-reader persona/depth in skills/_style.md, starting prompt and "two ways to start" in README.md / docs/setup/first_prompts.md, cropped web image docs/images/cosmos_web_ring_rgb.png.

Colab notebook (docs/colab/)

cosmos_web_ring_colab.py → .ipynb, generated by autoassistant.to_notebook; the tracked .ipynb regenerates byte-identically (proved by autoassistant/tests/test_colab_notebook.py). Executed locally on GPU end-to-end (1100 s). Not yet executed in Colab itself — to be confirmed. The Open-in-Colab badge points at main; it is to be tag-pinned at release (follow-up draft filed).

Website follow-up

The site commit introducing the COSMOS-Web Ring greeting (Jammy2211.github.io 3597326) is held locally until this PR merges.

Scripts Changed

  • scripts/cosmos_web_ring/fit_cosmos_web_ring.py — new COSMOS-Web Ring reference fit (good / Sérsic-source / F277W variants), with recorded results under scripts/cosmos_web_ring/results/
  • docs/colab/cosmos_web_ring_colab.py — new Colab notebook source
  • docs/colab/cosmos_web_ring_colab.ipynb — generated from the .py by autoassistant.to_notebook (byte-identical regeneration tested)
  • docs/make_readme_figures.py — README/web figure generation
  • removed: scripts/abell_1201/{build_model,inspect_dataset,prepare_dataset,run_fit,website_image}.py

Brain dependency

Brain-ref: feature/cosmos-web-ring-greeting

Depends on PyAutoLabs/PyAutoBrain PR PyAutoLabs/PyAutoBrain#419 — merge Brain PR first, then this PR (it moves the clone-boundary domain paths from scripts/abell_1201/README.md to scripts/cosmos_web_ring/).

Test Plan

  • make test: 128 passed, 1 skipped; freeze-check OK (13:12)
  • Brain clone tests 64 passed; check_boundary.py autolens_assistant complete
  • GPU smoke of scripts/cosmos_web_ring/fit_cosmos_web_ring.py: 285 s
  • Benchmark cosmos-web-ring-fit run 3 scored 100
  • Colab notebook executed locally on GPU (1100 s)
  • Colab notebook executed in real Colab (not yet done)

Heart RED override (development only)

  • Authorization (live human, 2026-09-26, this session): in direct response to the question naming task cosmos-web-ring-greeting (feat: COSMOS-Web Ring greeting — replace Abell 1201 demo, fit benchmark, Colab, website #136), the human authorised the development-only Heart RED override — push both branches and open the two PRs; no merge, no release, no CI bypass. Merge needs a separate /prm with green checks.
  • Exact current RED reason (pyauto-heart readiness): release validation FAILED (stage integrate)
  • YELLOW: workspace validation not passing (4 failed, cloud#35579888156: autolens notebooks/cluster/modeling.ipynb, autolens notebooks/weak/a2744.ipynb, autolens scripts/cluster/modeling.py, +1 more); manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml; manifest drift: organism-map blocks (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml
  • Passed branch gates: as in the Test Plan above (make test 128 passed / 1 skipped + freeze-check OK; Brain clone tests 64 passed; check_boundary complete; GPU smoke 285 s; benchmark run 3 = 100).
  • This branch does not fix Heart; Heart stays RED for release.

Refs #136 (stays open until /prm).

🤖 Generated with Claude Code

Jammy2211 and others added 15 commits September 26, 2026 10:43
…Web Ring greeting, #136)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… starting prompt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…web image

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…mmended fit avoids the 2.4" basin

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ing_model

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
fit_cosmos_web_ring.py reproduces the starting prompt's analysis (noise
scaling, 1.8" mask, MGE lens light + Isothermal + shear + MGE source,
MultiStartProdigy on JAX) with --variant/--band/--test-mode switches.
Good F444W: theta_E 0.803" (effective 0.775"), reduced chi2 0.616;
chosen poor (single Sersic source): 0.755", 2.879; F277W good 0.801".
Einstein radius and shear priors are bounded: with the library defaults
the fit converges to a degenerate theta_E = 2.4" basin (recorded).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…stein radius

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…b-ring-fit

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Notebook-style source docs/colab/cosmos_web_ring_colab.py (general reader
first, For-the-scientist asides, an Ask-Gemini question per section) and the
generated, tracked .ipynb: Colab setup cell, load + plot, F277W vs F444W
achromatic comparison, extra-galaxy noise scaling, bounded-prior MGE +
Isothermal + shear model, MultiStartProdigy fit, Einstein mass, and the
single-Sersic-source comparison. Test pins the setup cell, prose content and
byte-identical regeneration.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
README Two-ways-to-start gets the Colab badge (main for now; tag at release),
first_prompts.md a Colab paragraph, al_to_notebook.md how the tracked Colab
example is regenerated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ference results

Only unchanged copies of the committed reference PNGs are excluded from
figures_exist, not every PNG under scripts/cosmos_web_ring/results/.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… x3)

Runs 1-2 score 0 (finished: no_result_json): the headless session
backgrounded the fit and ended its turn. Run 3 scores 100 (theta_E 0.8025",
reduced chi2 0.617, 459 s wall on the RTX 2060). Run 3's figures_found.json
was restored from the transcript after the scorer fix.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…y ignores output/)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211

Copy link
Copy Markdown
Collaborator Author

Boundary CI on 0b03059 failed on scripts/cosmos_web_ring/.gitignore (unclassified). Removed in 98a24c6 — the root .gitignore already ignores output/ — and check_boundary.py autolens_assistant passes locally against the Brain-ref branch (generic 69 · domain 456 · mixed 89). The earlier "boundary complete" claim referred to the pre-benchmark head.

@Jammy2211
Jammy2211 merged commit 9d96bae into main Sep 26, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/cosmos-web-ring-greeting branch September 26, 2026 12:30
Jammy2211 added a commit that referenced this pull request Sep 26, 2026
Point the README badge and the first_prompts.md Colab link at the
2026.9.26.1 tag instead of main. The tagged notebook includes #137 but
predates #139's prompt wording (no clone sentence); noted in the README
comment alongside the bump_colab_urls.sh coverage gap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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