Skip to content

feat: board footer reads the canonical board family instead of a stale tuple #87

Description

@Jammy2211

Overview

scripts/board.py carries a hard-coded BOARD_FAMILY tuple listing five sibling boards in an ad-hoc order. It predates PyAutoCortex, so the Memory board's footer has no Cortex chip, and its chip order does not match the ruled organ order the rest of the family renders.

The canonical list already lives in PyAutoBrain/config/policy.yaml under board: boards: (brain, mind, cortex, memory, heart, hands, organism), and this renderer already imports the shared theme from PyAutoBrain/board/_theme.py via its theme() locator — the CI job here already checks PyAutoBrain out beside the repo.

Plan

  • Replace BOARD_FAMILY with the theme's new board_links(base, current) helper, keeping the base URL derivation this file already does (the snapshot owner).
  • Keep the old tuple as a fallback for an older PyAutoBrain checkout without board_links.
  • Update the board tests to assert the footer carries Cortex and the canonical chip order.

Library-first / branch dependency: depends on PyAutoBrain#352 (feature/board-family-helper), which adds _theme.board_links. CI here may only go green once that PR has merged; until then the fallback path is what runs.

Detailed implementation plan

Affected Repositories

  • PyAutoMemory (primary)
  • PyAutoBrain (upstream helper — separate PR)

Branch Survey

Repository Current Branch Dirty?
./PyAutoMemory main clean

Suggested branch: feature/memory-board-family-footer

Implementation Steps

  1. scripts/board.py — replace the BOARD_FAMILY tuple + nav builder with a call to theme().board_links(base, BOARD_KEY), falling back to the legacy tuple when the helper is absent.
  2. tests/test_board.py — assert the rendered <ul class="boards"> carries a Cortex chip and the canonical chip order.

Key Files

  • scripts/board.py — the board renderer
  • tests/test_board.py — the board's tests

Original Prompt

Click to expand starting prompt

See the matching PyAutoMind prompt under active/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GnXNPigN6qWxLZy2cqhDBX

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions