.forge/skills/resolve-conflicts/references/sample-plan.md
This file provides a complete example of a merge resolution plan for a typical conflict scenario.
Cargo.lockConflict Type: generated Strategy: Regenerate from Cargo.toml after merge Rationale: Lock files should never be manually merged; regeneration ensures all dependencies are correctly resolved Risk: Low - Standard procedure for lock files Action Items:
cargo update to regeneratesrc/utils/helpers.rs (deleted in incoming, modified in current)Conflict Type: deleted-modified Strategy: Backup modifications and apply to new location if applicable Rationale: File may have been moved/renamed; need to preserve modifications Risk: Medium - Requires analysis of where changes should go Action Items:
src/lib.rsConflict Type: imports Strategy: Merge all unique imports from both branches Rationale: Both branches likely added new dependencies; combining ensures all code works Risk: Low - Standard import merge pattern Action Items:
tests/integration_test.rsConflict Type: tests Strategy: Include all test cases from both branches Rationale: Both branches added new test coverage; all tests should be preserved Risk: Low - Tests are additive Action Items:
src/config.rsConflict Type: code logic Strategy: Need user input - both branches modify validation logic differently Rationale: Cannot determine correct business logic from code alone Risk: High - Affects core validation behavior Action Items:
cargo checkcargo test