Skip to content

feat: Add automation health dashboard (Story 5, epic #1260) - #7

Merged
rubambiza merged 3 commits into
rossoctl:mainfrom
rubambiza:feat/health-dashboard
Jun 10, 2026
Merged

rubambiza merged 3 commits into
rossoctl:mainfrom
rubambiza:feat/health-dashboard

Conversation

@rubambiza

@rubambiza rubambiza commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add automation-health-dashboard.sh — standalone generator that combines link-health and dep-bump metrics into a single executive-facing markdown dashboard
  • Add standing-orders/health-dashboard.md — daily cron schedule (17:00 UTC / 1pm ET)
  • Update standing-orders/dep-bump.md — add dashboard to schedule coordination table

Dashboard sections

  • Executive Summary: cumulative issues created/resolved, PRs opened, estimated hours saved
  • Link Health: broken links by type, trend table, cumulative impact
  • Dependency Bumps: stale PRs by severity tier, SLA compliance, median TTM, coverage
  • Cross-Program Coverage: which repos are under which programs
  • Cron Health: job schedules and last run timestamps

Known limitations (v1)

Documented in SKILL.md — hardcoded to two programs, static cron table, fixed heuristic. Future iteration will introduce plugin-style program discovery.

Dependencies

  • Depends on kagenti/automation#9 (merge first — promotes gh_with_backoff to program-lib and fixes scanner report quality)

Test plan

  • shellcheck passes (0 warnings)
  • Remote dry-run with real data from both programs (EXIT=0)
  • All five executive summary metrics populated correctly
  • Trend tables show last 10 entries
  • Cross-program coverage computed (15 repos, 7 under both)
  • Graceful degradation when one program's reports missing

Closes rossoctl/rossoctl#1546


Epic: rossoctl/rossoctl#1260

Assisted-By: Claude Opus 4.6 <[email protected]>

Signed-off-by: Gloire Rubambiza <[email protected]>
@rubambiza rubambiza self-assigned this Jun 4, 2026
@rubambiza
rubambiza requested a review from a team June 4, 2026 19:34
Assisted-By: Claude Opus 4.6 <[email protected]>

Signed-off-by: Gloire Rubambiza <[email protected]>

@esnible esnible left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Standalone bash dashboard generator that aggregates link-health and dep-bump report JSON into an executive markdown dashboard, plus two standing-orders docs.

I verified every field the dashboard reads (repos_scanned, broken[], stale_prs[].severity, coverage_gaps[].repo, fixer-latest.json metrics, history stale_security/stale_routine/new/fixed) against the actual producer scripts (link-health-scanner.sh, dep-bump-scanner.sh, dep-bump-fixer.sh, program-lib.sh) — all data-layout assumptions are correct, and the cross-program repo-name join (bare names on both sides) is consistent. Graceful degradation and empty-input edge cases hold up.

Areas reviewed: Shell, Markdown/docs, cross-script data contract
Commits: 2, both signed-off
CI: DCO passing

No must-fix issues — findings below are suggestions/nits. The data-contract correctness (the highest-risk part of an aggregator like this) is solid. Approving.

DRY_RUN=true
ORG="kagenti"
VERBOSE=false
SHOW_HELP=false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion — This sources program-lib.sh but the script uses none of its 14 functions (I checked each). The fork/PR logic is reimplemented inline at lines 459-510 rather than using the library's ensure_fork/create_fork_pr. As written, the source adds a hard startup dependency (set -euo pipefail means a missing/renamed library aborts the script) for no benefit. Either drop the source line, or switch the inline git/PR block over to the library helpers so it's actually used.

(Related: the PR body says #9 must merge first because it "promotes gh_with_backoff to program-lib," but this script never calls gh_with_backoff or any library symbol — worth double-checking whether the #9 ordering dependency really applies here.)

# Step 7: Generate markdown
# =============================================================================

cat > "$TMPDIR/automation-health.md" << DASHBOARD_EOF

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion — The Cron Health section reports ok for all four jobs unconditionally, and the same $LAST_SCAN_DATE for every row even though scanner/fixer run on different days. A health dashboard that can't surface a stale or dead job somewhat undercuts its own purpose — a silently broken scanner would still render as "ok". The Static entries — future version should read from jobs.json comment acknowledges this, so fine as a documented v1 limitation, but consider at least deriving each job's last-run from its own report date, or labeling the column "(static)" so readers don't trust it.

- Dep-bump scanner: Tue/Thu 14:00 UTC (10am ET)
- Dep-bump fixer: Tue/Thu 16:00 UTC (12pm ET)
- Health dashboard: Daily 17:00 UTC (1pm ET)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit — This schedule-coordination list is now duplicated verbatim between dep-bump.md and here. They'll drift over time; consider a single source of truth (or a note pointing one file at the other).

…nation

Assisted-By: Claude Opus 4.6 <[email protected]>

Signed-off-by: Gloire Rubambiza <[email protected]>
@rubambiza

Copy link
Copy Markdown
Contributor Author

Addressed Ed's review feedback:

  1. Unused source program-lib.sh — Dropped in e62f80e. The library's create_fork_pr bundles commit+push+create which does not fit the dashboard's conditional create-or-edit flow, so removing the dependency is cleaner.
  2. Static cron health — Acknowledged as documented v1 limitation. Will read per-job timestamps from each program's report once we have a jobs.json manifest.
  3. Schedule-coordination duplication — Fixed in e62f80e; replaced the duplicate in health-dashboard.md with a cross-reference to dep-bump.md#schedule-coordination.

@rubambiza
rubambiza merged commit a76ffb9 into rossoctl:main Jun 10, 2026
1 check passed
@rubambiza
rubambiza deleted the feat/health-dashboard branch June 10, 2026 15:59
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.

Build unified Automation Health Dashboard

2 participants