Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion agents/conductors/clone/_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
21 changes: 19 additions & 2 deletions tests/test_clone_conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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."""
Expand Down
Loading