Skip to content

fix: green the wiki-currency CI leg on the lens and galaxy assistants #317

Closed

Description

@Jammy2211

Overview

The wiki-currency CI leg is red on main for autolens_assistant (run 33226180760) and
autogalaxy_assistant (run 33226182888). Both failures are wiki/skill content drift, not a
tooling bug, and both trace to the same upstream change: PyAutoArray f9aceea3 (2026-08-21,
PyAutoArray#461) split the rectangular adaptive mesh family into Bilinear (rank-CDF) and
RTU (kernel-CDF) variants, retiring the old Rectangular*Adapt* names. autogalaxy_assistant
additionally cites PyAutoGalaxy:autogalaxy/plot/plot_utils.py, deleted by PyAutoGalaxy
247e4a3a (2026-08-22) as a byte-identical duplicate of autogalaxy/util/plot_utils.py.

The red leg predates and survives the merges of autolens_assistant#115/#116 and
autogalaxy_assistant#19/#20, which were merged on human acknowledgement of the pre-existing red.

Plan

  • Re-ground every failing symbol against the released stack the CI job installs
    (pip install autolens → 2026.8.23.1), not a local source-tree PYTHONPATH.
  • autolens_assistant: replace the retired al.mesh.RectangularAdaptImage with the current
    RectangularBilinearAdaptImage / RectangularRTUAdaptImage names, and correct the sibling
    mesh table that names other retired RectangularAdapt* variants.
  • autogalaxy_assistant: replace the retired ag.mesh.RectangularAdaptDensity in the three
    files that cite it, and re-cite autogalaxy/plot/plot_utils.py → autogalaxy/util/plot_utils.py
    in wiki/core/operations/sandbox.md (both the frontmatter pin list and the prose).
  • Re-stamp provenance on every edited wiki/core/ page (--write-provenance --page), since an
    unstamped body edit is itself a CI error.
  • Re-run the full CI check sequence locally against the released stack in each repo until clean.
Detailed implementation plan

Affected Repositories

  • autolens_assistant
  • autogalaxy_assistant

(PyAutoBrain is the prompt Target / issue home only — no Brain tool needs a fix.)

Branch Survey

Repository Current Branch Dirty?
./autolens_assistant main clean
./autogalaxy_assistant main clean
./PyAutoBrain main clean

Suggested branch: feature/wiki-currency-ci-drift
Worktree: ~/Code/PyAutoLabs-wt/wiki-currency-ci-drift

Diagnosis (measured, released stack 2026.8.23.1)

autolens_assistant, audit_skill_apis.py --scope all → missing/broken: 1

symbol file suggestions
al.mesh.RectangularAdaptImage wiki/core/stack/autolens.md RectangularRTUAdaptImage, RectangularBilinearAdaptImage

autogalaxy_assistant, --scope all → missing/broken: 1 (three files)

symbol files suggestions
ag.mesh.RectangularAdaptDensity skills/ag_multi_dataset.md, skills/ag_pixelization.md, wiki/core/stack/autogalaxy.md RectangularRTUAdaptDensity, RectangularBilinearAdaptDensity

autogalaxy_assistant, --check-citations → 2 missing path(s), both
wiki/core/operations/sandbox.md: PyAutoGalaxy:autogalaxy/plot/plot_utils.py.

Implementation Steps

  1. autolens_assistant/wiki/core/stack/autolens.md — mesh list: RectangularAdaptImage →
    the Bilinear/RTU pair. Re-stamp provenance.
  2. autolens_assistant/wiki/core/concepts/inversions_and_pixelizations.md — the mesh-choice
    table names al.mesh.RectangularAdaptImage, RectangularAdaptDensity,
    RectangularRotatedAdaptImage, RectangularSplineAdapt*; none resolve. Rewrite to the
    four real adaptive classes. Re-stamp provenance.
  3. autogalaxy_assistant — the three RectangularAdaptDensity sites → the Bilinear default
    (what the workspace scripts use, 77 call sites) with RTU noted as the GPU/JAX-gradient
    variant. Re-stamp wiki/core/stack/autogalaxy.md.
  4. autogalaxy_assistant/wiki/core/operations/sandbox.md — re-cite to
    autogalaxy/util/plot_utils.py in the frontmatter sources: block and in the
    PYAUTO_FAST_PLOTS prose; bump pinned_commit + last_updated; re-stamp.
  5. Re-run in a released-stack venv, per repo: --check-version, --scope all,
    --lint-idioms, --check-provenance, --check-citations, and (lens only)
    chat_bundle.py --check.

Key Files

  • autolens_assistant/wiki/core/stack/autolens.md
  • autolens_assistant/wiki/core/concepts/inversions_and_pixelizations.md
  • autogalaxy_assistant/wiki/core/stack/autogalaxy.md
  • autogalaxy_assistant/wiki/core/operations/sandbox.md
  • autogalaxy_assistant/skills/ag_pixelization.md, skills/ag_multi_dataset.md

Note on the "stale chat bundle" claim in the prompt

The prompt states autolens_assistant's llms-chat.txt and chat_pack/01_api_surface.md are
stale on main. Measured, they are not. chat_bundle.py --check reports OK against the
released stack (2026.8.23.1) — the same result CI reported. The FAIL only appears when the
script is run against a local source-tree PYTHONPATH, where regenerating would downgrade
the committed version stamp to 2026.8.17.1 and inject unreleased autofit Bijector symbols.
Regenerating them here would therefore introduce drift rather than remove it, so they are left
alone.

Original Prompt

Click to expand starting prompt
# Fix wiki-currency CI drift in the lens and galaxy assistants

Type: maintenance
Target: PyAutoBrain
Repos:
- autogalaxy_assistant
- autolens_assistant
- PyAutoBrain
Difficulty: small
Autonomy: safe
Priority: medium
Status: formalised

# Fix wiki-currency CI drift in the lens and galaxy assistants
Type: maintenance
Difficulty: small
Autonomy: safe
Priority: medium

The `wiki-currency` CI leg is red on main for autolens_assistant and autogalaxy_assistant (Actions runs 33226180760 and 33226182888, 2026-08-28). The symbol audit run with `--scope all` reports 1 missing or broken symbol in each repo, out of 67 files and 141 symbols scanned. autogalaxy_assistant additionally fails its citation-path check: `wiki/core/operations/sandbox.md` cites the galaxy library's `plot/plot_utils.py` module, which no longer exists in the sources checkout. autolens_assistant's `llms-chat.txt` and `chat_pack/01_api_surface.md` are also stale on main.

Task: regenerate the stale generated surfaces and re-cite the dead path so the `wiki-currency` leg goes green again on both repos. Note that PRs #115 and #116 (autolens_assistant) and #19 and #20 (autogalaxy_assistant) were merged over this drift on human acknowledgement, so the red leg predates and survives those merges.

Related: PyAutoBrain#315.

<!-- formalised by the Intake (Conception) Agent on 2026-08-28 from file:/tmp/claude-1000/-home-jammy-Code-PyAutoLabs/069a02ef-b14f-4a43-b0c3-92e461ddef66/scratchpad/intake_wiki_currency.md -->

Activity

  1. Jammy2211 commented on Aug 29, 2026

    @Jammy2211
    ContributorAuthor

    Progress — implemented, PRs opening

    Both repos are green against a CI-faithful stack: a clean venv with pip install autolens
    (→ 2026.8.23.1, exactly what the wiki-currency job installs), PYTHONPATH unset so the
    local source tree cannot leak in, and the cited source trees present under sources/ as the
    job clones them.

    autolens_assistant — feature/wiki-currency-ci-drift @ b7a6964

    check before after
    --scope all missing/broken 1 0
    --check-version clean clean
    --lint-idioms clean clean
    --check-provenance 0 errors 0 errors
    --check-citations 0 missing 0 missing
    chat_bundle.py --check OK OK

    Fixed: al.mesh.RectangularAdaptImage → RectangularBilinearAdaptImage in
    wiki/core/stack/autolens.md; the mesh-choice table in
    wiki/core/concepts/inversions_and_pixelizations.md (which named four non-existent symbols —
    RectangularAdaptImage, RectangularAdaptDensity, RectangularRotatedAdaptImage,
    RectangularSplineAdapt*) rewritten to the four real adaptive classes.

    autogalaxy_assistant — feature/wiki-currency-ci-drift @ 98999f3

    check before after
    --scope all missing/broken 1 0
    --check-citations 2 missing path(s) 0
    --check-version clean clean
    --lint-idioms clean clean
    --check-provenance 0 errors 0 errors

    Fixed: ag.mesh.RectangularAdaptDensity → RectangularBilinearAdaptDensity in
    skills/ag_multi_dataset.md, skills/ag_pixelization.md, wiki/core/stack/autogalaxy.md;
    PyAutoGalaxy:autogalaxy/plot/plot_utils.py → autogalaxy/util/plot_utils.py in
    wiki/core/operations/sandbox.md (frontmatter pin list + PYAUTO_FAST_PLOTS prose).
    Both edited wiki/core pages carry a content_sha256 and were re-stamped with
    --write-provenance --page.

    Root causes

    • Symbols — PyAutoArray f9aceea3 (2026-08-21, PyAutoArray#461) split the rectangular
      adaptive meshes into a Bilinear (rank-CDF) and an RTU (kernel-CDF) family and retired the
      unqualified RectangularAdapt* names. Chose Bilinear, not the pure-rename RTU: the
      split made Bilinear the fast CPU default and it is what the workspace scripts use
      (77 call sites vs 2 for RTU), which is what these pages were recommending.
    • Citation — PyAutoGalaxy 247e4a3a (2026-08-22) removed autogalaxy/plot/plot_utils.py
      as a byte-identical duplicate of autogalaxy/util/plot_utils.py. pinned_commit is
      deliberately not bumped: PYAUTO_FAST_PLOTS is present in util/plot_utils.py at that
      same pin (65b14d77, verified), so the citation was pointing at the wrong one of two
      identical copies rather than at something that had moved — the pin's claim still holds, and
      bumping it would assert a re-validation that was not performed.

    Correction to the prompt

    The prompt states autolens_assistant's llms-chat.txt and chat_pack/01_api_surface.md are
    stale on main. Measured, they are not, and they are deliberately left untouched.
    chat_bundle.py --check reports OK against the released stack — the same result CI reported
    on run 33226180760. The FAIL only reproduces when the generator runs against a local
    source-tree PYTHONPATH, where regenerating downgrades the committed version stamp
    2026.8.23.1 → 2026.8.17.1 and injects unreleased autofit Bijector* /
    ClipperPriorBoxJoint symbols. Regenerating would have introduced drift, not removed it.

    Readiness

    pyauto-heart readiness --json at 2026-08-29T01:56:44Z is RED on one reason, verbatim:

    PyAutoArray: 2 commit(s) behind origin

    Pre-existing and unrelated (markdown-only changes in two other repos). The human acknowledged
    it and authorised opening the PRs anyway. No check was weakened and no code was modified to
    make a leg pass. Not merged — merge stays a human act.

  2. Jammy2211 commented on Aug 29, 2026

    @Jammy2211
    ContributorAuthor

    PRs open — wiki-currency GREEN on both

    repo PR commit wiki-currency boundary
    autolens_assistant #117 b7a6964 pass (1m11s) pass
    autogalaxy_assistant #21 98999f3 pass (1m9s) pass

    Both carry pending-release. The leg that has been red on main since 2026-08-23 is green
    on both branches; CI reproduced the local released-stack result exactly.

    Not merged — merge stays a human act, and Heart is still RED on the acknowledged
    pre-existing reason (PyAutoArray: 2 commit(s) behind origin). Close-out is /prm on both PRs.

  3. Jammy2211 commented on Aug 29, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    The wiki-currency leg is green on main in both assistants.

    Repo PR Squash merge
    autolens_assistant #117 cc8dd2b322ab3f3a376c644fc672ccdc23cc80de
    autogalaxy_assistant #21 aa00fb1c18b3ac9fe8ea4b3b7df5e1a59160fc0a

    Both PRs: wiki-currency PASS and clone-boundary PASS on the merged head.

    What was fixed

    Root cause — PyAutoArray f9aceea3 (PyAutoArray#461) split the rectangular adaptive mesh
    family into Bilinear (rank-CDF) and RTU (kernel-CDF) variants and retired the unqualified
    Rectangular*Adapt* names. Everything below was re-grounded against the released stack the
    CI job installs (2026.8.23.1), not a local source-tree PYTHONPATH.

    autolens_assistant #117

    • wiki/core/stack/autolens.md — retired al.mesh.RectangularAdaptImage replaced with
      RectangularBilinearAdaptImage, with the split stated.
    • wiki/core/concepts/inversions_and_pixelizations.md — the mesh-choice table named four
      symbols that no longer exist; replaced with the four real adaptive classes plus the
      Bilinear-vs-RTU guidance from the upstream docstrings.
    • --scope all missing/broken: 1 → 0. --check-version / --lint-idioms /
      --check-citations / --check-provenance clean.

    autogalaxy_assistant #21

    • Three sites (skills/ag_multi_dataset.md, skills/ag_pixelization.md,
      wiki/core/stack/autogalaxy.md) moved from the retired ag.mesh.RectangularAdaptDensity to
      RectangularBilinearAdaptDensity — Bilinear rather than the pure-rename RTU, because the
      split made Bilinear the fast CPU default and it is what the workspace scripts use (77 call
      sites vs 2), which is what these pages were recommending.
    • wiki/core/operations/sandbox.md — the citation of
      PyAutoGalaxy:autogalaxy/plot/plot_utils.py (removed by PyAutoGalaxy 247e4a3a as a
      byte-identical duplicate) re-cited to autogalaxy/util/plot_utils.py in both the frontmatter
      sources: list and the PYAUTO_FAST_PLOTS prose. pinned_commit deliberately unchanged:
      PYAUTO_FAST_PLOTS is present in util/plot_utils.py at that same pin (65b14d77,
      verified), so the citation pointed at the wrong one of two identical copies rather than at
      something that moved.
    • --scope all missing/broken: 1 → 0; --check-citations missing paths: 2 → 0;
      --check-version / --lint-idioms / --check-provenance clean.

    Every edited wiki/core/ page was re-stamped with --write-provenance --page and its
    last_updated bumped.

    The "stale chat bundle" claim in the prompt was false

    The originating prompt stated that autolens_assistant's llms-chat.txt and
    chat_pack/01_api_surface.md were stale on main. Measured, they are not.
    chat_bundle.py --check reports OK against the released stack (2026.8.23.1) — the same result
    CI reported. The FAIL reproduces only when the script runs against a local source-tree
    PYTHONPATH, where regenerating would downgrade the committed version stamp to
    2026.8.17.1 and inject unreleased autofit Bijector symbols. Regenerating would therefore
    have introduced drift rather than removed it, so both files were left untouched.

    No check was weakened to pass. euclid_assistant was not touched.

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