Skip to content

fix(operations): make replacement transfers failure-safe - #25

Merged
l0gicgate merged 1 commit into
mainfrom
fix/7-failure-safe-replacement
Aug 30, 2026
Merged

l0gicgate merged 1 commit into
mainfrom
fix/7-failure-safe-replacement

Conversation

@l0gicgate

Copy link
Copy Markdown
Contributor

Summary

  • track replace/fail-if-exists decisions per transfer item
  • stage local replacements in unique sibling paths and atomically exchange them with destinations
  • preserve existing destinations when staging, cancellation, remote backends, or atomic exchange cannot complete safely
  • replace directories without merging and clean staged files after failures

Testing

  • ./scripts/check.sh
  • injected disk-full and cancellation coverage verifies destination preservation and staging cleanup
  • multi-item conflict coverage verifies late destinations are not overwritten

Closes #7

@l0gicgate
l0gicgate merged commit 814993a into main Aug 30, 2026
4 checks passed
@l0gicgate
l0gicgate deleted the fix/7-failure-safe-replacement branch August 31, 2026 14:10
spandan11106 pushed a commit to spandan11106/strata that referenced this pull request Sep 1, 2026
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.

Make replacement transfers failure-safe instead of deleting destinations first

1 participant