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
31 changes: 30 additions & 1 deletion scripts/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,36 @@
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.'
CHECKIN_PROMPT = (
"Use this chat as an ongoing place to understand and improve configuration across "
"PyAutoLabs. Read PyAutoNerves/AGENTS.md and the current Nerves board, then inspect the "
"relevant source repositories and configuration evidence. Check scan freshness and "
"coverage, keeping unavailable sources explicit.\n\n"
"When I give no particular direction, review configuration sources, workspace overrides, "
"YAML parse errors, orphan keys, possibly unused options, environment variables and "
"documentation gaps. Summarize the findings that need attention and recommend priorities "
"with reasons.\n\n"
"When I name an option, file, workspace or question, make that the main focus. Help me "
"find a setting, explain its purpose and default, trace where it is read, understand "
"override precedence or establish which value applies in a particular context. Bring in "
"related configuration where relevant; do not repeat the full board review on every "
"follow-up.\n\n"
"Ground explanations in configuration definitions and the code that consumes them. "
"Distinguish what static scanning suggests from behavior verified at runtime. Treat "
"possibly unused keys as investigation leads, and check compatibility and downstream use "
"before proposing removal or renaming.\n\n"
"Help me plan configuration changes, improve option documentation, resolve inconsistent "
"defaults or investigate serialization and version-handshake problems. Identify affected "
"libraries and workspaces, explain migration needs and define how the resulting behavior "
"should be verified.\n\n"
"Route accepted changes through the development workflow, checking existing tasks and "
"claims first. Carry clearly authorized work through its procedure, retaining approvals "
"already given in this conversation. Preserve downstream API validation and applicable "
"approval requirements.\n\n"
"After changes, refresh the relevant evidence and report what changed, what was verified "
"and what remains unresolved. Keep this conversation available for subsequent "
"configuration questions and work."
)

BOARD_KEY = "nerves" # this board's entry in the Brain's palette table
SCHEMA_VERSION = 1
Expand Down
3 changes: 2 additions & 1 deletion test_autonerves/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,4 +639,5 @@ def panel(key, title, description, prompt, **kwargs):
assert {link["href"] for link in captured["work_links"]} == {
"https://github.com/SomeOrg/PyAutoNerves", "https://github.com/SomeOrg/LibLow",
"https://github.com/SomeOrg/LibHigh", "https://github.com/SomeOrg/ws_demo"}
assert "not permission to remove" in captured["prompt"]
assert "Treat possibly unused keys as investigation leads" in captured["prompt"]
assert "check compatibility and downstream use before proposing removal or renaming" in captured["prompt"]
Loading