docs: recommend Git LFS for team-shared graph artifact - #1697
Open
angusgastle wants to merge 1 commit into
Open
Conversation
|
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. |
angusgastle
force-pushed
the
docs/team-artifact-lfs-guidance
branch
from
August 18, 2026 00:04
3a29026 to
9abcf4f
Compare
Signed-off-by: Angus Gastle <angusgastle@gmail.com>
angusgastle
force-pushed
the
docs/team-artifact-lfs-guidance
branch
from
August 18, 2026 01:20
9abcf4f to
5dc36a9
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.
Summary
Adds guidance to the Team-Shared Graph Artifact section recommending Git LFS for the
.codebase-memory/graph.db.zstartifact in team-shared repos.The problem we hit
The existing guidance told teams to commit
graph.db.zstas a regular file withmerge=ours. That works for merge conflicts but ignores the bigger issue: the artifact is a ~20MB binary that regenerates on every re-index, and committing it plainly stores a full new blob each time.We discovered this on a real monorepo (internal HR/finance app, ~2047 files). Within a normal week of indexing:
graph.db.zstblob was committed hundreds of times across history.mainalone carried 352 commits with the raw ~20MB blob (~6 GB).We reclaimed the space with a
git-filter-repohistory rewrite that converted the artifact to a Git LFS pointer across all history. After the rewrite, a fresh clone dropped from ~6 GB to ~534 MB — roughly a 10× reduction — andmain's.gitwent from 5.9 GB to under 1 GB.The fix
The artifact still regenerates, but with LFS the binary is stored out-of-band rather than as a new blob per commit. The
.gitattributestracking line:The
merge=oursconflict-avoidance the original guidance emphasized is preserved by LFS's ownmerge=lfshandler.What this PR changes
git-filter-repofirst (themerge=ours→ LFS switch on its own only affects future commits).Notes
merge=oursline on first export. A follow-up could auto-emit the LFS line (or detect an existing LFS setup), but that's a code change left for a separate PR.🤖 Generated with Claude Code