Repository navigation
fix(health): dashboard scope reads the published board when local Heart has none - #636
Merged
Merged
Conversation
…rt has none In a cloud session a PyAutoHeart checkout exists but has never ticked, so `vitals.sh dashboard --json` prints "No cache yet" prose. health.sh piped that into dashboard.py, which reported "Heart monitoring inventory is missing" (exit 4) while the published board carried the full inventory. dashboard.py --published-fallback (passed by health.sh) reads the published board only when the local Heart printed no JSON object; a local board that parses but lacks or mangles its inventory is still reported as explicitly unknown. The JSON names the board it read in `source`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8RkwYK9RzapmsQRGCj
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.
Summary
In a cloud session a PyAutoHeart checkout exists but has never ticked, so
vitals.sh dashboard --jsonprints "No cache yet" prose.health.shpiped that intodashboard.py, which reported "Heart monitoring inventory is missing" (exit 4) while the published board carried the full inventory (1297 checks / 153 findings). Found in the 2026-11-15 health review (Mind taskhealth-review-cloud-observation).API Changes
agents/conductors/health/dashboard.pygains--published-fallback;health.shpasses it on the Heart-CLI path.source(local|published); the human render prints it.Test Plan
tests/test_health_conductor.py(no-cache → published; no-cache + no published board → unknown; parseable local board without inventory → stays local/unknown)pyauto-brain health --scope dashboard --json→source: published, red 27, 153 findings, exit 3 (was "inventory missing", exit 4)Full API Changes (for automation & release notes)
Added
dashboard.py --published-fallback— read stdin, fall back to the published Heart board when stdin holds no JSON objectsourcekey in the dashboard-scope JSONGenerated by the PyAutoLabs agent workflow.
Generated by Claude Code