Skip to content

feat(file): implement compensation for file provider (Phase 1) - #141

Merged
David-Noble-at-work merged 1 commit into
developfrom
feat/file-compensation
Feb 17, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
feat/file-compensation

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • Add state capture to 7 compensable Forward methods on file.Provider (Link, Copy, Backup, Unlink, Remove, Write, Move)
  • Add 7 Compensate* Backward methods for undo logic
  • Wire action Do to capture state as UndoState, Undo to delegate to Compensate*
  • Non-compensable actions (Source, Mkdir) unchanged
  • 16 round-trip tests verify Forward+Backward per Activity pair

Test plan

  • All 16 new provider tests pass (go test ./internal/execution/provider/file/)
  • All existing execution tests pass (go test ./internal/execution/)
  • Full repo builds clean (go build ./...)
  • No legacy/backward/compat/deprecated patterns

Add state capture to 7 compensable Forward methods and 7 Compensate*
Backward methods on file.Provider. Wire action Do/Undo to delegate to
Provider methods. Non-compensable actions (Source, Mkdir) unchanged.

16 round-trip tests verify Forward+Backward per Activity pair.
@David-Noble-at-work
David-Noble-at-work merged commit 0ad446f into develop Feb 17, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the feat/file-compensation branch February 17, 2026 05:37
David-Noble-at-work pushed a commit that referenced this pull request Feb 17, 2026
Update compensation.md to reflect all 6 phases merged:
- Phase 1 (PR #141): File provider compensation
- Phase 2 (PR #142): Service provider compensation
- Phase 3 (PR #143): Package provider compensation
- Phase 4 (PR #144): Net, Archive, Git provider compensation
- Phase 5 (PR #145 + noblefactor-ops PR #80): Generator template update
- Phase 6 (PR #146): Integration tests
David-Noble-at-work added a commit that referenced this pull request Feb 17, 2026
Update compensation.md to reflect all 6 phases merged:
- Phase 1 (PR #141): File provider compensation
- Phase 2 (PR #142): Service provider compensation
- Phase 3 (PR #143): Package provider compensation
- Phase 4 (PR #144): Net, Archive, Git provider compensation
- Phase 5 (PR #145 + noblefactor-ops PR #80): Generator template update
- Phase 6 (PR #146): Integration tests
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