Commit Graph

3 Commits

Author SHA1 Message Date
kimi
cca979d30b feat: pre-cycle state validation for stale cycle_result.json
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Add validate_cycle_result() to loop_guard.py that runs before each cycle:
1. Age check — removes cycle_result.json if older than 2× CYCLE_DURATION
2. Issue check — removes cycle_result.json if referenced issue is closed
3. Graceful degradation — keeps file when Gitea API is unreachable

Also adds _load_cycle_result() and _is_issue_open() helpers, plus 15 unit
tests covering all validation paths.

Fixes #661

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 23:00:13 -04:00
ff1e43c235 [loop-cycle-545] fix: queue auto-hygiene — filter closed issues on read (#524) (#529)
All checks were successful
Tests / lint (push) Successful in 2s
Tests / test (push) Successful in 1m36s
2026-03-19 20:10:05 -04:00
3cde310c78 fix: idle detection + exponential backoff for dev loop (#435)
All checks were successful
Tests / lint (push) Successful in 4s
Tests / test (push) Successful in 1m7s
Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
2026-03-19 10:36:39 -04:00