diff --git a/AGENTS.md b/AGENTS.md index dc7d45e..1e9ab4e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -184,3 +184,16 @@ body and hands them to the human (sessions cannot create Discussions). Only the development flow — Mind prompt → `/start_dev` → `/create_issue` → one issue per task → PR — opens issues here. Why: `PyAutoMind/policy/community_surface.md`. + + +## Shared standards + +Before changing a shared interface, consult the applicable +[organism standard](https://github.com/PyAutoLabs/PyAutoBrain/blob/main/docs/standards.md) +on demand, identify affected consumers, and validate their adoption. Change +generated guidance at its canonical source and regenerate. + +For board changes, follow the applicable sizing, navigation and orchestration +standards and reuse Brain’s shared components. Keep domain data, prompt meaning +and approval boundaries with the board’s owner. + diff --git a/scripts/board.py b/scripts/board.py index 25166fa..8ab8369 100644 --- a/scripts/board.py +++ b/scripts/board.py @@ -75,6 +75,8 @@ import yaml NERVES_HOME = Path(__file__).resolve().parents[1] +CHECKIN_PROMPT = 'Review configuration work across the Nerves board in this chat. Read PyAutoNerves/AGENTS.md and inspect the relevant source repositories, YAML parse errors, option documentation, override relationships and scan coverage. Give a concise priority order and propose one bounded next step. Apply my direction while preserving the overall review. Treat possibly-unused keys as static scan hints, not permission to remove them. Route edits through the development workflow and preserve downstream API validation and human gates.' + BOARD_KEY = "nerves" # this board's entry in the Brain's palette table SCHEMA_VERSION = 1 STATE_ITEMS_MAX = 20 @@ -1394,8 +1396,18 @@ def _render_html_index(snap: dict) -> str: ]: if present: navigation.append({"href": "#" + target, "label": label, "count": count}) + work_links = [] + if repo_url(snap): + work_links.append({"label": "Nerves repository", "href": repo_url(snap)}) + for source in snap.get("sources") or []: + work_slug = source.get("github") or "" + if re.fullmatch(r"[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+", work_slug): + work_links.append({"label": source["repo"] + " repository", + "href": "https://github.com/" + work_slug}) + panel = t_.orchestration_panel("nerves", "", "", CHECKIN_PROMPT, + organ="nerves", work_links=work_links) body = f"""{t_.hero(BOARD_KEY, "Board", lede, navigation=navigation)} -{t_.prompt_heading("nerves")} +{panel}
{st.upper()} {_esc(_summary(snap))}
markdown version ·
diff --git a/test_autonerves/test_board.py b/test_autonerves/test_board.py
index e72875c..5f61d97 100644
--- a/test_autonerves/test_board.py
+++ b/test_autonerves/test_board.py
@@ -210,6 +210,7 @@ def make_tree(tmp_path):
FAKE_THEME = types.SimpleNamespace(
+ orchestration_panel=lambda key, title, description, prompt, **kwargs: "