Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ORGANISM.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 1 addition & 3 deletions config/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 8 additions & 17 deletions tests/test_board_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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/"
Expand All @@ -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"]


Expand Down Expand Up @@ -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():
Expand Down
Loading