improvement(knowledge): count an unproven reach, read memos under the search deadline, and drop the dead search paths - #8101
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
… search deadline, and drop the dead search paths Correctness - A resolved scope's reach was assumed broad whenever the bases were small enough for the probe limit, without a probe having saturated; the shortcut now applies only to a saturated probe, and an unproven reach is counted - The reach denominator and the source-index catalog were read outside the search's deadline on a memo miss; both run under the leg's budget now - A page whose identity read recovered fewer rows than its slice ended the candidate stream early; short is judged by what the pool gave, not by what the read returned Round trips - The keyword leg re-read every base's kind per search to decide the Tin engine; the search carries whether its bases are search indexes, and the flag and index readiness are read together - The v1 route re-read each result's document for its name and URL, which the rows already carry from hydration; the read, its helper and the retrieval result's read-access field are gone - Input provenance is prepared alongside the other pre-model reads; result provenance is imported per document in parallel; projection fill and the source-index memo are read together - A reordered leg sorts once at the end instead of re-sorting the result map after every page Dead code - `getQueryStrategy` fields nothing read, a never-emitted authorization stage, a one-valued candidate-storage diagnostic, the unused live-source `current` getter, the unread usage-admission policy field, the detached enqueue path the script never took, and a tautological Tin guard
4eda899 to
91a04d4
Compare
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
…ded, and read the Tin flag before the index
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
getQueryStrategyfields, a never-emitted authorization stage, a one-valued diagnostic, the unused live-sourcecurrentgetter, the unread usage-admission policy field, the detached backfill enqueue path the script never took, and a tautological Tin guardType of Change
Testing
vitestoverlib/knowledge,app/api/knowledge,app/api/v1/knowledge,app/api/v2/knowledge,lib/copilot/tools/server/knowledge,lib/billing,scripts: 297 files, 4513 tests passingbun run lint,bun run check:audits(47 audits),docs-manifest:check, block-registry audit, nativetsc --noEmitall passChecklist