Merge dev → main: broad ingest coverage + git provenance - #140
Merged
Conversation
chore: back-merge main → dev (v0.7.6 version bumps)
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.
feat(ingest): broad text-file coverage so real projects fully index
#139) When the ingest root is a git working tree, each (re-)ingest now stamps the branch + commit it ran against into the DAG as a signed Custom action, so the graph records which git state it was built from. Reads .git directly (symbolic HEAD via loose ref or packed-refs, detached HEAD, and worktree/submodule gitdir files) — no dependency on the git CLI. Adds service::git_provenance with read_git_ref, record_git_provenance (wired into ingest_path_with_progress; best-effort and a no-op for a non-git vault) and list_git_provenance (the graph's git history, newest first). Covered by five tests: loose ref, packed-refs, detached HEAD, non-git directory, and a record+list round-trip over an in-memory DAG.
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.
Integrates dev into main ahead of the 0.8.0 line: #138 (broad text-file ingest coverage) and #139 (git provenance recorded into the signed DAG). Standard merge commit.