Repository navigation
Description
Overview
Approved member of the four-task smoke-reliability batch (human “Go”, 2026-10-16).
Plan
Resolve dependency-chain paths with Heart's existing repository resolver. Run the workspace-owned installer from a temporary flat symlink directory containing the resolved chain, preserving its CI contract and leaving all 12 installers unchanged. Resolve legacy fallback and optional-extra metadata paths consistently. Test grouped and flat layouts, missing repositories, cleanup and installer failures without silently reusing stale environments. Then validate a fresh real smoke environment and one flat CI workspace per family. Tier: judge — merge mode: human /prm. Detailed files: heart/smoke.py (_install_environment, optional targets), tests/test_smoke.py (existing installer tests), docs/internals.md (local/CI layout contract). Consult Memory's prior layout migration record before implementation.
Branch survey and routing
Suggested branch: feature/grouped-smoke-install. NOT STARTED: repository claim conflict with PyAutoHeart #298 / draft PR #299. Register in Mind planned.md; preserve current claims and approvals. No worktree or branch created. Resume through start-dev after claims clear; do not infer merge or release permission.
Original Prompt
Starting prompt
Local smoke env creation fails: smoke_install.sh flat pip chain vs the grouped layout
Type: bug
Target: PyAutoHeart
Repos:
- PyAutoHeart
- autolens_workspace
- autolens_workspace_test
- HowToLens
- euclid_strong_lens_modeling_pipeline
- autogalaxy_workspace
- autogalaxy_workspace_test
- HowToGalaxy
- autofit_workspace
- autofit_workspace_test
- HowToFit
- autocti_workspace
- autocti_workspace_test
Difficulty: medium
Autonomy: supervised
Priority: high
Status: formalised
Consequence: judge
Witness: on the grouped layout,pyauto-heart smoke --prepare-only autolenswith the cached env moved aside creates a fresh env and exits 0 (today it fails atpip install ./PyAutoNerves); and the reusable Smoke Tests workflow on a flat CI checkout stays green for one workspace per family.
Review-minutes: 10
Unattended: ready
Observed 2026-09-27:pyauto-heart smoke --prepare-onlyfails locally for autolens_workspace, autolens_workspace_test and HowToLens. Each workspace's.github/scripts/smoke_install.shruns a flatpip install ./PyAutoNerves ./PyAutoFit ./PyAutoArray ./PyAutoGalaxy ./PyAutoLenschain, and those paths do not exist in the grouped canonical layout (organs/PyAutoNerves, fit/PyAutoFit, array/PyAutoArray, galaxy/PyAutoGalaxy, lens/PyAutoLens). Heart runs that script LOCALLY, so it is not CI-only. Workaround used today: reuse the cached envs in~/.pyauto-heart/smoke-envs/<ws>/py3.12with Hands' run_python.py.
Impact: local smoke env (re)creation is broken for everyone on the grouped layout, and a stale cached env silently hides dependency changes (a new floor or extra in a library pyproject never reaches the env Heart smokes against).
Evidence (read-only verification, PyAutoHeart main c67bca0)
heart/smoke.py:314-317(_install_environment):installer = workspace / ".github" / "scripts" / "smoke_install.sh"; if it is a file,_run(["bash", installer], cwd=organism_root, env=env)and return. So the script's relative./PyAuto*paths resolve against the organism root.- The workspace itself is found via
_workspace.repo_path(organism_root, spec.directory)(heart/_workspace.py:192), which resolves grouped checkouts through Brain'sagents/_repo_paths.py— Heart already knows the real paths; the shell script does not. lens/autolens_workspace/.github/scripts/smoke_install.sh:pip install ./PyAutoNerves ./PyAutoFit ./PyAutoArray ./PyAutoGalaxy ./PyAutoLensthenpip install "./PyAutoArray[optional]" "./PyAutoGalaxy[optional]" "./PyAutoLens[optional]". Its header says it runs "with cwd at the checkout root (the dependency chain is cloned besideworkspace/)" — the flat CI layout.ls /home/jammy/Code/PyAutoLabs/PyAutoFitetc.: no such file or directory.- The legacy no-installer fallback in the same function (
smoke.py:322-324,local_targets = [f"./{repo}" for repo in spec.chain]) has the same flat assumption. - This was explicitly deferred to "phase 3" by complete/2026/09/workspace-location-contracts.md and complete/2026/09/workspace-resolver-fanout.md ("the smoke_install.sh flat pip chain ... a shared CI+local script whose two callers would need different layouts") and was not picked up when the physical move landed.
Affected files / repos
All 12 workspace installers carry the flat pip install ./PyAuto* chain:
- lens/autolens_workspace, lens/autolens_workspace_test, lens/HowToLens, lens/euclid_strong_lens_modeling_pipeline
- galaxy/autogalaxy_workspace, galaxy/autogalaxy_workspace_test, galaxy/HowToGalaxy
- fit/autofit_workspace, fit/autofit_workspace_test, fit/HowToFit
- cti/autocti_workspace, cti/autocti_workspace_test
(each.github/scripts/smoke_install.sh), plus PyAutoHeartheart/smoke.py(_install_environment, legacy fallback).
Suggested fix direction
CI (the reusable Smoke Tests workflow, flat checkout with the chain cloned beside workspace/) MUST keep working unchanged — do not introduce a universal root / manifest.path rule. Options:
- Heart passes the path map: before running the installer, Heart resolves each chain repo via
_workspace.repo_path(Brain'sagents/_repo_paths.py/ therepos.yamlbody map) and exports e.g.PYAUTO_PATH_PyAutoFit=/abs/fit/PyAutoFit(or onePYAUTO_REPO_PATHSmap); the script uses${PYAUTO_PATH_PyAutoFit:-./PyAutoFit}so CI's flat default is untouched. - Heart builds a throwaway flat shim dir of symlinks (
PyAutoFit -> fit/PyAutoFit, ...) and runs the installer with cwd there — zero workspace edits, one Heart change. - Apply the same resolution to the legacy
./{repo}fallback.
Also consider: Heart should refuse to silently reuse a cached env when (re)creation fails, so a stale env cannot hide dependency changes.
Reconciliation — 2026-10-01
Keep open — source confirms the defect. Heart origin/main ff7003f, heart/smoke.py:314-324, still launches the workspace installer with cwd=organism_root and retains the flat ./<repo> legacy install targets. No layout shim or resolved-path contract is supplied there. complete/2026/09/workspace-resolver-fanout.md explicitly deferred these installers to phase 3. No environment recreation or package installation was performed during this audit.
Activity
Jammy2211 commentedon Oct 16, 2026
Resumed after prior claims cleared; implementation shipped to PR #301 (head 4899eb9). Full suite1257passed; independent review CLEAN; fresh grouped AutoLens prepare-only succeeded with a new state directory, installed local libraries and passed preflight. Existing flat fit/galaxy/lens/CTI CI jobs remain green; CTI evidence is October8 baseline, explicitly not candidate validation. Tier judge: awaiting human /prm after PR CI. Heart STALE at resume; no release performed.
Jammy2211 commentedon Oct 16, 2026
Shipped in #301, merged 3b88159 after human /prm. Exact-head CI 38969404218: every Python job passed. Independent review CLEAN; live witness documented in the PR. Mind lifecycle close-out follows. No release performed.