feat(storage): Phase 6 adapter foundation for Postgres and Azure Blob - #184
Draft
Yuge Zhang (ultmaster) wants to merge 6 commits into
Draft
Yuge Zhang (ultmaster) wants to merge 6 commits into
Yuge Zhang (ultmaster) wants to merge 6 commits into
Conversation
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the Phase 6 storage foundation: shared SQLite/Postgres codecs, validation, identity allocation, and Task/Run rules; native Postgres structured repositories; Azure Blob storage; and async agent extension-document helpers. Each SQL backend retains its own migrations, queries, and transactions.
This is 1 of 2 stacked PRs. The application continues to select its existing Disk/SQLite profiles. The second PR, #185, migrates Agenetes persistence, enables all six backend pairings, and adds conversation/product coverage. Review and merge this foundation first; then retarget/rebase #185 onto
mainbefore merging it.Includes its own
pnpm test:storage-backendscommand and CI step using disposable PostgreSQL and Azurite containers. Coverage includes real transaction rollback, CAS across independent connections, Workspace isolation, restart, staged-upload failure, and same-key upload serialization. Azure uploads publish only after successful block commit.Validation of this foundation independently:
pnpm run typecheckpassed.pnpm -r --if-present --no-bail run testpassed, including 1,401 server tests.pnpm test:storage-backends: 121 checks passed.The upper PR uses an identical mirror of this head branch in
microsoft/Huabuas its base so its diff contains only activation work. Both PR heads remain on the fork. Azure validation uses Azurite; multi-Server coordination and live-account validation remain outside this change.