Skip to content

feat(providers): add compensation to net, archive, git providers (Phase 4) - #144

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

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

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • Add compensation to 3 remaining providers (1 compensable action each)
  • net.Download: captures file path in UndoState when writing to disk; CompensateDownload removes the file. In-memory downloads produce nil state (not compensable)
  • archive.Extract: returns created file list in state; CompensateExtract removes created files in reverse order, then cleans empty directories
  • git.Clone: returns cloned path in state; CompensateClone does os.RemoveAll(path). Checkout/Pull unchanged (non-compensable)
  • 9 round-trip tests across 3 providers

Test plan

  • go test ./internal/execution/provider/net/... — 3/3 pass
  • go test ./internal/execution/provider/archive/... — 3/3 pass
  • go test ./internal/execution/provider/git/... — 3/3 pass
  • go build ./... — clean
  • CI quality-gate passes

@David-Noble-at-work
David-Noble-at-work merged commit 09a91ee into develop Feb 17, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the feat/remaining-compensation branch February 17, 2026 08:06
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