board: every evidence gap carries the check that closes it - #177
Merged
Conversation
A STALE board offered nothing copyable that closed a gap: every stale reason got the same "/health re-run the stale evidence: <text>" string, and a reason row carried no command on any surface. STALE is the board's steady state, so that is most of what the board is asked to do. Readiness now emits `stale_details` — each stale reason with the gate key that produced it (additive; the flat reason lists, the verdict, the score and the release gate are untouched). The dashboard keys a remedy table off that: a stale row gains `command` (⌨ on html) beside a prompt that names the check AND the gap, and the tier gains `stale_plan` — ONE prompt that walks every current gap, plus the shell chain that does the same when every gap has a command (withheld when one needs a rehearsal, since a chain that skips a gap reads as if it cleared it). `pyauto-heart fix stale` is the terminal door to the same payloads, and `readiness` now points at it. Every remedy re-runs a check; none touches code — a stale row can never emit a /bug prompt. A reason with no key (an older verdict) falls back to the generic nudge rather than a guessed remedy. json goes to schema v3. The README strip stays one line for STALE, as its test asks. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WY6Q2fZquoDQijLD6PXtAT
This was referenced Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A STALE board offered nothing copyable that closed a gap: every stale reason got the same
/health re-run the stale evidence: <text>string, and a reason row carried no command on any surface (commands existed only on section rows). STALE is the board's steady state —STALE · score 65on everyheart-health.ymlrun since 2026-08-19 — so that is most of what the board is asked to do.What changed
heart/readiness.py—computeemitsstale_details: each stale reason with the gate key that produced it (install_unknown,validation_absent, …), index for index withstale_reasons. Additive; the flat reason lists, the verdict, the score, the profiles and the release gate are untouched (tests/test_readiness.pypasses unmodified). Internally thestale.append(...)/hit(...)pairs became oneadd_stale(msg, key)helper, so a gap cannot be filed without its key or its penalty.heart/dashboard.py—STALE_REMEDIESmaps that key to the check that closes the gap. A stale row gainscommand(the shell remedy,Nonewhere the remedy needs a conversation) and a prompt that names both the check and the gap. The tier gainsstale_plan: one prompt walking every current gap, plus the shell chain that does the same — offered only when every gap has a command, since a chain that silently skips one reads as if it cleared it.heart/fix.py+bin/pyauto-heart—pyauto-heart fix stale: the same payloads in a terminal, from the same persisted verdict, so the two surfaces cannot prescribe different things.readinessnow ends a stale block with→ clear them: pyauto-heart fix stale.Per surface: html renders a ⌨ command chip beside the 📋 prompt chip and a "clear them all" line above the gaps; md leads its prompts block with the plan; json carries
blockers[].commandandstale_plan(schema v3, additive).Invariants held
/bugprompt — asserted in the tests./release rehearse) and no command.Deliberately not done
test_md_brief_is_one_line_unless_something_is_wrongpins that on purpose, and a glance surface is the wrong place for a multi-step plan.skew_pypi_unknowncarries a prompt but no command: the deep PyPI leg has nopyauto-heartverb, and inventing one would have been a fake remedy.Testing
pytest tests/ -q→ 615 passed (8 new dashboard tests, 3 new readiness tests). Rendered a synthetic cloud snapshot end to end: it reproduces the liveSTALE · score 65with the three current gaps, andpyauto-heart fix staleprints their commands and the one plan.The Brain-side consumer is PyAutoLabs/PyAutoBrain#(companion branch
claude/pyautoheart-stale-r4swxg); a Brain board reading an older Heart surface renders exactly as before.🤖 Generated with Claude Code
https://claude.ai/code/session_01WY6Q2fZquoDQijLD6PXtAT
Generated by Claude Code