Skip to content

Delete the pre-upgrade dump once the upgrade succeeds - #6

Merged
MasterYoav merged 1 commit into
masterfrom
dump-after-success
Sep 18, 2026
Merged

MasterYoav merged 1 commit into
masterfrom
dump-after-success

Conversation

@MasterYoav

Copy link
Copy Markdown
Owner

The dump exists so a rollback can undo a migration the old image cannot read. After a successful upgrade nothing reads it — there is no roll back to a previous engine from there — so it stayed in Application Support: a plain-SQL copy of the person's conversations and agents, until the next upgrade happened to overwrite it.

  • Test first; it fails against the old behaviour (the fake writes a dump, so its absence is a removal rather than a no-op).
  • One removeDump() used by both the success path and uninstall, rather than the same two lines twice.
  • docs/11 records the third judgement call alongside the other two.

Verified: swift build --build-tests && swift test green.

🤖 Generated with Claude Code

Nothing reads the dump once the new image is up — there is no rollback
after a success — so it sat in Application Support until the next upgrade
overwrote it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@MasterYoav
MasterYoav merged commit c342fae into master Sep 18, 2026
3 checks passed
@MasterYoav
MasterYoav deleted the dump-after-success branch September 18, 2026 07:24
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