From 098fa8fac727bdf5864b826d232d194dc3f74bf3 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 4 Oct 2026 08:42:21 +0100 Subject: [PATCH] Integrate Insight organ identity and canonical adapters --- .claude/hooks/session-start.sh | 4 ++-- config/repos.yaml | 2 ++ heart/_workspace.py | 1 + heart/_workspace.sh | 2 +- tests/test_repo_config.py | 6 +++--- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.claude/hooks/session-start.sh b/.claude/hooks/session-start.sh index 54a10fe6..591c2d7c 100755 --- a/.claude/hooks/session-start.sh +++ b/.claude/hooks/session-start.sh @@ -132,12 +132,12 @@ 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/PyAutoPulse" ] || [ -d "$1/PyAutoNerves" ] \ + || [ -d "$1/PyAutoHands" ] || [ -d "$1/PyAutoPulse" ] || [ -d "$1/PyAutoInsight" ] || [ -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/PyAutoPulse" ] \ + || [ -d "$1/organs/PyAutoHands" ] || [ -d "$1/organs/PyAutoPulse" ] || [ -d "$1/organs/PyAutoInsight" ] \ || [ -d "$1/organs/PyAutoNerves" ] || [ -d "$1/organs/PyAutoGut" ] } diff --git a/config/repos.yaml b/config/repos.yaml index f3f6ec6d..36dfab03 100644 --- a/config/repos.yaml +++ b/config/repos.yaml @@ -87,6 +87,8 @@ repos: owner: PyAutoLabs - name: PyAutoPulse owner: PyAutoLabs + - name: PyAutoInsight + 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 ab7d606a..7e24b936 100644 --- a/heart/_workspace.py +++ b/heart/_workspace.py @@ -77,6 +77,7 @@ "PyAutoHeart", "PyAutoHands", "PyAutoPulse", + "PyAutoInsight", "PyAutoNerves", "PyAutoGut", ) diff --git a/heart/_workspace.sh b/heart/_workspace.sh index ae7beb0f..751e9760 100644 --- a/heart/_workspace.sh +++ b/heart/_workspace.sh @@ -90,7 +90,7 @@ else if [ -d "$PYAUTO_ROOT/PyAutoMind" ] || [ -d "$PYAUTO_ROOT/PyAutoCortex" ] \ || [ -d "$PYAUTO_ROOT/PyAutoMemory" ] || [ -d "$PYAUTO_ROOT/PyAutoEars" ] || [ -d "$PYAUTO_ROOT/PyAutoEyes" ] \ || [ -d "$PYAUTO_ROOT/PyAutoHeart" ] || [ -d "$PYAUTO_ROOT/PyAutoHands" ] \ - || [ -d "$PYAUTO_ROOT/PyAutoPulse" ] || [ -d "$PYAUTO_ROOT/PyAutoNerves" ] \ + || [ -d "$PYAUTO_ROOT/PyAutoPulse" ] || [ -d "$PYAUTO_ROOT/PyAutoInsight" ] || [ -d "$PYAUTO_ROOT/PyAutoNerves" ] \ || [ -d "$PYAUTO_ROOT/PyAutoGut" ]; then PYAUTO_ROOT_REASON="beside this checkout (no PyAutoBrain in reach)" else diff --git a/tests/test_repo_config.py b/tests/test_repo_config.py index 0f864130..ffcb8800 100644 --- a/tests/test_repo_config.py +++ b/tests/test_repo_config.py @@ -49,14 +49,14 @@ def test_thresholds_have_expected_fields(config): assert thresholds["script_timing"]["baseline_window"] >= 3 -def test_28_repos_polled(config): +def test_29_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; 27 since the Pulse organ - joined it, PyAutoMind#463; 28 since Ears, PyAutoBrain#455.)""" + joined it, PyAutoMind#463; 28 since Ears, PyAutoBrain#455; 29 since Insight, PyAutoInsight#1.)""" total = sum(len(v) for v in config["repos"].values()) - assert total == 28, f"expected 28 polled repos, got {total}" + assert total == 29, f"expected 29 polled repos, got {total}" def test_cti_polled_but_not_release_gating(config):