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
24 changes: 3 additions & 21 deletions autohands/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
A phone-readable record of **what the Hands shipped**: the released library
versions (from git tags — the authoritative record; version stamps are
build-tree-only and never committed), their PyPI liveness, the release train's
recent runs, and the nightly driver's outcomes. Every actionable item carries
a one-tap 📋 copy block holding the AI assistant prompt that drives it
(``Use the release skill.``, ``Use the release skill. rehearse``, ``Use the release skill. validate``, ``Use the build skill.``; a
failed train run copies a ``Use the bug skill.`` prompt with its run URL).
recent runs, and the nightly driver's outcomes. The check-in prompt is the
entry point for release work; a failed train run retains its targeted bug prompt.

**Boundary.** Hands is a pure executor, so this board is a *past-tense record
of execution* — never a verdict, a score, or a gate. "Is it safe to release?"
Expand Down Expand Up @@ -99,15 +97,6 @@ def theme():
TRAIN_RUNS_SHOWN = 14
NIGHTLY_RUNS_SHOWN = 10

# The one-tap chips: the skill doors that drive the Hands. Payload is
# what 📋 copies into the clipboard, ready to paste into an AI assistant chat.
ACTION_CHIPS = (
("release", "Use the release skill."),
("rehearse", "Use the release skill. rehearse"),
("validate", "Use the release skill. validate"),
("build", "Use the build skill."),
)

CHECKIN_PROMPT = (
"Use the release skill and treat this chat as an ongoing place to manage {owner} "
"release work. Read PyAutoHands/AGENTS.md and inspect current release-train, nightly, "
Expand Down Expand Up @@ -496,10 +485,6 @@ def _render_html(snapshot: dict) -> str:
latest = _latest(snapshot)
head = (f"{_html.escape(latest['version'])}" if latest else "unavailable")
head_age = _age(latest.get("date")) if latest else ""
chips = " ".join(
f"<span class='chip'>{_html.escape(label)} {_copy_btn(payload, f'copy {payload}')}</span>"
for label, payload in ACTION_CHIPS
)
lib_rows = []
for l in snapshot.get("libraries") or []:
cls = _PYPI_CLS.get(str(l.get("pypi")), "unobs")
Expand Down Expand Up @@ -546,7 +531,6 @@ def _render_html(snapshot: dict) -> str:
items = "".join(f"<li>{_html.escape(e)}</li>" for e in snapshot["errors"])
errors = (f"<div class='errors'><p class='meta'>unavailable this "
f"render:</p><ul class='meta'>{items}</ul></div>")
heart = _heart_board_url(snapshot)
hero = t_.hero(BOARD_KEY, "Dashboard", _LEDE, navigation=[
{"href": "#libraries", "label": "Libraries",
"count": len(snapshot["libraries"]) if snapshot.get("libraries") is not None and not snapshot.get("errors") else None},
Expand Down Expand Up @@ -575,9 +559,7 @@ def _render_html(snapshot: dict) -> str:
{hero}
{panel}
<p class="verdict"><b>{head}</b><span class="muted">{head_age}</span></p>
<p class="muted"><a href="{heart}">Heart</a> ·
<a href="dashboard.md">markdown version</a></p>
<p>{chips}</p>
<p><a href="dashboard.md">markdown version</a></p>
<h2 id="libraries">Libraries</h2>
<table class="recent">{''.join(lib_rows)}</table>
<h2 id="release-train">Release train</h2>
Expand Down
8 changes: 3 additions & 5 deletions tests/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ def test_failed_train_run_carries_a_bug_prompt():
assert "data-cmd=" in html # the shared copy handler's payload hook
assert "Use the bug skill. Release train: SomeHands release.yml run failed on 2026-06-01" in html
assert "https://ci.invalid/runs/1" in html
# the action chips are present too
for _, payload in board.ACTION_CHIPS:
assert payload in html
assert "orchestration-hands-prompt" in html
assert "<span class='chip'>release" not in html


def test_degraded_sections_say_unavailable_never_fabricate():
Expand Down Expand Up @@ -327,8 +326,7 @@ def test_orchestration_panel_uses_executor_remote_and_preserves_actions():
assert page.index('class="board-nav"') > page.index('id="orchestration-hands"')
assert page.index('id="orchestration-hands"') < page.index('<p class="verdict">')
assert board.theme().prompt_heading("hands", heading_id="orchestration-hands-heading") in page
for _, payload in board.ACTION_CHIPS:
assert html_module.escape(payload, quote=True) in page
assert "<span class='chip'>" not in page
assert html_module.escape(board._bug_prompt(SNAP, SNAP["train"][1]), quote=True) in page


Expand Down
Loading