Skip to content

feat(pkg): add compensation to package provider (Phase 3) - #143

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

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

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • Add real compensation to the package provider (3 compensable actions out of 4)
  • Forward methods (Install, Upgrade, Remove) now return map[string]any state for undo
  • CompensateInstall removes only newly installed packages (skips already-installed)
  • CompensateUpgrade is diagnostic no-op (captures previous versions for manual recovery)
  • CompensateRemove reinstalls the removed packages
  • Update unchanged (non-compensable, idempotent index refresh)
  • Test hooks on Provider for mock-based testing without real package managers
  • 10 round-trip tests

Test plan

  • go test ./internal/execution/provider/pkg/... — 10/10 pass
  • go build ./... — clean
  • CI quality-gate passes

@David-Noble-at-work
David-Noble-at-work merged commit 390d3d9 into develop Feb 17, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the feat/pkg-compensation branch February 17, 2026 07:58
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