Repository navigation
feat(knowledge): replace Python with native background builds - #1966
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.
Summary
Knowledge compilation and page updates currently require Python. Replace that runtime with native Go and one profile-wide SQLite database, and populate knowledge from saved chats across projects.
Existing history waits for the Build action. Empty profiles show “Knowledge will populate as you chat.” Later saved chats update knowledge automatically. Builds continue while users chat or navigate. Edits and deletion tombstones survive rebuilds.
The native port includes extraction, exact source validation, corrections, reviewed learning, question maintenance, topics, links, proposals, source-window revisits, recall and frozen support-contract replay. The embedded Python compiler and prototype viewer are removed.
Evidence
python3; knowledge is scoped to the selected project.After: live compilation and later-chat population passed with Python unavailable: 3 sources, 2 searchable cited pages. Every recorded model role used OpenRouter
deepseek/deepseek-v4.1-flash.After: tests cover all-project import, first-chat population, progress/navigation, interrupted-job recovery, unreadable-chat isolation, and edits/deletes across rebuilds. The actual application displays the Build action for saved history and the waiting message for an empty profile.
make pr-ready, release build and knowledge race tests passed. Independent Standards and Spec reviews found no remaining correctness blockers.Merge Danger
Door: two-way
This unshipped feature rebuilds from saved chats; existing Python vault files are not migrated. Original chat logs remain the recovery source.
Blast Radius: knowledge
This is a broad compiler/storage rewrite. Hosted remote Knowledge remains unsupported. Search is indexed, unchanged pages avoid reindexing, and model input batches are bounded; publication still materializes and compares the complete page projection. This does not establish unlimited-vault scalability or general semantic accuracy.