Skip to content

start_dev: Heart at the door — read the Heart feed before development (#423) - #424

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/start-dev-heart-gate
Sep 27, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/start-dev-heart-gate

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Adds a start_dev step 0a, "Heart at the door": read the Heart's readiness feed before any development starts (closes #423).

  • New bin/heart_feed.py. Stdlib-only and read-only. It never ticks the Heart and uses a 5 s timeout.
    • Primary source: the Heart's published state.json. The URL comes from policy board: heart_board and the Mind body map via board/_board.py, with a BOARD_PAGES_BASE override.
    • Fallback: local pyauto-heart readiness --json, mapped into the same shape.
    • Output: Heart: <STATUS> — <headline> (updated Nh ago) plus the red and yellow rows.
    • Exit codes: 0 green, 1 yellow/stale, 2 red, 3 grey/unreachable. Flags: --json, --url, --offline.
  • start_dev step 0a runs 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 is created.
    • YELLOW: warns.
  • Wiring: start_bundle and route point 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

  • Targeted: tests/test_heart_feed.py + tests/test_skill_seams.py: fixture feeds per status, malformed, unreachable, fake pyauto-heart fallback
  • Full suite: 1077 passed, 1 failed. The one failure, test_grouped_organ_consumers.py::test_hygiene_map_and_heart_board_find_grouped_checkouts, comes from the env, not this branch: a worktree activate.sh exports PYAUTO_MIND, which overrides the test's PYAUTO_ROOT. It fails identically on origin/main and passes with PYAUTO_MIND unset. This branch does not touch that code.
  • After merge: bin/heart_feed.py against 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/grey
  • skills/start_dev/start_dev.md step 0a "Heart at the door"

Changed Behaviour

  • start_dev: RED Heart stops before planning (human override per AUTONOMY.md); --auto + RED parks before any issue
  • start_bundle, route, WORKFLOW.md reference the new gate

Closes #423

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…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
@Jammy2211
Jammy2211 merged commit 7de135c into main Sep 27, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/start-dev-heart-gate branch September 27, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(start_dev): Heart at the door — refuse or warn on the Heart feed before development

1 participant