start_dev: Heart at the door — read the Heart feed before development (#423) - #424
Merged
Merged
Conversation
…opment (#423) bin/heart_feed.py (stdlib, read-only, never ticks, 5 s timeout) reads the Heart's published state.json — URL from policy `board: heart_board` and the Mind body map via board/_board.py, BOARD_PAGES_BASE override — falling back to local `pyauto-heart readiness --json` mapped into the same shape. Prints `Heart: <STATUS> — <headline> (updated Nh ago)` plus red/yellow rows; exit 0 green, 1 yellow/stale, 2 red, 3 grey/unreachable; --json, --url, --offline. start_dev gains step 0a "Heart at the door" before the resume check (RED stops before planning and points at AUTONOMY's "Human override for Heart RED (development only)"; --auto + RED parks before any issue). start_bundle and route point at it; WORKFLOW's Heart-gate section names the door. Tests: tests/test_heart_feed.py (fixture feeds per status, malformed, unreachable, fake pyauto-heart fallback) and tests/test_skill_seams.py. Refs #423 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SbKQQHRRgm2b69aT9t7771
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a start_dev step 0a, "Heart at the door": read the Heart's readiness feed before any development starts (closes #423).
bin/heart_feed.py. Stdlib-only and read-only. It never ticks the Heart and uses a 5 s timeout.state.json. The URL comes from policyboard: heart_boardand the Mind body map viaboard/_board.py, with aBOARD_PAGES_BASEoverride.pyauto-heart readiness --json, mapped into the same shape.Heart: <STATUS> — <headline> (updated Nh ago)plus the red and yellow rows.--json,--url,--offline.--auto+ RED: parks before any issue is created.start_bundleandroutepoint at the new step, and WORKFLOW's Heart-gate section names the door.API Changes
None, internal changes only. This adds a new read-only CLI (
bin/heart_feed.py) and a new skill step. No existing command or signature changes.See full details below.
Test Plan
tests/test_heart_feed.py+tests/test_skill_seams.py: fixture feeds per status, malformed, unreachable, fakepyauto-heartfallbacktest_grouped_organ_consumers.py::test_hygiene_map_and_heart_board_find_grouped_checkouts, comes from the env, not this branch: a worktreeactivate.shexportsPYAUTO_MIND, which overrides the test'sPYAUTO_ROOT. It fails identically on origin/main and passes withPYAUTO_MINDunset. This branch does not touch that code.bin/heart_feed.pyagainst the live Heart board prints the current status (was STALE → exit 1 at build time)Heart YELLOW acknowledged by human (reasons: manifest drift in the hub organism blurb (7), organism-map blocks (1) and workspace checkouts (1); release validation stale for PyAutoFit/Array/Galaxy/Lens). None of these involve this repo.
Full API Changes (for automation & release notes)
Added
bin/heart_feed.py [--json] [--url URL] [--offline]: prints the Heart readiness line + red/yellow rows; exit 0/1/2/3 = green/yellow-or-stale/red/greyskills/start_dev/start_dev.mdstep 0a "Heart at the door"Changed Behaviour
start_dev: RED Heart stops before planning (human override per AUTONOMY.md);--auto+ RED parks before any issuestart_bundle,route,WORKFLOW.mdreference the new gateCloses #423
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code