Repository navigation
Code enrichment reads candidate limits from settings - #1503
Merged
Merged
Conversation
The unit gate rejects module-level candidate bounds. Validate both limits in the settings catalog before using them in edge queries. Signed-off-by: Lareb Zafar <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
7 of 9 tasks
The feature inventory requires coverage for both enrichment settings. The read and edit-context batch caps belong to the published request schema. Signed-off-by: Lareb Zafar <[email protected]>
Usage example coverage reads at most 50 paths. Bounding indirect candidates at 30 callers keeps synchronous source-window ranking within its existing workload. Signed-off-by: Lareb Zafar <[email protected]>
This was referenced Nov 26, 2026
The range count and range text length belong to the published request schema. Keep the current caller-ranking cases in the candidate-limit test. Signed-off-by: Lareb Zafar <[email protected]>
This was referenced Nov 26, 2026
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.
Related: #1499
Related: #1516
Changelog category
Why
The tunable-constant gate rejects two candidate limits and three fixed request caps on main. Candidate reads belong in the settings catalog. The three caps come from the published request schema. Failed main unit job
Scope and risk
code_enrich_example_candidate_limitaccepts 1–50 call sites and defaults to 50.code_enrich_indirect_test_caller_limitaccepts 1–30 callers and defaults to 30. The edge query reads up to 60 indirect sites. These ranges fit the coverage lookup and preserve the work bounds. The request schema permits 32 read ranges, 1,024 characters per range string, and eight edit-context names.Compatibility, rollout and rollback
The wire schema and default query limits stay the same. Both settings are optional and apply at startup. Reverting restores the fixed query limits. Earlier builds warn about either key in the settings file.
Tests
pytest -q tests/unit/test_tunable_constants.py::test_no_new_tunable_constantfails on main with the five constants and passes with the repair.make format-check lint typecheckpasses. The focused unit suite passes 574 tests, including the limit and settings inventory tests.pytest -q tests/integration/test_code_plane.pypasses all 46 tests against private ClickHouse.AI assistance in the code
AI-generated. Codex reproduced the failure, wrote the repair and ran the local checks.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist