Repository navigation
feat: COSMOS-Web Ring greeting — replaces the Abell 1201 demo, fit benchmark, audience routing, Colab notebook (#136) - #137
Merged
Conversation
…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>
Collaborator
Author
|
Boundary CI on 0b03059 failed on |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theabell-1201-setupbenchmark card) is removed — superseded by this greeting.COSMOS-Web Ring reference fits (
scripts/cosmos_web_ring/)The greeting's recommended fit bounds the Einstein-radius and shear priors so it avoids the spurious 2.4" basin;
al_build_imaging_modelnow carries the same bounded-prior guidance for real data. The wiki entitycosmos-web-ringrecords the COWLS identity and the Mercier 2024 Einstein radius.Benchmark card
cosmos-web-ring-fitOne-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.mdnow 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_ringskill (Claude command/skill + Codex skill wrappers), general-reader persona/depth inskills/_style.md, starting prompt and "two ways to start" inREADME.md/docs/setup/first_prompts.md, cropped web imagedocs/images/cosmos_web_ring_rgb.png.Colab notebook (
docs/colab/)cosmos_web_ring_colab.py→.ipynb, generated byautoassistant.to_notebook; the tracked.ipynbregenerates byte-identically (proved byautoassistant/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 atmain; 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 underscripts/cosmos_web_ring/results/docs/colab/cosmos_web_ring_colab.py— new Colab notebook sourcedocs/colab/cosmos_web_ring_colab.ipynb— generated from the.pybyautoassistant.to_notebook(byte-identical regeneration tested)docs/make_readme_figures.py— README/web figure generationscripts/abell_1201/{build_model,inspect_dataset,prepare_dataset,run_fit,website_image}.pyBrain 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.mdtoscripts/cosmos_web_ring/).Test Plan
make test: 128 passed, 1 skipped;freeze-check OK(13:12)check_boundary.py autolens_assistantcompletescripts/cosmos_web_ring/fit_cosmos_web_ring.py: 285 scosmos-web-ring-fitrun 3 scored 100Heart RED override (development only)
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/prmwith green checks.pyauto-heart readiness):release validation FAILED (stage integrate)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.yamlRefs #136 (stays open until
/prm).🤖 Generated with Claude Code