refactor(storage): add context offload root authority - #4165
Merged
Conversation
Base automatically changed from
refactor/context-offload-bounded-lifecycle
to
main
August 29, 2026 10:48
Generated-by: OpenAI Codex
likun666661
force-pushed
the
refactor/context-offload-root-authority
branch
from
August 29, 2026 10:49
1b04f66 to
b9662fb
Compare
6 tasks
saltand
pushed a commit
to saltand/maka-agent
that referenced
this pull request
Aug 31, 2026
* refactor(storage): add context offload root authority Generated-by: OpenAI Codex * test(storage): cover concurrent context offload opens --------- Co-authored-by: likun <kunli@alva.xyz>
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.
Summary
This is a stacked, storage-only follow-up to #4159. Its base is
refactor/context-offload-bounded-lifecycle; it should be rebased tomainafter #4159 merges.The facade remains internal to
@maka/storagein this slice. It is intentionally not published as a package subpath and not added toStorageWriterCompositionuntil a real reader-first consumer lands, so this PR does not open the database during Host Ready or emit new durable references.Refs #4071
Depends on #4159
Verification
npm --workspace @maka/core run buildnpm --workspace @maka/storage run buildNODE_NO_WARNINGS=1 node --test packages/storage/dist/__tests__/context-offload-store.test.js packages/storage/dist/__tests__/sqlite-context-offload-store.test.js— 20/20 passNODE_NO_WARNINGS=1 node --test --test-reporter=dot "packages/storage/dist/**/*.test.js"— full storage suite passesnpx biome checkon all changed TypeScript filesnpm run check:asf-headersAI use
Tool and scope: OpenAI Codex contributed repository inspection, authority-boundary design, implementation, tests, and PR text. The commit includes the required
Generated-bytrailer.Checklist
Does this PR entail a change in behavior?