From 5dbdeaa545956041a38f6bdbd89b1e7b79975ddb Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Sat, 26 Sep 2026 10:44:44 +0100 Subject: [PATCH] fix(clone): retire the Abell 1201 domain path, add the COSMOS-Web Ring greeting paths Co-Authored-By: Claude Opus 5.5 (1M context) --- agents/conductors/clone/_clone.py | 6 +++++- tests/test_clone_conductor.py | 21 +++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/agents/conductors/clone/_clone.py b/agents/conductors/clone/_clone.py index 9213615a..902cbcfd 100644 --- a/agents/conductors/clone/_clone.py +++ b/agents/conductors/clone/_clone.py @@ -154,7 +154,11 @@ "wiki/literature/*", # a shipped lensing paper corpus "paper/*", # this assistant's own JOSS paper "scripts/*.py", # bundled science scripts (a named lens) - "scripts/abell_1201/README.md", # named-lens inputs, priors and run protocol + # The COSMOS-Web Ring reference fit: its README and recorded + # results (PNG/JSON/README) are named-lens science, like the + # scripts themselves (`scripts/*.py` already covers the .py). + "scripts/cosmos_web_ring/README.md", + "scripts/cosmos_web_ring/results/*", *_SHARED_DOMAIN, ], "mixed": _SHARED_MIXED, diff --git a/tests/test_clone_conductor.py b/tests/test_clone_conductor.py index a4e3a0ed..2ec3b9a1 100644 --- a/tests/test_clone_conductor.py +++ b/tests/test_clone_conductor.py @@ -108,8 +108,16 @@ def test_autofit_profile_classification(path, expected): # Bundled science scripts are tied to a named lens... ("scripts/model_cosmos_web_ring.py", "domain"), ("scripts/prepare_cosmos_web_ring.py", "domain"), - ("scripts/abell_1201/README.md", "domain"), - ("scripts/abell_1201/build_model.py", "domain"), + ("scripts/cosmos_web_ring/fit_cosmos_web_ring.py", "domain"), + ("scripts/cosmos_web_ring/README.md", "domain"), + ("scripts/cosmos_web_ring/results/README.md", "domain"), + ("scripts/cosmos_web_ring/results/good/subplot_fit.png", "domain"), + ("scripts/cosmos_web_ring/results/good/result.json", "domain"), + # The public greeting skill and the Colab notebook are domain too. + ("skills/al_greeting_cosmos_web_ring.md", "domain"), + ("docs/colab/cosmos_web_ring_colab.py", "domain"), + ("docs/colab/cosmos_web_ring_colab.ipynb", "domain"), + ("docs/images/cosmos_web_ring_rgb.png", "domain"), # ...but scripts/'s own docs are framework, not science. ("scripts/AGENTS.md", "generic"), ("scripts/README.md", "generic"), @@ -122,6 +130,15 @@ def test_autolens_profile_classification(path, expected): assert _classify(path, clone.REFERENCE_PROFILES["autolens_assistant"]) == expected +def test_retired_abell_1201_domain_path_is_gone(): + """The Abell 1201 demo was removed (autolens_assistant#136): its README + must not linger as a boundary entry, and a stray non-.py file under the old + directory would now be unclassified rather than silently domain.""" + autolens = clone.REFERENCE_PROFILES["autolens_assistant"] + assert not any("abell_1201" in p for p in autolens["domain"]) + assert _classify("scripts/abell_1201/README.md", autolens) == "unclassified" + + def test_wiki_core_and_skills_flip_between_references(): """The seam is reference-owned: wiki/core/ and the domain skills sit on opposite sides for the two references."""