Skip to content

fix: prevent false success detection when Claude interrupted before real work#19

Merged
ryanbonial merged 1 commit into
mainfrom
bugfix/027-fix-false-success-detection
Jan 28, 2026
Merged

fix: prevent false success detection when Claude interrupted before real work#19
ryanbonial merged 1 commit into
mainfrom
bugfix/027-fix-false-success-detection

Conversation

@ryanbonial
Copy link
Copy Markdown
Owner

Add timestamp-based commit verification to detect only commits made during current iteration. Previously, Ralph would detect old merge commits and report success even when Claude was interrupted immediately without completing any work.

Changes:

  • Add ITERATION_START_TIME variable captured before execute_agent()
  • Get commit timestamp using git log --format=%ct
  • Only report success if commit timestamp > iteration start time
  • Add warning for commits from previous work
  • Apply fix to both run_single_iteration() and run_continuous_loop()
  • Create comprehensive test suite (12 tests) following TDD workflow

…eal work

Add timestamp-based commit verification to detect only commits made during
current iteration. Previously, Ralph would detect old merge commits and
report success even when Claude was interrupted immediately without
completing any work.

Changes:
- Add ITERATION_START_TIME variable captured before execute_agent()
- Get commit timestamp using git log --format=%ct
- Only report success if commit timestamp > iteration start time
- Add warning for commits from previous work
- Apply fix to both run_single_iteration() and run_continuous_loop()
- Create comprehensive test suite (12 tests) following TDD workflow

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ryanbonial ryanbonial merged commit efcb901 into main Jan 28, 2026
1 check passed
@ryanbonial ryanbonial deleted the bugfix/027-fix-false-success-detection branch January 28, 2026 19:55
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.

1 participant