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
4 changes: 2 additions & 2 deletions heart/config/colab_gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

accepted_missing:
- name: colossus
reason: line-of-sight halo tooling in autolens/lens/los.py. colossus is declared only in autogalaxy's test and dev extras, never as a base dependency, and no workspace or HowTo notebook reaches the module. A user who calls the line-of-sight code on Colab gets an explicit ModuleNotFoundError naming it.
reason: line-of-sight halo tooling in autolens/lens/los.py, installed by the autolens[los] extra and not by the Colab bootstrap. The los_halos simulator notebooks (simulator, simulator_jax) reach it through LOSSampler; on Colab they stop with an ImportError that names colossus and says to pip install autolens[los]. Leaving those two notebooks to stop on Colab was accepted by the human on 2026-11-19, so colossus is deliberately not added to _SHARED_EXTRAS.
- name: hmf
reason: the same autolens/lens/los.py line-of-sight tooling as colossus, and additionally undeclared in any pyproject, so no install path carries it today (tracked as a library follow-up). No workspace or HowTo notebook reaches it.
reason: only the released autolens 2026.11.19.1 and earlier import it (autolens/lens/los.py, unguarded); source main moved LOSSampler to colossus (PyAutoLens PRs 867 and 868) and imports no hmf. The continuous check F audits the PyPI release, so this entry stays until a release carrying PR 867 is on PyPI, then is deleted.
- name: mcp
reason: autofit/mcp/server.py is the MCP server entry point, installed via the autofit[mcp] extra and launched outside notebooks. An unconditional import is correct for a server module, and no notebook imports it.
9 changes: 6 additions & 3 deletions tests/test_colab_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,12 @@ def test_detail_line_names_the_first_failures_then_counts_the_rest():
def test_shipped_config_accepts_exactly_the_three_argued_exemptions():
"""The shipped exemption list, read from the real file the gate loads.

Three of the five library-side holes the gate found are not notebook
paths: `colossus` and `hmf` (the line-of-sight tooling in
autolens/lens/los.py) and `mcp` (autofit/mcp/server.py, the MCP server
Three library-side holes are argued exemptions: `colossus` (the
line-of-sight tooling in autolens/lens/los.py, behind the autolens[los]
extra; the los_halos simulator notebooks reach it and stop on Colab with
a clear ImportError, accepted 2026-11-19), `hmf` (imported only by the
released autolens 2026.11.19.1 and earlier; deleted once a release
without it is on PyPI) and `mcp` (autofit/mcp/server.py, the MCP server
entry point). Anything else appearing here is a hole in the `--no-deps`
bootstrap being quietened rather than fixed, which is what the config
file's own header forbids — so the set is asserted exactly, not as a
Expand Down
Loading