Repository navigation
perf(search): simplify retrieval queries and lifecycle checks - #2095
Conversation
Let indexes own startup validation and declare supported search families. Share Experience/Skill candidate reads and materialize exact results without rereading bodies; require complete Topic results in the retrieval snapshot.
Record completed refreshes in the existing lexical version table. Reuse stored text and native indexes on warm startup, and retain explicit projection repair. Keep inactive Skill heads indexed so reactivation remains searchable after a restart.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Please resolve the merge conflict with the latest |
Keep the upstream Kimi installation test normalization; both branches already contain the same installed Scope helper fix.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Require SQLite 3.35.0 for materialized retrieval CTEs before creating the engine or accepting writes. Report the linked library version, preserve existing storage on rejection, and document the backend minimum.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Which issue or RFC does this PR close?
Related: RFC 1417 — Topic Memory.
Rationale for this change
Reduce retrieval scans and duplicate reads while preserving Scope, exact revision, authority, and lineage semantics.
What changes are included in this PR?
Are there any user-facing changes?
No HTTP schema or migration-file changes. SQLite Atomic uses a derived vec0 helper; incompatible Atomic vectors require repair before startup. Experience/Skill text refreshes on version changes or explicit repair. Internal adapters now declare index capabilities and return ranked rows; public Topic callbacks must return complete exact Artifacts.
How was this change tested?
make checkandmake harness-checkpassed.6c9fec89: 500 Artifacts per Family, 20 samples/case. Experience/Skill search SQL: 5→4 at K=10/100, 7→5 at K=200; complete responses unchanged.The chart shows the master-baseline retrieval matrix; it is not a current-head full-matrix rerun. The checks above cover the additional interface and startup changes.
AI usage statement
Codex assisted implementation and testing; GPT-6 Astra (xhigh) assisted design review.