Repository navigation
Description
Overview
The one-tap board family's canonical list lives in config/policy.yaml under board: boards: (brain, mind, cortex, memory, heart, hands, organism — the ruled organ order). PyAutoBrain's own renderers read it with a stdlib regex; three sibling renderers (PyAutoHeart, PyAutoHands, PyAutoMemory) each carry a stale hard-coded BOARD_FAMILY tuple with no Cortex chip and the wrong order. Give the shared theme one helper they can call instead.
Second: the Heart Pages board renders its eight dev-box check families grey ("not observed here — dev box last looked 6d ago") because pyauto-heart publish was last run 28 Aug and the observation expires after 48 h. bin/morning.sh already publishes the Brain dev-box board daily; it should tick and publish the Heart one beside it.
Plan
board/_theme.pygainsboard_links(base_url, current=None) -> dict[str, str]— reads theboards:block ofconfig/policy.yamlwith the same stdlib regex_intake._board_linksuses (the theme module stays stdlib-only), preserves file order, skipscurrent, returns{key: f"{base_url}/{repo}/"}.- A unit test pins the order and the dropped current key.
bin/morning.shrunsPyAutoHeart/bin/pyauto-heart tick && … publishbeside the Brain publish, skipped under--no-publish, failure non-fatal.
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoBrain | main | clean |
| ./PyAutoHeart | main | clean |
| ./PyAutoHands | main | clean |
| ./PyAutoMemory | main | clean |
Suggested branch: feature/board-family-helper
Implementation Steps
board/_theme.py— addboard_links(base_url, current=None)besideboards_footer, plus there/pathlibstdlib imports it needs.tests/test_board_theme.py— assert the returned order isbrain, mind, cortex, memory, heart, hands, organism, thatcurrentis dropped, and that the URLs are<base>/<Repo>/.bin/morning.sh— add the Heart tick+publish leg after the Brainboard.sh publish, under the same--no-publishguard, with the same "skipped" fallback message.
Key Files
board/_theme.py— the shared board theme (stdlib-only, presentation-only)config/policy.yaml—board: boards:is the declared config surfacetests/test_board_theme.py— the theme's contract testsbin/morning.sh— the local morning routine
Original Prompt
Click to expand starting prompt
See PyAutoMind/active/board_family_footer_shared_helper.md.
🤖 Generated with Claude Code
Activity
Jammy2211 commentedon Sep 4, 2026
Shipped
Merged in #353 (
feature/board-family-helper→main).board/_theme.pygainsboard_links(base_url, current=None), reading the canonicalboard: boards:block ofconfig/policy.yamlwith the same stdlib regex_intake._board_linksuses — the theme module stays stdlib-only (no yaml import), file order preserved,currentskipped, returning{key: f"{base_url}/{repo}/"}.tests/test_board_theme.pypins the ruled organ order (brain, mind, cortex, memory, heart, hands, organism) and that the current key is dropped.bin/morning.shnow ticks and publishes the Heart dev-box board beside the Brain one, so the Heart Pages board stops rendering its eight check families grey; skipped under--no-publish, failure non-fatal with the same "skipped" message pattern.CI: Brain Tests (pull_request) green on both pytest legs at head
cf669f11;mergeStateStatusCLEAN.This was the library-first base for the three sibling footer PRs, whose CI has been re-run against the merged helper: PyAutoHeart#201, PyAutoHands#277, PyAutoMemory#88.
Record:
PyAutoMind/complete/2026/09/board-family-helper.md.complete: board-family-helper