From f7151cae4a5687362780adcfbcc17f39b1d585b7 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 2 Oct 2026 11:03:54 +0100 Subject: [PATCH] feat(organism): PyAutoPulse joins the organ siblings and the organism poll group (profiling-organ-birth phase 0, PyAutoMind#463) _SIBLING_ORGANS (heart/_workspace.py) and the degraded-path directory chain (heart/_workspace.sh) learn PyAutoPulse after Hands, mirroring PyAutoBrain/agents/_pyauto_root.py. config/repos.yaml polls PyAutoPulse in the organism group (advisory: no required workflows), so the polled-count sanity test moves 26 -> 27. Generated by repos_sync --write: the installed session-start hook. Refs PyAutoLabs/PyAutoMind#463 Co-Authored-By: Claude Fable 5.1 --- .claude/hooks/session-start.sh | 7 ++++--- config/repos.yaml | 2 ++ heart/_workspace.py | 1 + heart/_workspace.sh | 3 ++- tests/test_repo_config.py | 7 ++++--- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.claude/hooks/session-start.sh b/.claude/hooks/session-start.sh index f58396f7..54a10fe6 100755 --- a/.claude/hooks/session-start.sh +++ b/.claude/hooks/session-start.sh @@ -132,12 +132,13 @@ marked_root() { holds_an_organ() { [ -d "$1/PyAutoBrain" ] || [ -d "$1/PyAutoMind" ] || [ -d "$1/PyAutoCortex" ] \ || [ -d "$1/PyAutoMemory" ] || [ -d "$1/PyAutoEyes" ] || [ -d "$1/PyAutoHeart" ] \ - || [ -d "$1/PyAutoHands" ] || [ -d "$1/PyAutoNerves" ] || [ -d "$1/PyAutoGut" ] \ + || [ -d "$1/PyAutoHands" ] || [ -d "$1/PyAutoPulse" ] || [ -d "$1/PyAutoNerves" ] \ + || [ -d "$1/PyAutoGut" ] \ || [ -d "$1/organs/PyAutoBrain" ] || [ -d "$1/organs/PyAutoMind" ] \ || [ -d "$1/organs/PyAutoCortex" ] || [ -d "$1/organs/PyAutoMemory" ] \ || [ -d "$1/organs/PyAutoEyes" ] || [ -d "$1/organs/PyAutoHeart" ] \ - || [ -d "$1/organs/PyAutoHands" ] || [ -d "$1/organs/PyAutoNerves" ] \ - || [ -d "$1/organs/PyAutoGut" ] + || [ -d "$1/organs/PyAutoHands" ] || [ -d "$1/organs/PyAutoPulse" ] \ + || [ -d "$1/organs/PyAutoNerves" ] || [ -d "$1/organs/PyAutoGut" ] } # Assigns WORKSPACE_ROOT and WORKSPACE_ROOT_REASON rather than printing: one diff --git a/config/repos.yaml b/config/repos.yaml index 51d3ce5b..dca19dc6 100644 --- a/config/repos.yaml +++ b/config/repos.yaml @@ -83,6 +83,8 @@ repos: owner: PyAutoLabs - name: PyAutoHeart owner: PyAutoLabs + - name: PyAutoPulse + owner: PyAutoLabs # Required gating workflows per group, keyed by the GitHub Actions workflow # *name* (the `name:` field, e.g. "Smoke Tests"), matched against diff --git a/heart/_workspace.py b/heart/_workspace.py index 185a31f2..8275b423 100644 --- a/heart/_workspace.py +++ b/heart/_workspace.py @@ -75,6 +75,7 @@ "PyAutoEyes", "PyAutoHeart", "PyAutoHands", + "PyAutoPulse", "PyAutoNerves", "PyAutoGut", ) diff --git a/heart/_workspace.sh b/heart/_workspace.sh index ca02e8ec..5ea875fc 100644 --- a/heart/_workspace.sh +++ b/heart/_workspace.sh @@ -90,7 +90,8 @@ else if [ -d "$PYAUTO_ROOT/PyAutoMind" ] || [ -d "$PYAUTO_ROOT/PyAutoCortex" ] \ || [ -d "$PYAUTO_ROOT/PyAutoMemory" ] || [ -d "$PYAUTO_ROOT/PyAutoEyes" ] \ || [ -d "$PYAUTO_ROOT/PyAutoHeart" ] || [ -d "$PYAUTO_ROOT/PyAutoHands" ] \ - || [ -d "$PYAUTO_ROOT/PyAutoNerves" ] || [ -d "$PYAUTO_ROOT/PyAutoGut" ]; then + || [ -d "$PYAUTO_ROOT/PyAutoPulse" ] || [ -d "$PYAUTO_ROOT/PyAutoNerves" ] \ + || [ -d "$PYAUTO_ROOT/PyAutoGut" ]; then PYAUTO_ROOT_REASON="beside this checkout (no PyAutoBrain in reach)" else PYAUTO_ROOT_REASON="unverified (no sibling organ beside this checkout) (no PyAutoBrain in reach)" diff --git a/tests/test_repo_config.py b/tests/test_repo_config.py index 947ce023..177beac0 100644 --- a/tests/test_repo_config.py +++ b/tests/test_repo_config.py @@ -49,13 +49,14 @@ def test_thresholds_have_expected_fields(config): assert thresholds["script_timing"]["baseline_window"] >= 3 -def test_26_repos_polled(config): +def test_27_repos_polled(config): """Sanity check the polled count — bumps need a deliberate update. (25 since the CTI resurrection added PyAutoCTI + autocti_workspace + autocti_workspace_test to the polled registry; 26 since the Eyes organ - joined the organism group, PyAutoMind#437.)""" + joined the organism group, PyAutoMind#437; 27 since the Pulse organ + joined it, PyAutoMind#463.)""" total = sum(len(v) for v in config["repos"].values()) - assert total == 26, f"expected 26 polled repos, got {total}" + assert total == 27, f"expected 27 polled repos, got {total}" def test_cti_polled_but_not_release_gating(config):