feat(ingest): broad text-file coverage so real projects fully index - #138
Merged
Conversation
The ingest walk allowed only nine extensions (md/markdown/txt/rs/py/ts/ js/toml/json), so most of a real codebase was silently dropped: a project written in Swift, Kotlin, Java, Go, C/C++, Ruby, PHP, etc. indexed as almost nothing. Replace the narrow allowlist with is_ingestable_file: a broad source/docs/config extension set plus well-known extensionless files (Dockerfile, Makefile, README), minus a denylist of generated, minified, and lock files that carry no semantic signal. .gitignore, the UTF-8 read skip for binaries, and byte-bounded chunking remain the safety net, so being inclusive stays memory-bounded. Covered by four new unit tests over is_ingestable_file.
This was referenced Jul 21, 2026
ApiliumDevTeam
added a commit
that referenced
this pull request
Jul 21, 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.
Why
The ingest walk allowed only nine extensions (
md/markdown/txt/rs/py/ts/js/toml/json). Most of a real codebase was silently dropped — a project in Swift, Kotlin, Java, Go, C/C++, Ruby, PHP, etc. indexed as almost nothing. (The symbol layer already supportstsx/jsx/go, but ingest filtered them out too.)What
Replace the narrow allowlist with
is_ingestable_file:*.min.js,*.min.css,*.map,*.lock,*.generated.*,package-lock.json,pnpm-lock.yaml.Safety net unchanged:
.gitignoreprunes build output, the UTF-8 read-skip drops binaries, and byte-bounded chunking keeps large files safe — so being inclusive stays memory-bounded.Tests
4 new unit tests over
is_ingestable_file(broad source/doc extensions; extensionless files; noise skipped; binaries/unknown skipped) + existingservice::ingestsuite (13 total) green. Clippy clean for the changed file.