Skip to content

fix(colab-gate): colossus rationale is stale once los_halos reaches it #356

Closed

Description

@Jammy2211

Overview

heart/config/colab_gate.yaml accepts colossus (and hmf) as missing on Colab because "no workspace or HowTo notebook reaches the module". PyAutoLens#868 / autolens_workspace#681 moved LOSSampler from hmf to colossus, so the regenerated los_halos notebooks (simulator.ipynb, simulator_jax.ipynb) now reach colossus and that reason is false. The human ruled 2026-11-19: "fine for los_halos to stop in Colab", so colossus is not added to autonerves/setup_colab.py _SHARED_EXTRAS; the rationale is rewritten instead.

Prompt: PyAutoMind/active/colab_gate_colossus_rationale_is_stale_once.md (shift 2026-11-19-pm2, PyAutoMind#591).

Plan

  • Rewrite the colossus reason: the los_halos simulator notebooks reach it; on Colab they stop with a clear ImportError naming colossus and pip install autolens[los]; accepted by the human 2026-11-19.
  • Handle the hmf entry. Source main imports no hmf, but the released autolens 2026.11.19.1 on PyPI still does (autolens/lens/los.py:147, unguarded). Check F's continuous run audits the PyPI release, so removing the entry before the next release turns check F FAIL. Decide-and-flag: keep it, with a reason saying it covers only autolens ≤ 2026.11.19.1 and is deleted after the next release.
  • Refresh the test docstring that describes the exemptions.
  • Run the Colab gate unit tests and the config-parse tests; run colab_gate verify's rule engine against the PyPI and source los.py.

effective level: supervised; merge mode: auto-merge on green after a merge slot (shift: ends at PR-open; decision-taken label holds the merge)

Detailed plan

  1. heart/config/colab_gate.yaml — colossus reason: autolens/lens/los.py (the los extra, pip install autolens[los]); the los_halos simulator/simulator_jax notebooks reach it; LOSSampler raises an ImportError naming colossus with the install line; accepted 2026-11-19. hmf reason: only the released autolens ≤ 2026.11.19.1 imports it; source main dropped it (PyAutoLens#867/#868); delete this entry once the next release is on PyPI.
  2. tests/test_colab_gate.py::test_shipped_config_accepts_exactly_the_three_argued_exemptions — docstring update only; the asserted set is unchanged.
  3. Follow-up draft in Mind: delete the hmf entry after the next release.

Testing: python -m pytest -q -n 4 tests/test_colab_gate.py tests/test_verify_install_script.py; targeted Heart smoke.

Branch: feature/colab-gate-colossus-rationale

Activity

  1. Jammy2211 commented on Nov 20, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged 2026-11-20 via the human's /prm (shift 2026-11-19-pm2): #357

    The colossus accepted-miss in heart/config/colab_gate.yaml now says the los_halos simulator notebooks reach it and stop on Colab with an ImportError naming colossus and autolens[los] (accepted 2026-11-19). Decision taken (accepted at /prm): the hmf entry is kept, reworded "only released ≤2026.11.19.1; delete after next release", because the released autolens 2026.11.19.1 still imports hmf unguarded and check F audits PyPI. Follow-up: draft/bug/pyautoheart/colab_gate_delete_hmf_after_next_release.md.

    Witness: verify_install.sh F PASS (accepted colossus los.py:207, hmf los.py:147). Heart tests 74 passed; independent Opus review CLEAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions