Repository navigation
refactor(ai): extract session lifecycle service - #93
Merged
Merged
Conversation
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.
Outcome
Extract the AI session/history/provider-worker lifecycle from the RVT1 assembly module into a product-owned service while preserving every public RPC, State, Event, row shape, and free BYOK/plugin behavior.
Closes #89.
Boundary and coordination
8fdcc8ca4ecda80573f605aa52fc9c7680b4ad9ee48e8ea9d9c45106000d7560f93d582177e12bcb79a2b705a37a8c428c3d1a184d9f331d66624361(PRODUCT-STANDARD.md,PORTFOLIO.md, andDOCUMENTATION-LANGUAGES.md)a92877c02b6453b1826bfd061d7bbe70647ce5faapp/backend.rkt,app/core/ai-session.rkt,tests/ai-session-test.rkt2026-10-auth-1and the existing free BYOK scope remain untouched.What changed
start, busy rejection,cancel,reset,undo, andcloselifecycle operations.backend.rktto settings/search-row composition plus an adapter to the existingAiStreamState andai-finishedEvent.Evidence
raco test tests/— 133 tests passed on Windows after rebasing ontoe48e8ea.raco test tests/ai-session-test.rkt tests/ai-test.rkt tests/backend-wire-test.rkt— 13 tests passed.raco rivet schema check rivet-schema.json --json—compatible: true,breaking-changes: []; reported binding additions predate this change.raco rivet acceptance --json— contract and embedded-wire suites passed locally. Native build/package/UI were not run successfully because this machine has no Visual Studio C++ Build Tools /lib.exe; CI must supply the real packaged Windows/macOS/Linux evidence. This is recorded as unverified, not passed.Rollback
Revert this single commit. No data format, wire schema, generated client, host, or release file changed.