[claude] Integrate health snapshot into Daily Run pre-flight (#923) #1280
Reference in New Issue
Block a user
Delete Branch "claude/issue-923"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #923
What
Before the orchestrator builds the agenda and burns any cycles, it now runs the Quick Health Snapshot (#710) to check CI, open P0/P1 issues, test flakiness, and token economy. If the overall status is red the Daily Run aborts with a non-zero exit code so the loop does not waste cycles when mandatory systems are down.
Changes
timmy_automations/daily_run/orchestrator.pyhealth_snapshot.{generate_snapshot, get_token, load_config}at module levelrun_health_snapshot(args)function: prints pre-flight block, returns 0 (proceed) or 1 (abort)main()callsrun_health_snapshot()before touching Gitea or generating the agenda--skip-health-check— bypass the snapshot entirely--force— continue even when health is redtests/timmy_automations/test_orchestrator.py(new)13 unit tests covering:
--forceoverrides the abort--skip-health-checkbypasses the snapshotTests