Skip to content

feat: add failure context logging to persist learnings after rollback#21

Merged
ryanbonial merged 1 commit into
mainfrom
feature/029-persist-failure-context-to
Jan 28, 2026
Merged

feat: add failure context logging to persist learnings after rollback#21
ryanbonial merged 1 commit into
mainfrom
feature/029-persist-failure-context-to

Conversation

@ryanbonial
Copy link
Copy Markdown
Owner

Feature 029 implementation:

  • Created log_failure_context() function to capture failure details after rollback
  • Function extracts feature info, identifies failed quality gates, and captures error messages
  • Integrated into both run_single_iteration and run_continuous_loop
  • Updated AGENT_PROMPT.md to guide agents to check ROLLBACK entries
  • Added 20 comprehensive tests in tests/ralph-failure-learning.bats

When ROLLBACK_ON_FAILURE triggers, failure context (which gates failed, error messages) is now preserved to progress.txt so next iteration can learn from mistakes instead of repeating them.

Feature 029 implementation:
- Created log_failure_context() function to capture failure details after rollback
- Function extracts feature info, identifies failed quality gates, and captures error messages
- Integrated into both run_single_iteration and run_continuous_loop
- Updated AGENT_PROMPT.md to guide agents to check ROLLBACK entries
- Added 20 comprehensive tests in tests/ralph-failure-learning.bats

When ROLLBACK_ON_FAILURE triggers, failure context (which gates failed, error messages) is now preserved to progress.txt so next iteration can learn from mistakes instead of repeating them.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ryanbonial ryanbonial merged commit 195874d into main Jan 28, 2026
1 check passed
@ryanbonial ryanbonial deleted the feature/029-persist-failure-context-to branch January 28, 2026 22:20
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