diff --git a/AGENTS.md b/AGENTS.md index 1b2a574..94274f6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -63,3 +63,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/README.md b/README.md index 551ed45..d99ac08 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,15 @@ The software developed by the organism lives across the [PyAutoLabs](https://git In March 2026, following more than a decade of exclusively human-led software development, PyAutoLabs transitioned to a fully natural-language, agentic-AI development ecosystem called `PyAutoScientist`. The software it now develops grew out of that decade of human-led work: [PyAutoLens](https://github.com/PyAutoLabs/PyAutoLens) (strong gravitational lensing), [PyAutoGalaxy](https://github.com/PyAutoLabs/PyAutoGalaxy) (galaxy structure and morphology), [PyAutoFit](https://github.com/PyAutoLabs/PyAutoFit) (Bayesian model fitting), [PyAutoArray](https://github.com/PyAutoLabs/PyAutoArray) (scientific data structures) and [PyAutoCTI](https://github.com/PyAutoLabs/PyAutoCTI) (CCD charge-transfer calibration), together with their workspaces and tutorials. +## Shared standards + +The [organism standards index](https://github.com/PyAutoLabs/PyAutoBrain/blob/main/docs/standards.md) +links the shared dashboard sizing, navigation and orchestration contracts, +their reusable components and validation. Consult the applicable standard when +changing a shared interface; keep each board's data and workflow with its owner. +The [published documentation](https://pyautoscientist.readthedocs.io) continues +to build from PyAutoBrain's docs. + ## Contributing Start with [PyAutoLabs Discussions](https://github.com/orgs/PyAutoLabs/discussions) for questions, ideas, and proposals. Confirmed reproducible bugs and agreed implementation work belong in the affected repository's issue tracker. You may also submit a conventional pull request, with or without AI assistance. diff --git a/scripts/organism_board.py b/scripts/organism_board.py index f8a6965..96dab03 100644 --- a/scripts/organism_board.py +++ b/scripts/organism_board.py @@ -44,6 +44,8 @@ # the whole family at once — organism_board.yml checks PyAutoBrain out beside # this repo, and a local run finds the sibling checkout the same way the other # PyAuto tools resolve each other. +CHECKIN_PROMPT = 'Review the organism boards in this chat. Read PyAutoScientist/AGENTS.md and use the board skill to verify current operational evidence, unknown coverage, priorities and blockers. Route each next action to its relevant organ and existing skill; keep this landing repository separate from scientific execution and authoritative task state. Apply my direction while retaining the overall review. Propose bounded next steps and preserve all development, release, compute and merge approval gates. Do not execute mutations merely to check in.' + BOARD_KEY = "organism" # this board's entry in the Brain's palette table @@ -225,6 +227,14 @@ def _copy_btn(payload: str, label: str = "copy") -> str: def _render_html(snapshot: dict) -> str: t = theme() + work_links = [ + {"label": b["name"] + " repository", + "href": f"https://github.com/{snapshot['owner']}/{b['repo']}"} + for b in snapshot.get("boards") or [] + if snapshot.get("owner") and b.get("repo") + ] + panel = t.orchestration_panel("scientist", "", "", CHECKIN_PROMPT, + organ="scientist", work_links=work_links) word = heart_word(snapshot) rows = [] for b in snapshot.get("boards") or []: @@ -256,7 +266,7 @@ def _render_html(snapshot: dict) -> str:
{hero} -{t.prompt_heading("scientist")} +{panel}{_html.escape(route_hint(snapshot))}
{''.join(rows)}markdown version{github_link}
diff --git a/tests/test_organism_board.py b/tests/test_organism_board.py index b2a1d05..60e021b 100644 --- a/tests/test_organism_board.py +++ b/tests/test_organism_board.py @@ -97,6 +97,7 @@ def test_html_is_self_contained_with_door_chips(): assert "src=" not in out and "]*>.*?", "", stripped, flags=re.S) for m in re.finditer(r"(?:http|https)://", stripped): before = stripped[max(0, m.start() - 30):m.start()] assert 'href="' in before or "href='" in before @@ -119,3 +120,15 @@ def test_mind_counts_parser(): "| [In flight](#a) (`active/`) | 4 |\n| [Backlog](#b) (`draft/`) | 151 |\n") counts = {k: int(v) for k, v in ob.MIND_COUNT_RE.findall(md)} assert counts == {"In flight": 4, "Backlog": 151} + + +def test_panel_links_each_work_owner_and_preserves_doors(): + snap = _snap() + rendered = ob.render(snap, "html") + assert 'data-orchestration-panel' in rendered + assert 'Work on GitHub:' in rendered + assert 'Do not execute mutations merely to check in.' in rendered + for row in snap["boards"]: + assert f'https://github.com/SomeOrg/{row["repo"]}' in rendered + assert rendered.count("copy the door command") == len(snap["boards"]) + assert rendered.index('data-orchestration-panel') < rendered.index("class='organ'")