Repository navigation
feat(sources): per-source chunk budget (SourceConnector.maxChunks) - #18
Merged
Merged
Conversation
ingest() capped every source at MAX_CHUNKS_PER_SOURCE (10,000) with no override. Symbol docs carry one chunk per symbol, so the Lionidas repo (16.5k chunks) silently lost its later top-level dirs (shared/, web/, cli/ ...) to the alphabetical walk. The connector can now carry its own budget; RepoSourceConfig.maxChunks passes it through repoConnector. The default is unchanged.
thatswiftdev
force-pushed
the
wt/ingest-chunk-cap
branch
from
October 23, 2026 01:36
bda8e84 to
12910cc
Compare
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.
ingest()caps every source atMAX_CHUNKS_PER_SOURCE(10,000), and nothing could override it. A symbol doc carries one chunk per symbol. The Lionidas repo now produces 16,533 chunks, and the repo walk is alphabetical. Soserver/used up the budget, andshared/, most ofweb/,cli/andscripts/never reached the index. Those docs were listed inskipped, but nothing noticed. Lionidas found this because itsrepoConnector: symbol chunkstest went red.What changes
SourceConnector.maxChunks?: a per-source budget, whichingest()uses in place of the constant.RepoSourceConfig.maxChunks?, passed through byrepoConnector.Verification
tsc --noEmitis clean.vitest: 48 files, 280 passed (277 + 3 new), 5 skipped.test/ingest-chunk-budget.test.ts:ingestignore the connector budget turns 2 tests red, and dropping the repo pass-through turns 1 red.Independent of #17: either can merge first.