diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 9bbb5fa6..82d16cf8 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -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" @@ -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 diff --git a/.github/workflows/workspace-validation.yml b/.github/workflows/workspace-validation.yml index 0554918a..762b4b7c 100644 --- a/.github/workflows/workspace-validation.yml +++ b/.github/workflows/workspace-validation.yml @@ -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). # @@ -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 @@ -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: @@ -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: @@ -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 @@ -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: | @@ -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]" @@ -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" @@ -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 @@ -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 @@ -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: @@ -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() diff --git a/bin/pyauto-heart b/bin/pyauto-heart index 6342436d..9dc9fc7f 100755 --- a/bin/pyauto-heart +++ b/bin/pyauto-heart @@ -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 @@ -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 diff --git a/config/repos.yaml b/config/repos.yaml index 61fec562..00f454bd 100644 --- a/config/repos.yaml +++ b/config/repos.yaml @@ -28,7 +28,7 @@ repos: release_gate: false build_workflow: - - name: PyAutoBuild + - name: PyAutoHands owner: PyAutoLabs - name: PyAutoMind owner: PyAutoLabs diff --git a/config/url_fixups.yaml b/config/url_fixups.yaml index 2294bc45..e2291e25 100644 --- a/config/url_fixups.yaml +++ b/config/url_fixups.yaml @@ -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 diff --git a/docs/readiness_evidence_audit.md b/docs/readiness_evidence_audit.md index 7a423444..82aeeb2f 100644 --- a/docs/readiness_evidence_audit.md +++ b/docs/readiness_evidence_audit.md @@ -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) @@ -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 diff --git a/docs/release_validation.md b/docs/release_validation.md index c7d21922..a7d72b13 100644 --- a/docs/release_validation.md +++ b/docs/release_validation.md @@ -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 @@ -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` | |----------------------|----------------------------------|-------------------------|---------------------| diff --git a/health_agent/README.md b/health_agent/README.md index ddb2382b..e9e24909 100644 --- a/health_agent/README.md +++ b/health_agent/README.md @@ -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) diff --git a/health_agent/capabilities.md b/health_agent/capabilities.md index de88a9ad..ad8cb34c 100644 --- a/health_agent/capabilities.md +++ b/health_agent/capabilities.md @@ -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). @@ -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.** diff --git a/health_agent/capabilities.yaml b/health_agent/capabilities.yaml index 00591edb..71001a56 100644 --- a/health_agent/capabilities.yaml +++ b/health_agent/capabilities.yaml @@ -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` @@ -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." @@ -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 diff --git a/health_agent/pyautobuild_boundary_audit.md b/health_agent/pyautobuild_boundary_audit.md index fb5967f0..8976f34c 100644 --- a/health_agent/pyautobuild_boundary_audit.md +++ b/health_agent/pyautobuild_boundary_audit.md @@ -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`. @@ -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. ``` diff --git a/heart/checks/manifest_drift.py b/heart/checks/manifest_drift.py index 58799c97..79e427eb 100644 --- a/heart/checks/manifest_drift.py +++ b/heart/checks/manifest_drift.py @@ -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 diff --git a/heart/checks/script_timing.py b/heart/checks/script_timing.py index 4ff1d275..70f61ac1 100644 --- a/heart/checks/script_timing.py +++ b/heart/checks/script_timing.py @@ -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: ____script.json containing `results` list with `file`, `duration_seconds`, `status`. @@ -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]: diff --git a/heart/checks/test_run.py b/heart/checks/test_run.py index dd404e5d..cc4c2ebc 100644 --- a/heart/checks/test_run.py +++ b/heart/checks/test_run.py @@ -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`` / @@ -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" diff --git a/heart/checks/url_check_live.py b/heart/checks/url_check_live.py index 07196085..3112b495 100644 --- a/heart/checks/url_check_live.py +++ b/heart/checks/url_check_live.py @@ -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: diff --git a/heart/checks/url_check_live.sh b/heart/checks/url_check_live.sh index 1d8ca092..33544fd1 100755 --- a/heart/checks/url_check_live.sh +++ b/heart/checks/url_check_live.sh @@ -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" diff --git a/heart/checks/verify_install.sh b/heart/checks/verify_install.sh index eb030d20..a9fce150 100755 --- a/heart/checks/verify_install.sh +++ b/heart/checks/verify_install.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # heart/checks/verify_install.sh — deep install-readiness check for PyAutoLens. # -# Owned by PyAutoHeart (moved from PyAutoBuild): all release-readiness checking +# Owned by PyAutoHeart (moved from PyAutoHands): all release-readiness checking # is Heart's job. This is a *deep, on-demand* check — it creates throwaway venvs # / conda envs and installs from PyPI, so it takes minutes and must NEVER run in # the <30s `tick` loop. Invoke it via `pyauto-heart verify_install`, which passes diff --git a/heart/checks/version_skew.py b/heart/checks/version_skew.py index 7e36086d..c22e15bb 100644 --- a/heart/checks/version_skew.py +++ b/heart/checks/version_skew.py @@ -1,6 +1,6 @@ """heart/checks/version_skew.py — workspace pin vs installed library version. -PyAutoBuild's ``verify_workspace_versions.sh`` blocks a release if any +PyAutoHands's ``verify_workspace_versions.sh`` blocks a release if any workspace's pinned version is AHEAD of its installed library — but that only runs at ``pre_build`` time, so day-to-day the skew is invisible. This check makes it continuous. diff --git a/heart/checks/workspace_testmode_timing.py b/heart/checks/workspace_testmode_timing.py index b7b7b38e..0d6c5ccc 100644 --- a/heart/checks/workspace_testmode_timing.py +++ b/heart/checks/workspace_testmode_timing.py @@ -1,7 +1,7 @@ """heart/checks/workspace_testmode_timing.py — time curated workspace scripts run in integration TEST MODE, track a rolling baseline, flag regressions. -Distinct from ``script_timing``, which reads PyAutoBuild ``run_all`` durations +Distinct from ``script_timing``, which reads PyAutoHands ``run_all`` durations (the release/CI path). This leg runs a curated set of workspace ``start_here`` scripts with ``PYAUTO_TEST_MODE=2`` + ``PYAUTO_WORKSPACE_SMALL_DATASETS=1`` — the developer-loop mode named in the original hygiene prompt — and times them. diff --git a/heart/readiness.py b/heart/readiness.py index 4033043e..cabe105d 100644 --- a/heart/readiness.py +++ b/heart/readiness.py @@ -2,7 +2,7 @@ Rolls the continuous-health signals already in ``state.json`` into a single green / yellow / red verdict answering "is it safe to release?". This is the -**authoritative** release gate: PyAutoBuild is a pure executor and no longer +**authoritative** release gate: PyAutoHands is a pure executor and no longer runs its own readiness checks (``verify_workspace_versions.sh`` was removed) — the orchestrator (PyAutoAgent's release agent) consults this verdict via ``pyauto-heart readiness --json`` and only dispatches Build's ``release.yml`` @@ -43,7 +43,7 @@ **Profiles** (``--profile``): ``default`` is the dev-box verdict described above, byte-for-byte unchanged. ``release-ci`` is the scheduled-nightly -release gate (``PyAutoBuild/docs/nightly_release_design.md`` §5): the same +release gate (``PyAutoHands/docs/nightly_release_design.md`` §5): the same gates evaluated over a snapshot the nightly driver assembles **in CI**, where dev-box-local evidence (``repo_state``, ``version_skew``, ``script_timing``, the local ``test_run`` cache, ``manifest_drift``, ``profiling_drift``) does diff --git a/heart/tick.sh b/heart/tick.sh index 6017940f..972b2273 100755 --- a/heart/tick.sh +++ b/heart/tick.sh @@ -20,11 +20,11 @@ bash "$HEART_HOME/heart/checks/ci_status.sh" || heart_log WARN "$(c_warn ' bash "$HEART_HOME/heart/checks/open_prs.sh" || heart_log WARN "$(c_warn 'open_prs failed')" bash "$HEART_HOME/heart/checks/worktree_drift.sh" || heart_log WARN "$(c_warn 'worktree_drift failed')" -# Python: script timing regressions. Needs a local PyAutoBuild test_results/latest. -if [[ -d "$PYAUTO_ROOT/PyAutoBuild/test_results/latest" ]]; then +# Python: script timing regressions. Needs a local PyAutoHands test_results/latest. +if [[ -d "$PYAUTO_ROOT/PyAutoHands/test_results/latest" ]]; then PYTHONPATH="$HEART_HOME" python3 -m heart.checks.script_timing || heart_log WARN "$(c_warn 'script_timing failed')" else - heart_log INFO "$(c_meta 'script_timing: skipped (no PyAutoBuild/test_results/latest)')" + heart_log INFO "$(c_meta 'script_timing: skipped (no PyAutoHands/test_results/latest)')" fi # Python: profiling pinned-value drift. Reads autolens_profiling result JSONs. diff --git a/heart/validate.py b/heart/validate.py index 3414c997..43d69eeb 100644 --- a/heart/validate.py +++ b/heart/validate.py @@ -234,7 +234,7 @@ def add_rehearsal(self, data: dict[str, Any]) -> None: stage[key] = data[key] self.stages["rehearse"] = stage if data.get("build_sha"): - self.commit_shas.setdefault("PyAutoBuild", str(data["build_sha"])) + self.commit_shas.setdefault("PyAutoHands", str(data["build_sha"])) def add_stage(self, data: dict[str, Any]) -> None: self._stage_counts_seen = True diff --git a/scripts/health.sh b/scripts/health.sh index 74df4ecd..79e05971 100644 --- a/scripts/health.sh +++ b/scripts/health.sh @@ -36,7 +36,7 @@ Usage: health [sync|release|audit] [--all] health cross-repo git-sync dashboard (branch, behind/ahead, dirty) health sync same as bare `health` health --all sync dashboard with the full raw dirty listing (noise included) - health release last PyAutoBuild release-prep run dashboard + health release last PyAutoHands release-prep run dashboard health audit structural repo-health audit (non-repo dirs, stashes, dead branches) Release-run helpers: health-report / health-json / health-triage. diff --git a/scripts/health_release.sh b/scripts/health_release.sh index 34dc804a..92f64cea 100755 --- a/scripts/health_release.sh +++ b/scripts/health_release.sh @@ -2,8 +2,8 @@ # health_release.sh — release-prep run dashboard. # # Defines `_health_release` (run via `health release`) that reads the latest -# PyAutoBuild full release-prep run (the one symlinked from -# PyAutoBuild/test_results/latest/) and prints a dashboard: +# PyAutoHands full release-prep run (the one symlinked from +# PyAutoHands/test_results/latest/) and prints a dashboard: # # - Run timestamp + path + ready/not-ready verdict + total duration # - Per-workspace pass / fail / skipped / timeout / duration table @@ -19,7 +19,7 @@ # # Override the run path (e.g. to inspect a specific historical run) by passing # it as the first argument: -# health release ~/Code/PyAutoLabs/PyAutoBuild/test_results/runs/2026-04-29T14-48-47Z +# health release ~/Code/PyAutoLabs/PyAutoHands/test_results/runs/2026-04-29T14-48-47Z # # Sibling helpers: health-report / health-json / health-triage open the last # run's report.md / report.json / triage.md. @@ -28,7 +28,7 @@ # layer over the same run artefacts). This function prints straight to stdout, # no Claude needed. -PYAUTO_STATUS_FULL_DEFAULT="${PYAUTO_STATUS_FULL_DEFAULT:-$HOME/Code/PyAutoLabs/PyAutoBuild/test_results/latest}" +PYAUTO_STATUS_FULL_DEFAULT="${PYAUTO_STATUS_FULL_DEFAULT:-$HOME/Code/PyAutoLabs/PyAutoHands/test_results/latest}" _health_release() { local run_dir="${1:-$PYAUTO_STATUS_FULL_DEFAULT}" @@ -37,7 +37,7 @@ _health_release() { cat >&2 </dev/null) fi - # Last autobuild run. Reads aggregate from PyAutoBuild/test_results/*.json + # Last autobuild run. Reads aggregate from PyAutoHands/test_results/*.json # (committed by the autobuild release pipeline). Counts only — failure # detail lives in the per-job JSON / the GitHub Actions run. - local pab_dir="$HOME/Code/PyAutoLabs/PyAutoBuild/test_results" + local pab_dir="$HOME/Code/PyAutoLabs/PyAutoHands/test_results" if [[ -d "$pab_dir" ]] && compgen -G "$pab_dir/*.json" > /dev/null; then local pab_summary pab_summary=$(python3 -c ' @@ -376,7 +376,7 @@ import json, os, glob total_p = total_f = total_s = num = 0 projects = set() latest = "" -for f in sorted(glob.glob(os.path.expanduser("~/Code/PyAutoLabs/PyAutoBuild/test_results/*.json"))): +for f in sorted(glob.glob(os.path.expanduser("~/Code/PyAutoLabs/PyAutoHands/test_results/*.json"))): try: d = json.load(open(f)) s = d.get("summary", {}) @@ -395,9 +395,9 @@ print(f"{latest[:10]}|{num}|{len(projects)}|{total_p}|{total_f}|{total_s}") if [[ -n "$pab_summary" ]]; then local pab_date njobs nproj pab_p pab_f pab_s sha IFS='|' read -r pab_date njobs nproj pab_p pab_f pab_s <<< "$pab_summary" - sha=$(git -C "$HOME/Code/PyAutoLabs/PyAutoBuild" rev-parse --short HEAD 2>/dev/null) + sha=$(git -C "$HOME/Code/PyAutoLabs/PyAutoHands" rev-parse --short HEAD 2>/dev/null) echo "" - printf "Last autobuild run: %s (PyAutoBuild commit %s)\n" "$pab_date" "${sha:-?}" + printf "Last autobuild run: %s (PyAutoHands commit %s)\n" "$pab_date" "${sha:-?}" local color='\033[32m' [[ "$pab_f" != "0" ]] && color='\033[31m' printf " ${color}%s jobs across %s workspaces: %s passed, %s failed, %s skipped\033[0m\n" \ diff --git a/skills/dep_audit/SKILL.md b/skills/dep_audit/SKILL.md index 59f3825c..c40a44bc 100644 --- a/skills/dep_audit/SKILL.md +++ b/skills/dep_audit/SKILL.md @@ -28,7 +28,7 @@ For each library repo (PyAutoConf, PyAutoFit, PyAutoArray, PyAutoGalaxy, PyAutoL Parse each dependency string into: package name, version constraint (floor, cap, exact pin). -Also check `PyAutoBuild/requirements.txt` for any additional constraints. +Also check `PyAutoHands/requirements.txt` for any additional constraints. ### 2. Query PyPI for latest versions diff --git a/skills/health_sweep/reference.md b/skills/health_sweep/reference.md index 2a300a83..025c254b 100644 --- a/skills/health_sweep/reference.md +++ b/skills/health_sweep/reference.md @@ -21,7 +21,7 @@ Quick "is everything still green?" sweep across the PyAuto stack. Refreshes loca - PyAutoFit - PyAutoGalaxy - PyAutoLens -- PyAutoBuild +- PyAutoHands **Workspaces (run `$smoke-test`):** exactly the curated set `$smoke-test` maps — do not maintain a separate list here. As of writing that is `autofit_workspace`, @@ -100,7 +100,7 @@ PyAutoArray | main | already up to date | ✓ unit (1240/1240) PyAutoFit | main | dirty — skipped | ✗ unit (3 failed) PyAutoGalaxy | main | synced | ✓ unit (980/980) PyAutoLens | main | synced | ✓ unit (1530/1530) -PyAutoBuild | main | synced | no tests +PyAutoHands | main | synced | no tests autofit_workspace | main | synced | ✓ smoke (8/8) autogalaxy_workspace | main | synced | ✓ smoke (8/8) autolens_workspace | main | synced | ✗ smoke (1 failed) diff --git a/skills/pyauto-status-full/reference.md b/skills/pyauto-status-full/reference.md index 5a73ba27..b95051e9 100644 --- a/skills/pyauto-status-full/reference.md +++ b/skills/pyauto-status-full/reference.md @@ -5,10 +5,10 @@ > `PyAutoBrain/skills/health/health.md`). `$health` is the single health door; > this file is the release-run dashboard leg it drives. -Render the most recent PyAutoBuild full-run report as a release-readiness dashboard. Use this to inspect timing and failures from the last `python autobuild/run_all.py`. Read-only. +Render the most recent PyAutoHands full-run report as a release-readiness dashboard. Use this to inspect timing and failures from the last `python autobuild/run_all.py`. Read-only. A **PyAutoHeart** view — Heart owns the health/release-readiness surface; this -skill summarises the artefacts a PyAutoBuild run leaves on disk (Build executes; +skill summarises the artefacts a PyAutoHands run leaves on disk (Build executes; Heart reports). The authoritative live verdict is `pyauto-heart readiness`. ## Usage @@ -26,10 +26,10 @@ This is the deeper sibling of `$health status` (the active-work dashboard): ### 1. Locate the latest run -PyAutoBuild stores every full run under `~/Code/PyAutoLabs/PyAutoBuild/test_results/runs//` and updates a `latest` symlink on success. +PyAutoHands stores every full run under `~/Code/PyAutoLabs/PyAutoHands/test_results/runs//` and updates a `latest` symlink on success. ```bash -LATEST=~/Code/PyAutoLabs/PyAutoBuild/test_results/latest +LATEST=~/Code/PyAutoLabs/PyAutoHands/test_results/latest ``` If the symlink does not exist, no full run has completed yet. Print: @@ -37,7 +37,7 @@ If the symlink does not exist, no full run has completed yet. Print: ``` No full release-prep run on disk. -To produce one, from PyAutoBuild root: +To produce one, from PyAutoHands root: source ../activate.sh python autobuild/run_all.py ``` @@ -108,7 +108,7 @@ If only one run exists, omit this section silently. ### 5. Notes -- Read-only — never modifies PyAutoBuild output, never deletes runs, never touches the `latest` symlink. +- Read-only — never modifies PyAutoHands output, never deletes runs, never touches the `latest` symlink. - No GitHub posting (matches the `$health status` convention). The user can decide to share findings manually. - For quick browsing, the markdown report at `/report.md` already contains the same data — this skill is the conversational summary layer on top. @@ -119,6 +119,6 @@ This skill renders **local artefacts** produced by an autobuild full run. It is therefore meaningful only in a `local-dev` environment where those artefacts exist (see PyAutoBrain `skills/WORKFLOW.md` for the environment model). In a `web-github` / `analysis-only` / `ci-only` session there is no local run to -render — if `~/Code/PyAutoLabs/PyAutoBuild/test_results/latest` does not exist, +render — if `~/Code/PyAutoLabs/PyAutoHands/test_results/latest` does not exist, print the "no run on disk" message from step 1 and exit. (For the live release-readiness verdict from anywhere, use `pyauto-heart readiness` instead.) diff --git a/skills/review_release/review_release.md b/skills/review_release/review_release.md index 40508e75..212d4d46 100644 --- a/skills/review_release/review_release.md +++ b/skills/review_release/review_release.md @@ -1,6 +1,6 @@ # Review Release: Triage Release Readiness -Review the latest PyAutoBuild release evidence, ask PyAutoHeart for the +Review the latest PyAutoHands release evidence, ask PyAutoHeart for the authoritative readiness verdict, and route the human to release, refresh, fix, or investigate. Build artifacts explain what ran; they never determine whether the organism is ready. @@ -15,7 +15,7 @@ conductor coordinates any subsequent release action. List recent completed and in-progress runs: ```bash -gh run list --workflow=release.yml --repo PyAutoLabs/PyAutoBuild --limit 5 \ +gh run list --workflow=release.yml --repo PyAutoLabs/PyAutoHands --limit 5 \ --json databaseId,status,conclusion,createdAt,url ``` @@ -29,9 +29,9 @@ Read job conclusions from the selected run and fetch failed logs when needed: ```bash gh api --paginate \ - 'repos/PyAutoLabs/PyAutoBuild/actions/runs//jobs?per_page=100' \ + 'repos/PyAutoLabs/PyAutoHands/actions/runs//jobs?per_page=100' \ --jq '.jobs[] | {id, name, status, conclusion}' -gh run view --repo PyAutoLabs/PyAutoBuild --log-failed +gh run view --repo PyAutoLabs/PyAutoHands --log-failed ``` Use the Actions jobs API because the workspace's supported `gh 2.4.0` does not @@ -105,7 +105,7 @@ only job conclusions and details present in the selected run's logs. For fixes, use `$start-library` or `$start-workspace` (`/start_library` or `/start_workspace` in Claude) after filing a concise PyAutoMind prompt through `$intake` (`/intake` in Claude). Environment and workflow failures normally -target PyAutoBuild; source or script failures target the owning library or +target PyAutoHands; source or script failures target the owning library or workspace. If the user chooses investigation, show the full traceback, relevant source, diff --git a/skills/smoke_test/reference.md b/skills/smoke_test/reference.md index e8d6cd0e..443fcfe5 100644 --- a/skills/smoke_test/reference.md +++ b/skills/smoke_test/reference.md @@ -8,7 +8,7 @@ the verbose mechanics. Each notebook in `smoke_notebooks.txt` runs via `jupyter nbconvert --to notebook --execute`, with the executed copy written to a `/tmp` dir so the on-disk notebook stays clean. On failure, regenerate the single -failing notebook from its source `.py` via PyAutoBuild's `py_to_notebook` and +failing notebook from its source `.py` via PyAutoHands's `py_to_notebook` and retry once (catches stale notebooks where the script moved on but the `.ipynb` wasn't refreshed by `$pre-build` (`/pre_build` in Claude). Whole-workspace regeneration stays `generate.py`'s job — smoke only regenerates the one failing diff --git a/skills/verify_install/verify_install.md b/skills/verify_install/verify_install.md index d3983d5c..6215793c 100644 --- a/skills/verify_install/verify_install.md +++ b/skills/verify_install/verify_install.md @@ -4,7 +4,7 @@ Release-readiness gate for PyAutoLens. Runs a suite of independent install-path in throwaway venvs / conda envs and reports a per-check PASS / FAIL / SKIP table. The actual work lives in **`PyAutoHeart/heart/checks/verify_install.sh`** — release-readiness -checking is PyAutoHeart's job (PyAutoBuild is a pure executor). This skill is a thin wrapper: +checking is PyAutoHeart's job (PyAutoHands is a pure executor). This skill is a thin wrapper: invoke `pyauto-heart verify_install` (which also writes the JSON sidecar that `pyauto-heart readiness` consumes), read the report, expand any failures, and prompt the user about cleanup if they ran with `--keep`. @@ -28,7 +28,7 @@ reported as **SKIP** and does not count toward overall failure. The script is self-contained and runs from any shell. The canonical entry point is `pyauto-heart verify_install`, which runs the checks and writes the readiness sidecar. (`autobuild verify_install` still works as a thin shim that delegates here, for anyone -with PyAutoBuild on PATH.) +with PyAutoHands on PATH.) ```bash pyauto-heart verify_install # run all checks (default) diff --git a/tests/test_manifest_drift.py b/tests/test_manifest_drift.py index b28206dc..7e514815 100644 --- a/tests/test_manifest_drift.py +++ b/tests/test_manifest_drift.py @@ -9,7 +9,7 @@ OK_OUTPUT = """\ check PyAutoHeart/config/repos.yaml: OK -check PyAutoBuild/pre_build.sh: OK +check PyAutoHands/pre_build.sh: OK check ensure_workspace_labels.sh: OK check local checkout origins: OK """ diff --git a/tests/test_readiness.py b/tests/test_readiness.py index a8e2236d..8fce5372 100644 --- a/tests/test_readiness.py +++ b/tests/test_readiness.py @@ -712,7 +712,7 @@ def test_manifest_drift_unavailable_stays_green(): # --------------------------------------------------------------------------- # release-ci profile (the scheduled-nightly gate — design §5 in -# PyAutoBuild/docs/nightly_release_design.md). The driver assembles a snapshot +# PyAutoHands/docs/nightly_release_design.md). The driver assembles a snapshot # in CI with no dev box: cloud-refreshable evidence only. # --------------------------------------------------------------------------- diff --git a/tests/test_test_run.py b/tests/test_test_run.py index c76864fd..c865f8a7 100644 --- a/tests/test_test_run.py +++ b/tests/test_test_run.py @@ -1,4 +1,4 @@ -"""tests/test_test_run.py — parse PyAutoBuild test-run report into Heart JSON.""" +"""tests/test_test_run.py — parse PyAutoHands test-run report into Heart JSON.""" from __future__ import annotations diff --git a/tests/test_url_check.py b/tests/test_url_check.py index 4d8eae37..49ae8527 100644 --- a/tests/test_url_check.py +++ b/tests/test_url_check.py @@ -1,4 +1,4 @@ -"""tests/test_url_check.py — offline forbidden-URL regex guard (moved from PyAutoBuild).""" +"""tests/test_url_check.py — offline forbidden-URL regex guard (moved from PyAutoHands).""" import subprocess from pathlib import Path diff --git a/tests/test_validate.py b/tests/test_validate.py index 8c7a072a..8b333669 100644 --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -62,8 +62,8 @@ def test_ingest_rehearsal_only(tmp_path): assert report["release_ready"] is True # no integration stage yet → no release profile (the gate keeps this YELLOW) assert report["profile"] is None - # the build sha is recorded under PyAutoBuild, not a library head - assert report["commit_shas"].get("PyAutoBuild") == "abc1234def5678" + # the build sha is recorded under PyAutoHands, not a library head + assert report["commit_shas"].get("PyAutoHands") == "abc1234def5678" def test_ingest_version_txt_fallback(tmp_path):