The Brain board reads the Heart's test-performance surface - #261
Merged
Conversation
The Heart board's board.json is gaining an additive `performance` block — per-gate timings, kill-timer/hang events and the no_run census, each actionable row carrying its own one-tap prompt. The Brain board is its morning-headline consumer. One HTTP read now serves both consumers: fetch_heart_board() fetches the Heart's machine surface (owning the degraded row), extract_heart_blockers() and extract_heart_performance() are pure extractors over it, and the old fetch_heart_blockers() stays as the fetch-and-extract door with its behaviour unchanged. The new ⏱ Test performance section sits directly after readiness in both renders: the worst few flagged rows — hang events first, then slowed gates, then SLOW no_run markers nobody ever measured — each chipped with the Heart's OWN prompt, verbatim, never re-derived. Nothing flagged renders one quiet row linking the full timings; an older Heart publish with no block renders no section at all (silence, not a degraded row). Timing rows stay advisory — the precedent is the import_time leg — but a run that hung is a morning fact, so events join the attention tier and never the blocking one. The producer is a sibling organ being built in parallel, so the block is read defensively throughout: every access a .get with a default, every oddly-typed field costing a row rather than the page. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EoDPz2LevKeBaDwqFKtZrU
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.
Consumer half of PyAutoLabs/PyAutoHeart#163 (design record:
PyAutoMind/docs/pyautoheart/test_performance_board_assessment.md). Merges cleanly before or after the Heart PR — the section renders only once the Heart publishes the block.board.jsonread now serves both consumers:fetch_heart_board+ pure extractors;fetch_heart_blockerskeeps its name, signature, degraded message and blocker shaping unchanged.extract_heart_performancedistils the publishedperformanceblock into up to 5 flagged rows (hang events → slowed gates → unmeasured SLOW no_run entries), all accessed defensively — an absent block (an older Heart publish) means no section and no degraded row._rowwhose 📋 chip carries the Heart's own prompt verbatim (theheart_blockersrule — never re-derived), with arun ↗link when present; quiet mornings get one✓ N gates timed · nothing flaggedline linking the full Heart board.verdict(): CI hang events count as attention (orange), never blocking.board/AGENTS.mdsection table updated.Tests: 447 passed (+5 new, hermetic file:// fixtures, fake names; all existing board tests unchanged).
🤖 Generated with Claude Code
https://claude.ai/code/session_01EoDPz2LevKeBaDwqFKtZrU
Generated by Claude Code