fix(zara-discord): make installer updates transactional #217

Open
nsaspy wants to merge 0 commits from plugin-d/508-discord-transactional-install into main
Owner

Slice

Implements the dependency-satisfied Plugin D slice frozen in #508.

  • tests first for failed library publication and failed wrapper publication
  • preserve the last known-good lib + wrapper pair on either failure
  • keep settings.json and token untouched
  • stage on the destination filesystems and publish with os.replace
  • clean bounded staging/backup artifacts on rollback
  • no plugin execution during validation/install

TDD

RED: f0ae681 adds rollback regressions against the old non-transactional installer.
GREEN: 8dc7297 adds same-filesystem staged publication and rollback.

Security / compatibility

No principal/capability behavior changes. Core guest isolation remains tracked by lost-rob0t/zara#251; canonical unavailable lifecycle state remains tracked by lost-rob0t/zara#658. Registry/source metadata remains zara-discord 0.3.0 / Plugin API v1.

Closes no Core issue. Mailbox: #508.

## Slice Implements the dependency-satisfied Plugin D slice frozen in #508. - tests first for failed library publication and failed wrapper publication - preserve the last known-good `lib` + wrapper pair on either failure - keep `settings.json` and `token` untouched - stage on the destination filesystems and publish with `os.replace` - clean bounded staging/backup artifacts on rollback - no plugin execution during validation/install ## TDD RED: `f0ae681` adds rollback regressions against the old non-transactional installer. GREEN: `8dc7297` adds same-filesystem staged publication and rollback. ## Security / compatibility No principal/capability behavior changes. Core guest isolation remains tracked by lost-rob0t/zara#251; canonical unavailable lifecycle state remains tracked by lost-rob0t/zara#658. Registry/source metadata remains zara-discord 0.3.0 / Plugin API v1. Closes no Core issue. Mailbox: #508.
Some checks failed
CI / test (pull_request) Failing after 14s
CI / zara-avatar idle CPU budget (pull_request) Failing after 15m4s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin plugin-d/508-discord-transactional-install:plugin-d/508-discord-transactional-install
git switch plugin-d/508-discord-transactional-install

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff plugin-d/508-discord-transactional-install
git switch plugin-d/508-discord-transactional-install
git rebase main
git switch main
git merge --ff-only plugin-d/508-discord-transactional-install
git switch plugin-d/508-discord-transactional-install
git rebase main
git switch main
git merge --no-ff plugin-d/508-discord-transactional-install
git switch main
git merge --squash plugin-d/508-discord-transactional-install
git switch main
git merge --ff-only plugin-d/508-discord-transactional-install
git switch main
git merge plugin-d/508-discord-transactional-install
git push origin main
Sign in to join this conversation.
No description provided.