Skip to content

fix(health): dashboard scope reads the published board when local Heart has none - #636

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautolabs-health-review-oja0ir
Nov 15, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
claude/pyautolabs-health-review-oja0ir

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

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 (1297 checks / 153 findings). Found in the 2026-11-15 health review (Mind task health-review-cloud-observation).

API Changes

  • agents/conductors/health/dashboard.py gains --published-fallback; health.sh passes it on the Heart-CLI path.
  • Fallback happens 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 (exit 4), never replaced.
  • Dashboard JSON gains source (local | published); the human render prints it.
  • No change to verdicts, exit codes, thresholds or the release scope.

Test Plan

  • 3 new tests in tests/test_health_conductor.py (no-cache → published; no-cache + no published board → unknown; parseable local board without inventory → stays local/unknown)
  • Full suite: 2017 passed, 2 skipped
  • Live in a cloud container: 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 object
  • source key in the dashboard-scope JSON

Generated by the PyAutoLabs agent workflow.


Generated by Claude Code

…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
@Jammy2211
Jammy2211 merged commit 421ef0f into main Nov 15, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/pyautolabs-health-review-oja0ir branch November 15, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants