feat(harness): session data model on sqlite#8
Merged
Conversation
Add session data model with tree like structure and query model.
…ntity (#12) * feat(aikit)!: preserve complete tool calls across execution events * feat(harness): session input db table for durable input prompt queue. * wip: tweaks to the data model * feat(harness): pluggable sandbox IO boundary for filesystem and shell Establish SandboxFileSystem.Service and Shell as the single runtime IO contract, so local, in-memory, SQLite-backed, Vercel, and Daytona sandboxes are interchangeable behind the same service tags. * feat(harness): durable sandbox instance identity and schema Add the Sandbox instance model and its table, and repoint Project and Session at it. Schema and identity only — no controller, no drivers, no lifecycle. * fix(harness): scope sandbox insert conflicts and add collectable predicate
It has no consumer and cannot have one yet: there is no garbage collector, and Session has no delete/archive, so every sandbox that has hosted a session is permanently rooted and the query returns nothing useful. Keeping it now is speculative — it belongs with the collector that will define its exact contract, alongside session lifecycle.
… seed Migrations are DDL only; SandboxStore.ensure upserts the local row from its canonical definition, and withFixtures composes it where Project and Session build their database. A seeded row could never heal — the migrator skips by high-water mark — and a reconstructible namespace's row is a cache anyway.
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.
Add session data model with tree like structure and query model.