From 644d0d76d4e928ebed2c16ea33dd1daffa33ec80 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 8 Oct 2026 14:37:38 +0100 Subject: [PATCH] feat: add Broca Pages to shared board navigation --- ORGANISM.md | 5 +++-- config/policy.yaml | 4 +--- tests/test_board_theme.py | 25 ++++++++----------------- 3 files changed, 12 insertions(+), 22 deletions(-) diff --git a/ORGANISM.md b/ORGANISM.md index 2219b66a..86824187 100644 --- a/ORGANISM.md +++ b/ORGANISM.md @@ -159,5 +159,6 @@ runners, remain independently usable, and never depend on Broca. Brain interpret evidence and routes accepted changes through Mind; Cortex retains science records, Heart retains readiness. Benchmarks and maintenance inventory are separate evidence kinds. Missing or incomparable results never establish a pass. -Broca's board consumes the shared presentation contract; its unhosted board registration -must not create a broken public Pages link. Hosted publication is a separate step. Broca does not automatically launch model or HPC campaigns. +Broca's board consumes the shared presentation contract; its public board registration +links to the GitHub Pages dashboard. Broca’s Actions workflow publishes only the +rendered saved snapshot, without collecting evidence or advancing its freshness. Broca does not automatically launch model or HPC campaigns. diff --git a/config/policy.yaml b/config/policy.yaml index 7eb9297f..a8e85784 100644 --- a/config/policy.yaml +++ b/config/policy.yaml @@ -161,13 +161,11 @@ board: # carries; each renderer skips its own entry). Parsed by board/_board.py # (yaml) and by the Mind renderer's footer (stdlib regex on this block — # keep one `name: Repo` pair per line). - # Unhosted/private boards are registered separately, without public Pages links. - private_boards: - broca: PyAutoBroca boards: brain: PyAutoBrain mind: PyAutoMind cortex: PyAutoCortex + broca: PyAutoBroca memory: PyAutoMemory eyes: PyAutoEyes ears: PyAutoEars diff --git a/tests/test_board_theme.py b/tests/test_board_theme.py index 9d1bc10e..4fe11102 100644 --- a/tests/test_board_theme.py +++ b/tests/test_board_theme.py @@ -102,23 +102,14 @@ def test_navigation_escapes_owner_text_and_follows_the_banner(): re.M).group(1), re.M) -PRIVATE_BOARDS = re.findall( - r"^ (\w+): \S+$", - re.search(r"^ private_boards:\n((?: \w+: \S+\n)+)", - (BRAIN_HOME / "config" / "policy.yaml").read_text(), - re.M).group(1), re.M) - - -def test_private_boards_have_identity_without_public_navigation(): - assert "broca" in PRIVATE_BOARDS - assert not set(PRIVATE_BOARDS) & set(POLICY_BOARDS) - for key in PRIVATE_BOARDS: - assert key in _theme.ORGANS and key in _theme.MARKS - assert _theme.prompt_heading(key) +def test_broca_is_a_public_board_with_shared_identity(): + assert "broca" in POLICY_BOARDS + assert "broca" in _theme.ORGANS and "broca" in _theme.MARKS + assert _theme.prompt_heading("broca") def test_every_declared_board_has_a_complete_palette_entry(): - for key in POLICY_BOARDS + PRIVATE_BOARDS: + for key in POLICY_BOARDS: assert key in _theme.ORGANS, key o = _theme.ORGANS[key] for field in ("organ", "tagline", @@ -293,7 +284,7 @@ def test_board_links_reads_the_declared_family_in_file_order(): # ad-hoc order). This helper is the one read, so the order it returns is # the order `config/policy.yaml` declares — the ruled organ order. links = _theme.board_links("https://example.invalid") - assert list(links) == ["brain", "mind", "cortex", "memory", "eyes", "ears", + assert list(links) == ["brain", "mind", "cortex", "broca", "memory", "eyes", "ears", "heart", "hands", "pulse", "insight", "dna", "nerves", "gut", "organism"] assert list(links) == POLICY_BOARDS assert links["cortex"] == "https://example.invalid/PyAutoCortex/" @@ -316,7 +307,7 @@ def test_board_links_renders_the_family_footer_end_to_end(): footer = _theme.boards_footer( _theme.board_links("https://example.invalid", "heart"), "heart") order = re.findall(r'data-organ="(\w+)"', footer) - assert order == ["brain", "mind", "cortex", "memory", "eyes", "ears", "hands", + assert order == ["brain", "mind", "cortex", "broca", "memory", "eyes", "ears", "hands", "pulse", "insight", "dna", "nerves", "gut", "organism"] @@ -461,7 +452,7 @@ def test_the_nerves_board_is_in_the_family_and_readable(): def test_every_theme_entry_but_the_umbrella_is_a_declared_board(): # The reverse of the palette check: a palette for a board nobody declares # is a footer chip that can never appear. - assert set(_theme.ORGANS) <= set(POLICY_BOARDS + PRIVATE_BOARDS) | {"organism"} + assert set(_theme.ORGANS) <= set(POLICY_BOARDS) | {"organism"} def test_legacy_dashboard_prompts_preserve_arguments_and_paths():