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
13 changes: 13 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
<!-- repos_sync:filing:end -->

<!-- repos_sync:standards:begin -->
## 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.
<!-- repos_sync:standards:end -->
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 11 additions & 1 deletion scripts/organism_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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 []:
Expand Down Expand Up @@ -256,7 +266,7 @@ def _render_html(snapshot: dict) -> str:
</head>
<body>
{hero}
{t.prompt_heading("scientist")}
{panel}
<p class="verdict {_VERDICT_CLS.get(word, '')}"><b>{_html.escape(route_hint(snapshot))}</b></p>
{''.join(rows)}
<p class="muted mdsrc"><a href="dashboard.md">markdown version</a>{github_link}</p>
Expand Down
13 changes: 13 additions & 0 deletions tests/test_organism_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_html_is_self_contained_with_door_chips():
assert "src=" not in out and "<link" not in out.lower()
assert "fetch(" not in out and "XMLHttpRequest" not in out
stripped = re.sub(r'data-cmd="[^"]*"', "", out)
stripped = re.sub(r"<textarea\b[^>]*>.*?</textarea>", "", 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
Expand All @@ -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'")
Loading