perf(mcp): cap Windows search producer output - #1607
Conversation
Signed-off-by: Ertan <ertan.kucukoglu@gmail.com>
|
Thanks for opening this — it has been seen, and it is queued. This note is automated, but it is not a brush-off: it exists so you know where your PR stands instead of having to guess from silence. Current review status: working through a backlog. What that means for this PR, concretely:
Things that will genuinely speed it up whenever review does happen:
If this fixes a bug, a reproduction we can run is worth more than a description of the symptom. Thanks for contributing, and sorry in advance for the wait. |
|
Could a maintainer please rerun the failed The failure occurred during setup in
The preceding daemon lifecycle and stability sections passed. Several following guards then failed or skipped on daemon/index/UI startup preconditions. This PR only changes the Windows |
|
Maintainer decision on this one, and it goes a different way — but the problem you identified is real and is going to get solved properly. We will not take a producer-side cap. The reason is result completeness. Our C-side cap counts accepted results: at Two further consequences: the same query would return different results on Windows and POSIX, and it re-establishes the producer as the truncation authority, which the comment at In this project a search that quietly returns fewer results than it found is a correctness bug, not a performance tradeoff. So a bound is right — a silent one is not. The direction instead: generic pagination for So this PR will be closed in favour of that work, not because the diagnosis was wrong but because the bound belongs at a different layer. What I would genuinely like, if you are up for it: #1604 is being taken — it is results-preserving by construction and brings Windows to the parity POSIX already has via One request for the cluster generally: several of these PRs re-wrap comments in code they do not otherwise change, including in unrelated tests. It inflates review and creates conflicts between your own sibling PRs — #1604, #1607 and #1608 all rewrite the same Thank you for #1565 and for putting five concrete PRs behind it. The pathological-scan problem is real and it is now on the roadmap with a shape we can support long-term. |
|
Closing in favor of the maintainer's planned cross-platform search_code pagination. Agreed that a producer-side row cap can silently underfill path-filtered results and report an incomplete count as complete. |
What does this PR do?
Caps every Windows PowerShell
search_codeproducer at 500 results usingSelect-Object -First 500.The cap is applied after producer-side filters and uses the same limit as the existing C-side acceptance cap. It does not introduce the previously proposed separate 4096-result limit.
Adds regression coverage for all four generated Windows PowerShell command paths and verifies the cap’s value and placement.
Test results: 7352 passed, 0 failed, 63 skipped.
Part of #1565
Checklist
git commit -s) — required, CI rejectsunsigned commits (DCO, see CONTRIBUTING.md)
make -f Makefile.cbm test)make -f Makefile.cbm lint-ci)