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: 3 additions & 3 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ jobs:
with:
path: workspace

- name: Clone dependency chain + PyAutoBuild (matching branch if it exists)
- name: Clone dependency chain + PyAutoHands (matching branch if it exists)
shell: bash
run: |
set -e
BRANCH="${{ github.head_ref || github.ref_name }}"
OWNER="${{ github.repository_owner }}"
for dep in ${{ inputs.chain }} PyAutoBuild; do
for dep in ${{ inputs.chain }} PyAutoHands; do
git clone "https://github.com/$OWNER/$dep" "$dep"
if git -C "$dep" ls-remote --exit-code --heads origin "$BRANCH" >/dev/null 2>&1; then
echo "Branch $BRANCH exists in $dep — checking it out"
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
JAX_ENABLE_X64: "True"
NUMBA_CACHE_DIR: /tmp/numba_cache
MPLCONFIGDIR: /tmp/matplotlib
PYTHONPATH: ${{ github.workspace }}/PyAutoBuild/autobuild
PYTHONPATH: ${{ github.workspace }}/PyAutoHands/autobuild
run: |
cd workspace
python .github/scripts/run_smoke.py
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/workspace-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ name: Workspace Validation
# out of scope for M3, scripts are the release-validation surface.
#
# Run mechanics (script_matrix.py / run_python.py / aggregate_results.py) are
# Build's executor primitives — checked out from PyAutoBuild, not duplicated,
# Build's executor primitives — checked out from PyAutoHands, not duplicated,
# in EITHER mode. Heart's own code (heart/checks/verify_install.sh,
# heart/validate.py) is checked out from THIS repo (default actions/checkout).
#
Expand Down Expand Up @@ -101,11 +101,11 @@ jobs:
env:
MODE_INPUT: ${{ inputs.mode }}
run: echo "mode=${MODE_INPUT:-smoke}" >> "$GITHUB_OUTPUT"
- name: Checkout PyAutoBuild (run primitives)
- name: Checkout PyAutoHands (run primitives)
uses: actions/checkout@v4
with:
repository: PyAutoLabs/PyAutoBuild
path: PyAutoBuild
repository: PyAutoLabs/PyAutoHands
path: PyAutoHands
- name: Clone workspaces (paths match script_matrix project names)
run: |
set -e
Expand All @@ -132,7 +132,7 @@ jobs:
else
PROJECTS="autofit autogalaxy autolens autofit_test autogalaxy_test autolens_test howtogalaxy howtolens howtofit"
fi
matrix="$(python3 PyAutoBuild/autobuild/script_matrix.py $PROJECTS)"
matrix="$(python3 PyAutoHands/autobuild/script_matrix.py $PROJECTS)"
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"

generate_notebooks:
Expand All @@ -154,11 +154,11 @@ jobs:
- { name: howtolens, workspace: HowToLens }
- { name: howtofit, workspace: HowToFit }
steps:
- name: Checkout PyAutoBuild (generate.py)
- name: Checkout PyAutoHands (generate.py)
uses: actions/checkout@v4
with:
repository: PyAutoLabs/PyAutoBuild
path: PyAutoBuild
repository: PyAutoLabs/PyAutoHands
path: PyAutoHands
- name: Checkout workspace
uses: actions/checkout@v4
with:
Expand All @@ -174,9 +174,9 @@ jobs:
run: pip install jupyter ipynb-py-convert PyYAML
- name: Generate notebooks
run: |
export PYTHONPATH="$PYTHONPATH:$(pwd)/PyAutoBuild"
export PYTHONPATH="$PYTHONPATH:$(pwd)/PyAutoHands"
pushd workspace
python3 "$(pwd)/../PyAutoBuild/autobuild/generate.py" "${{ matrix.project.name }}"
python3 "$(pwd)/../PyAutoHands/autobuild/generate.py" "${{ matrix.project.name }}"
- name: Upload generated notebooks
if: always()
uses: actions/upload-artifact@v4
Expand All @@ -194,11 +194,11 @@ jobs:
python-version: ["3.12"]
project: ${{ fromJSON(needs.find_scripts.outputs.matrix) }}
steps:
- name: Checkout PyAutoBuild (run primitives)
- name: Checkout PyAutoHands (run primitives)
uses: actions/checkout@v4
with:
repository: PyAutoLabs/PyAutoBuild
path: PyAutoBuild
repository: PyAutoLabs/PyAutoHands
path: PyAutoHands
- name: Resolve workspace repo for ${{ matrix.project.name }}
id: ws
run: |
Expand Down Expand Up @@ -290,9 +290,9 @@ jobs:
if: needs.find_scripts.outputs.mode == 'smoke'
run: |
LIBS="$(pwd)/libs"
export PYTHONPATH="$LIBS/PyAutoConf:$LIBS/PyAutoArray:$LIBS/PyAutoFit:$LIBS/PyAutoGalaxy:$LIBS/PyAutoLens:$(pwd)/PyAutoBuild:$PYTHONPATH"
export PYTHONPATH="$LIBS/PyAutoConf:$LIBS/PyAutoArray:$LIBS/PyAutoFit:$LIBS/PyAutoGalaxy:$LIBS/PyAutoLens:$(pwd)/PyAutoHands:$PYTHONPATH"
pushd workspace
python3 "$(pwd)/../PyAutoBuild/autobuild/run_python.py" \
python3 "$(pwd)/../PyAutoHands/autobuild/run_python.py" \
"${{ matrix.project.name }}" "scripts/${{ matrix.project.directory }}" \
--report-dir test-results
- name: "Run Python scripts [mode=release, wheels, release profile, no source on PYTHONPATH]"
Expand All @@ -319,7 +319,7 @@ jobs:
echo "::error::$ENV_CONFIG missing — no release profile defined for this workspace"
exit 1
fi
python3 "$(pwd)/../PyAutoBuild/autobuild/run_python.py" \
python3 "$(pwd)/../PyAutoHands/autobuild/run_python.py" \
"${{ matrix.project.name }}" "scripts/${{ matrix.project.directory }}" \
--report-dir test-results \
--env-config "$ENV_CONFIG"
Expand Down Expand Up @@ -350,12 +350,12 @@ jobs:
else
echo "run=true" >> "$GITHUB_OUTPUT"
fi
- name: Checkout PyAutoBuild (run primitives)
- name: Checkout PyAutoHands (run primitives)
if: steps.gate.outputs.run == 'true'
uses: actions/checkout@v4
with:
repository: PyAutoLabs/PyAutoBuild
path: PyAutoBuild
repository: PyAutoLabs/PyAutoHands
path: PyAutoHands
- name: Resolve workspace repo
if: steps.gate.outputs.run == 'true'
id: ws
Expand Down Expand Up @@ -406,9 +406,9 @@ jobs:
if: steps.gate.outputs.run == 'true'
run: |
LIBS="$(pwd)/libs"
export PYTHONPATH="$LIBS/PyAutoConf:$LIBS/PyAutoArray:$LIBS/PyAutoFit:$LIBS/PyAutoGalaxy:$LIBS/PyAutoLens:$(pwd)/PyAutoBuild:$PYTHONPATH"
export PYTHONPATH="$LIBS/PyAutoConf:$LIBS/PyAutoArray:$LIBS/PyAutoFit:$LIBS/PyAutoGalaxy:$LIBS/PyAutoLens:$(pwd)/PyAutoHands:$PYTHONPATH"
pushd workspace
python3 "$(pwd)/../PyAutoBuild/autobuild/run.py" \
python3 "$(pwd)/../PyAutoHands/autobuild/run.py" \
"${{ matrix.project.name }}" "notebooks/${{ matrix.project.directory }}" \
--report-dir test-results
- name: Upload notebook results
Expand All @@ -424,11 +424,11 @@ jobs:
needs: [run_scripts, run_notebooks]
if: always()
steps:
- name: Checkout PyAutoBuild (aggregate_results)
- name: Checkout PyAutoHands (aggregate_results)
uses: actions/checkout@v4
with:
repository: PyAutoLabs/PyAutoBuild
path: PyAutoBuild
repository: PyAutoLabs/PyAutoHands
path: PyAutoHands
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -441,8 +441,8 @@ jobs:
merge-multiple: true
- name: Aggregate into report.json
run: |
export PYTHONPATH="$PYTHONPATH:$(pwd)/PyAutoBuild"
python3 PyAutoBuild/autobuild/aggregate_results.py all-results/ \
export PYTHONPATH="$PYTHONPATH:$(pwd)/PyAutoHands"
python3 PyAutoHands/autobuild/aggregate_results.py all-results/ \
--output report.json --markdown report.md
- name: Post summary
if: always()
Expand Down
4 changes: 2 additions & 2 deletions bin/pyauto-heart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# bin/pyauto-heart — the PyAutoHeart CLI dispatcher.
#
# Subcommand pattern mirrors PyAutoBuild/bin/autobuild so users see a
# Subcommand pattern mirrors PyAutoHands/bin/autobuild so users see a
# familiar shape. Help is auto-generated from SHORT_DESC.

set -u
Expand Down Expand Up @@ -196,7 +196,7 @@ RED = a real release blocker (a library's CI failing / off main / dirty /
YELLOW = caution (timing regressions, stale PRs/parked scripts, a workspace
pinned behind, or an unknown such as a missing test-run report).

This is the authoritative release gate: PyAutoBuild is a pure executor and
This is the authoritative release gate: PyAutoHands is a pure executor and
runs no readiness checks of its own. The release agent dispatches release.yml
only when this verdict is green.
EOF
Expand Down
2 changes: 1 addition & 1 deletion config/repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
release_gate: false

build_workflow:
- name: PyAutoBuild
- name: PyAutoHands
owner: PyAutoLabs
- name: PyAutoMind
owner: PyAutoLabs
Expand Down
4 changes: 2 additions & 2 deletions config/url_fixups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ rewrites:
replacement: github.com/johannesulf/nautilus
description: joshspeagle/nautilus → johannesulf/nautilus
- pattern: github\.com/rhayes777/PyAutoBuild
replacement: github.com/PyAutoLabs/PyAutoBuild
description: rhayes777/PyAutoBuild → PyAutoLabs/PyAutoBuild
replacement: github.com/PyAutoLabs/PyAutoHands
description: rhayes777/PyAutoBuild → PyAutoLabs/PyAutoHands
- pattern: www\.sphinx-doc\.org/en/main
replacement: www.sphinx-doc.org/en/master
description: sphinx-doc /en/main → /en/master
Expand Down
4 changes: 2 additions & 2 deletions docs/readiness_evidence_audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PyAutoBuild#155, Phase 2). **Method:** measured 2026-07-16 against the live
state dir, the real repos, and the GitHub API; every number is re-measurable
and should be re-measured before acting. Companion:
`PyAutoBuild/docs/pre_build_failure_audit.md` (Phase 1).
`PyAutoHands/docs/pre_build_failure_audit.md` (Phase 1).

## 1. Per-leg evidence map (deliverable 1)

Expand Down Expand Up @@ -120,7 +120,7 @@ while `test_run`'s local/cloud disagreement is silent.
should guard "every floor names an installable release" (checkable against
tags/PyPI), which is the invariant the 07-13 hand-bump actually violated.
5. **HowTo* validation runs simulators before chapters** (§3 remediation) —
a workspace/PyAutoBuild-runner change, not a Heart change.
a workspace/PyAutoHands-runner change, not a Heart change.

## 6. Rejected / open decisions

Expand Down
4 changes: 2 additions & 2 deletions docs/release_validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ untouched, default `mode: smoke` per-PR path):
`config/build/env_vars_release.yaml` — a self-contained sibling of
`env_vars.yaml` (the `smoke` profile), passed to Build's `run_python.py`
unmodified via its existing `--env-config` flag. No changes were needed in
PyAutoBuild's executor primitives to support this — `--env-config` already
PyAutoHands's executor primitives to support this — `--env-config` already
accepted an arbitrary path.
- `run_scripts`, when `mode: release`, `pip install`s the Stage-2 TestPyPI
wheels at the rehearsed version and puts **no** library source on
Expand Down Expand Up @@ -60,7 +60,7 @@ cannot silently inherit smoke fidelity.
## The `release` profile (wired in M3)

The intended release-fidelity env is already documented in
`PyAutoBuild/.github/workflows/release.yml`:
`PyAutoHands/.github/workflows/release.yml`:

| Tier | `PYAUTO_TEST_MODE` | `PYAUTO_SMALL_DATASETS` | `PYAUTO_FAST_PLOTS` |
|----------------------|----------------------------------|-------------------------|---------------------|
Expand Down
2 changes: 1 addition & 1 deletion health_agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ adapts with no edits.
|---|---|
| [`capabilities.yaml`](./capabilities.yaml) | Machine-readable manifest of every Heart capability — the abstract-provider self-description the Brain agent reads. |
| [`capabilities.md`](./capabilities.md) | Human-readable audit of Heart's full health surface (CLI, checks, readiness, workflows, state, docs). |
| [`pyautobuild_boundary_audit.md`](./pyautobuild_boundary_audit.md) | Audit confirming no health/readiness gating logic has drifted into PyAutoBuild, with the one naming nuance and a follow-up. |
| [`pyautobuild_boundary_audit.md`](./pyautobuild_boundary_audit.md) | Audit confirming no health/readiness gating logic has drifted into PyAutoHands, with the one naming nuance and a follow-up. |

## Quick use (from the Brain agent)

Expand Down
4 changes: 2 additions & 2 deletions health_agent/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Audited at commit `a2543d0` (Rename PyAutoPulse to PyAutoHeart).
PyAutoMind `active.md` (orphan / missing / dirty). Monitoring.
- **script_timing** (`checks/script_timing.py`) — per-script duration vs rolling
baseline (`>1.5x` slow, `>3x` regression). YELLOW.
- **test_run** (`checks/test_run.py`) — reads PyAutoBuild's
- **test_run** (`checks/test_run.py`) — reads PyAutoHands's
`test_results/latest/report.json` (the workspace-validation verdict). YELLOW
when not passing / stale / unknown (workspace debt is advisory, never a hard
block).
Expand All @@ -51,7 +51,7 @@ Audited at commit `a2543d0` (Rename PyAutoPulse to PyAutoHeart).
- **verify_install** (`checks/verify_install.sh`) — pip & conda install-path
checks A–E in throwaway envs across Python versions. RED if last run
`ready==false`; YELLOW if stale (`>14d`) or never run. Moved here from
PyAutoBuild — install verification is Heart's job.
PyAutoHands — install verification is Heart's job.
- **url_check / url_sweep / url_check_live** — offline regex guard, ecosystem
sweep, and live HTTP reachability audit. **Monitoring only — never gates
readiness.**
Expand Down
8 changes: 4 additions & 4 deletions health_agent/capabilities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ provider:
role: >-
The health and vital-signs authority of the PyAuto organism. Owns ALL
health/readiness checking. Observer-only: reads repos and emits verdicts,
never writes into other repos, never triggers PyAutoBuild/Hands.
never writes into other repos, never triggers PyAutoHands/Hands.
canonical_cli: pyauto-heart
python_package: heart # `import heart`

Expand All @@ -35,7 +35,7 @@ primary_query:
gate:
authority: "pyauto-heart readiness" # the single is-it-safe-to-release gate
semantics:
green: "Healthy. PyAutoBuild may proceed automatically."
green: "Healthy. PyAutoHands may proceed automatically."
yellow: "Mostly healthy. Work may proceed; human review recommended."
red: "Blocked. Do not release until the blocking reasons clear."
rule: "red dominates yellow dominates green; an unknown is YELLOW, never silently green."
Expand Down Expand Up @@ -70,8 +70,8 @@ continuous_checks:
gate_role: "YELLOW on timing regressions / slow scripts"
- id: test_run
impl: heart/checks/test_run.py
measures: "latest PyAutoBuild report.json verdict (ready / counts / stale parked)"
consumes: "PyAutoBuild test_results/latest/report.json (Build executor primitive)"
measures: "latest PyAutoHands report.json verdict (ready / counts / stale parked)"
consumes: "PyAutoHands test_results/latest/report.json (Build executor primitive)"
gate_role: "YELLOW if workspace validation not passing / stale / unknown (standing debt, advisory)"
- id: version_skew
impl: heart/checks/version_skew.py
Expand Down
12 changes: 6 additions & 6 deletions health_agent/pyautobuild_boundary_audit.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# PyAutoBuild boundary audit — has health/readiness logic drifted?
# PyAutoHands boundary audit — has health/readiness logic drifted?

The Health Agent task requires verifying that no health/readiness logic still
lives in PyAutoBuild (Hands), which must be a **pure executor**. This is the
audit. Performed against PyAutoBuild at `114ecec` (Merge #109,
lives in PyAutoHands (Hands), which must be a **pure executor**. This is the
audit. Performed against PyAutoHands at `114ecec` (Merge #109,
build-pulse-agent-separation).

## Verdict: clean — no health/readiness *gating* logic in PyAutoBuild
## Verdict: clean — no health/readiness *gating* logic in PyAutoHands

Every actual gate has already moved to PyAutoHeart. What remains in Build is
executor primitives and documentation that correctly points at Heart.

### What was checked

Searched all `*.sh / *.py / *.yml / *.md` in PyAutoBuild for
Searched all `*.sh / *.py / *.yml / *.md` in PyAutoHands for
`readiness | verify_workspace_version | health | version_skew | verify_install |
url_check`.

Expand Down Expand Up @@ -61,5 +61,5 @@ vocabulary with Heart's authoritative verdict and could mislead a future reader.
```
PyAutoHeart — owns health checks + the authoritative readiness verdict.
PyAutoBrain — Health Agent reasons over Heart's outputs (owns no checks).
PyAutoBuild — executor; acts only after a GREEN/YELLOW/RED decision; runs no checks.
PyAutoHands — executor; acts only after a GREEN/YELLOW/RED decision; runs no checks.
```
2 changes: 1 addition & 1 deletion heart/checks/manifest_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

``PyAutoMind/repos.yaml`` is the single source of repo *identity* (GitHub
home, category, role). ``PyAutoMind/scripts/repos_sync.py --check`` verifies
the other repo lists against it — Heart's ``config/repos.yaml``, PyAutoBuild's
the other repo lists against it — Heart's ``config/repos.yaml``, PyAutoHands's
``pre_build.sh``, PyAutoBrain's ``bin/ensure_workspace_labels.sh``, and the actual
``origin`` remote of every local checkout. That check only fires when someone
remembers to run it; this module makes it continuous by running it every tick
Expand Down
4 changes: 2 additions & 2 deletions heart/checks/script_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
rolling per-script duration baselines, classify regressions.

Inputs:
- PyAutoBuild/test_results/latest/ (symlink to most recent run dir)
- PyAutoHands/test_results/latest/ (symlink to most recent run dir)
- Per-script JSON: <workspace>__<dir>__script.json containing
`results` list with `file`, `duration_seconds`, `status`.

Expand Down Expand Up @@ -40,7 +40,7 @@
HEART_HOME = Path(__file__).resolve().parents[2]
CONFIG_PATH = HEART_HOME / "config" / "repos.yaml"
PYAUTO_ROOT = Path(__file__).resolve().parents[3] if Path(__file__).resolve().parents[3].name == "PyAutoLabs" else Path.home() / "Code" / "PyAutoLabs"
TEST_RESULTS_LATEST = PYAUTO_ROOT / "PyAutoBuild" / "test_results" / "latest"
TEST_RESULTS_LATEST = PYAUTO_ROOT / "PyAutoHands" / "test_results" / "latest"


def load_thresholds() -> tuple[float, float, int]:
Expand Down
6 changes: 3 additions & 3 deletions heart/checks/test_run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""heart/checks/test_run.py — surface the latest PyAutoBuild test-run verdict.
"""heart/checks/test_run.py — surface the latest PyAutoHands test-run verdict.

PyAutoBuild's release pipeline writes an aggregated ``report.json`` into each
PyAutoHands's release pipeline writes an aggregated ``report.json`` into each
run directory (reachable via the ``test_results/latest`` symlink). It carries
the single most important release signal — a top-level ``ready`` boolean —
plus per-status counts, per-project breakdown, and the ``slow_skips`` /
Expand Down Expand Up @@ -32,7 +32,7 @@
HEART_HOME = Path(__file__).resolve().parents[2]
_p3 = Path(__file__).resolve().parents[3]
PYAUTO_ROOT = _p3 if _p3.name == "PyAutoLabs" else Path.home() / "Code" / "PyAutoLabs"
TEST_RESULTS_LATEST = PYAUTO_ROOT / "PyAutoBuild" / "test_results" / "latest"
TEST_RESULTS_LATEST = PYAUTO_ROOT / "PyAutoHands" / "test_results" / "latest"
HEART_STATE_DIR = Path(
os.environ.get("HEART_STATE_DIR")
or Path.home() / ".pyauto-heart"
Expand Down
2 changes: 1 addition & 1 deletion heart/checks/url_check_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _load_pattern_rewrites() -> list[tuple[re.Pattern[str], str, str]]:



_TOOL_DIR_ABS = Path(__file__).resolve().parent # PyAutoBuild/autobuild
_TOOL_DIR_ABS = Path(__file__).resolve().parent # PyAutoHands/autobuild


def _should_scan(path: Path) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion heart/checks/url_check_live.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# - name: Run live URL audit
# id: url_audit
# run: |
# body=$(bash PyAutoBuild/autobuild/url_check_live.sh repo) && rc=0 || rc=$?
# body=$(bash PyAutoHands/autobuild/url_check_live.sh repo) && rc=0 || rc=$?
# echo "$body" > /tmp/url_audit_body.md
# echo "rc=$rc" >> "$GITHUB_OUTPUT"

Expand Down
Loading
Loading