Implement quick health snapshot before coding #710

Closed
opened 2026-03-21 13:57:17 +00:00 by perplexity · 1 comment
Collaborator

Description

Add a timmy_healthcheck that produces a very short status line or block:

  • Status of critical CI pipelines
  • Any open P0/P1 issues (or equivalent)
  • Basic flakiness or error-rate summary
  • Optional token-economy "temperature" indicator

Aim for a few seconds to run and a few lines of output, so Timmy can see whether anything is on fire before deeper work.

Acceptance Criteria

  • Healthcheck runs fast and clearly shows major red/green signals
  • Healthcheck can be invoked standalone or as part of Daily Run

From: Timmy Automations Backlog §4.3


Migrated from perplexity/the-matrix#101

## Description Add a `timmy_healthcheck` that produces a very short status line or block: - Status of critical CI pipelines - Any open P0/P1 issues (or equivalent) - Basic flakiness or error-rate summary - Optional token-economy "temperature" indicator Aim for a few seconds to run and a few lines of output, so Timmy can see whether anything is on fire before deeper work. ## Acceptance Criteria - [ ] Healthcheck runs fast and clearly shows major red/green signals - [ ] Healthcheck can be invoked standalone or as part of Daily Run _From: Timmy Automations Backlog §4.3_ --- _Migrated from perplexity/the-matrix#101_
kimi was assigned by Timmy 2026-03-21 18:02:13 +00:00
kimi added this to the Daily Run v1 milestone 2026-03-21 20:23:40 +00:00
Collaborator

PR created: #828

Implementation Summary

Implemented timmy_healthcheck that produces a quick health snapshot before coding.

Usage

Standalone:

# Human-readable output
python3 timmy_automations/daily_run/health_snapshot.py

# JSON output
python3 timmy_automations/daily_run/health_snapshot.py --json

# Quick status only
python3 timmy_automations/daily_run/health_snapshot.py --quiet

Via Timmy CLI:

timmy healthcheck
timmy healthcheck --json
timmy healthcheck --verbose

API:

curl http://localhost:8000/health/snapshot

Health Signals

  1. CI Status - Checks recent commit CI status via Gitea API (pass/fail/unknown)
  2. Critical Issues - Counts open P0/P1 issues
  3. Flakiness - Calculates failure rate from cycle retrospective data
  4. Token Economy - Shows mint/burn temperature

Overall Status

  • 🟢 Green: All systems healthy
  • 🟡 Yellow: Non-critical issues present (P1, degraded flakiness, unknown CI)
  • 🔴 Red: Critical issues (CI fail, P0 issues, critical flakiness)

Tests

  • 2793 unit tests pass
  • Added comprehensive test coverage for health snapshot module
  • Added smoke tests for /health/snapshot endpoint

Ready for review!

PR created: #828 ## Implementation Summary Implemented `timmy_healthcheck` that produces a quick health snapshot before coding. ### Usage **Standalone:** ```bash # Human-readable output python3 timmy_automations/daily_run/health_snapshot.py # JSON output python3 timmy_automations/daily_run/health_snapshot.py --json # Quick status only python3 timmy_automations/daily_run/health_snapshot.py --quiet ``` **Via Timmy CLI:** ```bash timmy healthcheck timmy healthcheck --json timmy healthcheck --verbose ``` **API:** ```bash curl http://localhost:8000/health/snapshot ``` ### Health Signals 1. **CI Status** - Checks recent commit CI status via Gitea API (pass/fail/unknown) 2. **Critical Issues** - Counts open P0/P1 issues 3. **Flakiness** - Calculates failure rate from cycle retrospective data 4. **Token Economy** - Shows mint/burn temperature ### Overall Status - 🟢 Green: All systems healthy - 🟡 Yellow: Non-critical issues present (P1, degraded flakiness, unknown CI) - 🔴 Red: Critical issues (CI fail, P0 issues, critical flakiness) ### Tests - 2793 unit tests pass - Added comprehensive test coverage for health snapshot module - Added smoke tests for `/health/snapshot` endpoint Ready for review!
kimi closed this issue 2026-03-21 21:53:41 +00:00
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#710