Skip to content

Preserve update-time user files and make release preparation idempotent - #83

Merged
Anheledir merged 2 commits into
mainfrom
fix/release-transaction-safety
Nov 30, 2026
Merged

Anheledir merged 2 commits into
mainfrom
fix/release-transaction-safety

Conversation

@Anheledir

@Anheledir Anheledir commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Updates currently copy user files during preparation, so later edits/deletions can be replaced with stale staged copies. Apply now verifies content/access snapshots of both trees before exchanging directories, checks again after the old directory is moved and after startup verification, and rolls back on detected changes. Old plans without snapshots are refused. Retained recovery trees and external-writer limits are documented.

Release preparation now refuses published versions before building, serializes tag/dispatch runs together, reuses complete drafts and resumes missing uploads from the original verified workflow artifacts. It never overwrites release assets or publishes a release. A hidden inventory ties each draft to its originating commit/run/digests; conflicting or ambiguous state is refused.

Validation: 171 .NET tests and 21 Python tests passed locally. Coverage includes between-phase additions/edits/deletions, staged-copy modification, rollback/recovery data, repeated preparation, interrupted upload acknowledgement, published-version refusal, conflicting metadata/assets and workflow serialization. Read-only live preflight refused the published beta.2. Native Windows/Linux/macOS CI, updater-helper acceptance, JSON compatibility and startup checks passed on f1d00d7. Native run: https://github.com/Anheledir/SidePulse.NET/actions/runs/46415178615. The native helper fixtures now use the real preparation API and verify post-Prepare user-file refusal as well as successful replacement and rollback.

The existing extra beta.2 draft was inspected and retained as unpublished evidence because its asset hashes differ from the published release. No public release/tag/assets were changed. Audit: docs/reviews/release-draft-2026-11-30.md.

Closes #54. Closes #57.

@Anheledir
Anheledir merged commit 611c866 into main Nov 30, 2026
17 checks passed
@Anheledir
Anheledir deleted the fix/release-transaction-safety branch November 30, 2026 12:09
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.

Prevent duplicate release drafts for an already published version Preserve user files changed between update Prepare and Apply

1 participant