From f2e89752bee8a46de6de60cea0b789e03664890e Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Mon, 5 Oct 2026 19:05:03 +0100 Subject: [PATCH] Add shared orchestration panel and organism standards index --- AGENTS.md | 5 ++ agents/conductors/cortex/_cortex.py | 18 +++- agents/conductors/intake/_intake.py | 13 ++- board/_board.py | 15 +++- board/_theme.py | 124 +++++++++++++++++++++++++- docs/board-orchestration.md | 80 +++++++++++++++++ docs/index.md | 2 + docs/standards.md | 50 +++++++++++ tests/board_orchestration_browser.cjs | 62 +++++++++++++ tests/render_orchestration_fixture.py | 24 +++++ tests/test_board_theme.py | 41 +++++++++ tests/test_cortex_conductor.py | 6 +- tests/test_prompt_budget.py | 12 +-- 13 files changed, 438 insertions(+), 14 deletions(-) create mode 100644 docs/board-orchestration.md create mode 100644 docs/standards.md create mode 100644 tests/board_orchestration_browser.cjs create mode 100644 tests/render_orchestration_fixture.py diff --git a/AGENTS.md b/AGENTS.md index 752e21a0..0e6cb519 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -43,6 +43,11 @@ The consultation graph is a DAG: conductors consult faculties, not conductors. See [ORGANISM.md](ORGANISM.md) for boundaries and [AUTONOMY.md](AUTONOMY.md) for checkpoint rules. Add a role only on demonstrated need. +Before changing shared board presentation, read the applicable contract in +[shared organism standards](docs/standards.md). Reuse the shared component, +identify its affected consumers and validate adoption; keep domain meanings and +work destinations in their owning renderers. + For development use [skills/WORKFLOW.md](skills/WORKFLOW.md), then the invoked skill. Read only its current step and applicable environment. Reuse unchanged instructions already loaded; use [context discipline](skills/CONTEXT.md). diff --git a/agents/conductors/cortex/_cortex.py b/agents/conductors/cortex/_cortex.py index dc63497b..40c01e04 100644 --- a/agents/conductors/cortex/_cortex.py +++ b/agents/conductors/cortex/_cortex.py @@ -70,7 +70,7 @@ # this page is visibly the same family as the Mind's and the Brain's. sys.path.insert(0, str(BRAIN_HOME / "board")) from _theme import ( # noqa: E402 - JS as _THEME_JS, boards_footer, css as _theme_css, hero, pills, stats, + JS as _THEME_JS, boards_footer, css as _theme_css, hero, orchestration_panel, pills, stats, ) # The organ-cockpit feed contract (board/_state.py, state.json v1) — the same # constructor the Brain board uses, so this renderer cannot write a feed the @@ -609,6 +609,15 @@ def render_dashboard_html(c: dict) -> str: home = c.get("home", "") blob = f"{home}/blob/main/" if home else "" n = c["counts"] + work_links = [{"label": "Open Cortex repository", "href": home}] if home else [] + seen = {home} + for key, project in c["projects"].items(): + remote = str(project.get("remote") or "") + if project.get("status") == "active" and re.fullmatch(r"[\w.-]+/[\w.-]+", remote): + url = "https://github.com/" + remote + if url not in seen: + work_links.append({"label": "Open " + key, "href": url}) + seen.add(url) H = [ "", '', "", '', @@ -624,6 +633,10 @@ def render_dashboard_html(c: dict) -> str: {"label": "Projects", "href": "#projects", "count": n["active"]}, {"label": "Check in", "href": "#checkin-box"}, ]), + orchestration_panel( + "cortex", "Check in on the science", + "Review projects and runs together, then record what you have learned.", + checkin_payload(c), work_links=work_links, copy_label=CHECKIN_LABEL), # One line, deliberately: the `--check` normaliser drops it whole so # a date change is not drift. f'

Last updated ' @@ -639,8 +652,7 @@ def render_dashboard_html(c: dict) -> str: H += [f"

  • {_esc(p)}
  • " for p in c["problems"][:10]] H += [""] stamp = c.get("checkin") or "" - H += [_html_task(_esc(CHECKIN_LABEL), checkin_payload(c)), - f'
    ' + H += [f'
    ' f'
    ' f'Last check-in' f'