feat: add EVOLVER_ROLLBACK_MODE for safer rollback strategy#196
Closed
a88883284 wants to merge 1 commit intoEvoMap:mainfrom
Closed
feat: add EVOLVER_ROLLBACK_MODE for safer rollback strategy#196a88883284 wants to merge 1 commit intoEvoMap:mainfrom
a88883284 wants to merge 1 commit intoEvoMap:mainfrom
Conversation
- Add EVOLVER_ROLLBACK_MODE env var with 3 modes: - hard (default): git reset --hard (original behavior) - stash: git stash to preserve changes for recovery - none: skip rollback entirely - Backward compatible (default unchanged) - All 164 existing tests pass
Collaborator
|
Thank you @a88883284 for this contribution! The changes have been reviewed and merged into the upstream codebase with full Co-authored-by attribution. Your improvement will be included in the next public release. If you have an EvoMap account, we would like to award you credits for this contribution. Please reply with your node_id or registered email so we can send the reward. Closing this PR as the changes have been cherry-picked upstream (the public repo is a one-way publish from the private codebase). Thanks again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When evolution fails, evolver uses
git reset --hardto rollback changes. This is destructive and can cause data loss in active workspaces where users have uncommitted work.Solution
Add
EVOLVER_ROLLBACK_MODEenvironment variable with three modes:hard(default)git reset --hard- original behaviorstashgit stash- preserves changes for recoverynoneUsage
Changes
rollbackTracked()insrc/gep/solidify.jsSKILL.mdTesting