Skip to content

fix(database): require explicit corrupted database recovery#563

Merged
piorpua merged 2 commits into
mainfrom
aionissue/fix-2.1.25-130567853-005
Jul 2, 2026
Merged

fix(database): require explicit corrupted database recovery#563
piorpua merged 2 commits into
mainfrom
aionissue/fix-2.1.25-130567853-005

Conversation

@piorpua

@piorpua piorpua commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Gate corruption-like database recovery behind the explicit --recover-corrupted-database startup flag.
  • Return a database.recoverable_corruption bootstrap stage when migration-time SQLite corruption is detected without authorization.
  • Thread the recovery option through CLI, config, bootstrap, and database initialization, with lifecycle coverage for authorized and unauthorized recovery paths.

Test Plan

  • just push -u origin aionissue/fix-2.1.25-130567853-005
  • cargo fmt --all -- --check
  • cargo clippy --workspace -- -D warnings
  • cargo nextest run --workspace

Notes

  • No database migration files were changed.
  • The existing backup-and-retry path is only used after explicit recovery authorization.
  • Manual end-to-end validation should use a controlled database that fails during migration with a corruption-like SQLite error.

zynx added 2 commits July 1, 2026 21:34
Add explicit startup recovery authorization for corruption-like database failures. Surface migration-stage corruption as a recoverable bootstrap stage until AionUi restarts AionCore with --recover-corrupted-database.
@piorpua piorpua merged commit 203bd1b into main Jul 2, 2026
6 checks passed
@piorpua piorpua deleted the aionissue/fix-2.1.25-130567853-005 branch July 2, 2026 09:58
piorpua pushed a commit that referenced this pull request Jul 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.41](v0.1.40...v0.1.41)
(2026-07-02)


### Bug Fixes

* **assistant:** normalize avatar storage and identity
([#558](#558))
([155c278](155c278))
* **conversation:** derive assistant runtime type from metadata
([#555](#555))
([236217d](236217d))
* **conversation:** partition temp workspaces and logs by date
([#560](#560))
([9bb1f33](9bb1f33))
* **cron:** apply custom assistant rules in scheduled runs
([#495](#495))
([3840b77](3840b77))
* **cron:** lock team cron execution mode
([#562](#562))
([56f3873](56f3873))
* **cron:** route skill scheduling through helper
([#553](#553))
([c57970f](c57970f))
* **database:** require explicit corrupted database recovery
([#563](#563))
([203bd1b](203bd1b))
* resolve ACP backends from metadata
([#559](#559))
([6c15bb7](6c15bb7))
* **runtime:** harden managed Node command resolution
([#565](#565))
([e69b83a](e69b83a))
* **runtime:** protect active ACP tasks from idle cleanup
([#561](#561))
([1fa7a54](1fa7a54))
* **skill:** raise import size limits
([#564](#564))
([50d9aff](50d9aff))
* **skills:** correct AionUi Butler skill drift against current backend
([#557](#557))
([41c2c94](41c2c94))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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