Skip to content

feat(board): one read for the board family + publish the Heart's dev-box board each morning - #353

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/board-family-helper
Sep 4, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/board-family-helper

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #352

The board family stopped being one list

Membership and order live once, in config/policy.yaml board: boards: —
brain, mind, cortex, memory, heart, hands, organism, the ruled organ order.
The Brain's own renderers (_intake, _cortex, _board) read it. The three
sibling organs did not: PyAutoHeart, PyAutoHands and PyAutoMemory each carried
a hard-coded BOARD_FAMILY tuple written before the Cortex had a board, so
their footers linked five siblings in an ad-hoc order and silently missed the
sixth. A copy that drifts still renders, which is why nobody noticed.

board/_theme.py gains the one read they can all call:

board_links(base_url, current=None) -> dict[str, str]
  • the same stdlib regex over the one-pair-per-line block that
    _intake._board_links uses — no yaml import: this module is
    presentation-only and these boards also render in workflows that install
    nothing;
  • file order preserved, so editing policy.yaml reorders every footer at once;
  • current (the page's own key) dropped, so the result goes straight into
    boards_footer;
  • an unreadable config returns {}, which renders as no footer rather than a
    broken one.

tests/test_board_theme.py pins the order, the dropped current key, the
trailing-slash tolerance, the end-to-end footer, and the empty-on-missing-config
path.

The Heart board's grey rows

The Heart's Pages board renders its eight dev-box check families grey — "not
observed here — dev box last looked 6d ago" — because the observation expires
after 48 h and pyauto-heart publish was last run by hand on 28 Aug.
bin/morning.sh already publishes the Brain's dev-box observation every
morning; it never published the Heart's. It now runs
PyAutoHeart/bin/pyauto-heart tick && … publish beside it: same --no-publish
guard, same non-fatal "skipped" fallback, path resolved from the script's own
location so a worktree run resolves through the symlink.

Downstream

This is the base PR for three sibling PRs that call the new helper:

Each of those keeps its legacy tuple as a fallback for an older PyAutoBrain
checkout, so they are safe to merge in any order — but their CI checks out
PyAutoBrain main
, so their new footer assertions only go green once this PR
has merged. Library-first: merge this one first.

Tests

tests/test_board_theme.py tests/test_board.py tests/test_board_degraded.py
tests/test_morning_timer.py tests/test_intake_dashboard.py — 205 passed.

Footer chip order observed in each rendered board (with this branch as
PYAUTO_BRAIN):

Board <ul class="boards"> chips
Heart brain, mind, cortex, memory, hands, organism
Hands brain, mind, cortex, memory, heart, organism
Memory brain, mind, cortex, heart, hands, organism

🤖 Generated with Claude Code

https://claude.ai/code/session_01GnXNPigN6qWxLZy2cqhDBX

…ev-box board each morning

The family's membership and order live once, in `config/policy.yaml`
`board: boards:`. The Brain's own renderers read it; the three sibling
organs each kept a copy of the list instead, written before the Cortex had
a board — so their footers were short a chip and out of the ruled order,
and nothing noticed, because a copy that drifts still renders.

`_theme.board_links(base_url, current)` is that read, offered to every
renderer: the same stdlib regex `_intake._board_links` uses (this module is
presentation-only and must not grow a yaml dependency — these boards also
render in workflows that install nothing), file order preserved, the
current page dropped, `{key: <base>/<Repo>/}` out. An unreadable config
returns nothing, which renders as no footer rather than a broken one.

Second: the Heart's cloud board renders its eight dev-box check families
grey because the observation expires after 48h and nothing published one —
`morning.sh` published the Brain's every morning and the Heart's never. It
now ticks and publishes both, under the same `--no-publish` guard and the
same non-fatal "skipped" fallback.

Refs #352

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GnXNPigN6qWxLZy2cqhDBX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: shared board_links helper in the board theme + Heart publish in morning.sh

1 participant