Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Index directories explicitly configured through symbolic links, preserving document paths and exclusions. Replacing a directory with a link no longer silently removes its indexed documents.
- Indexing retains files under unavailable source paths while updating accessible sources. Missing optional paths no longer stop indexing. A model or chunker rebuild waits until indexed sources are available.

## [0.18.0] - 2026-11-15

Expand Down
2 changes: 2 additions & 0 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ The recommended solo-local preset stores them under `.agent-memory/`.

### Indexing safety controls

Unavailable sources are logged by path. Indexing retains existing records and chunks under failed paths that are still included in the configuration. Newly excluded paths are pruned even when their source is unavailable. Sources outside the failed paths continue to update. A missing optional file that has never been indexed (for example, `CHANGELOG.md`) does not block indexing. Restore unavailable sources and retry. To retire a source intentionally, remove all coverage for its path from `MCP_INDEX_DIRS` or add an indexing exclusion, then run indexing. A model or chunker change requires a complete rebuild, so that run fails before changing the index if any included indexed source is unavailable. This prevents old vectors from being labelled with the new model or chunker. Automatic adoption of another index root also waits for these sources. An explicit `--allow-root-change` replacement does not carry over unscanned records from the old root.

RAG indexing scans supported docs and engineering text files, but you can further reduce risk with explicit controls:

- built-in excluded directories such as `.git`, `.agent-memory`, `node_modules`, `logs`, and `.terraform`
Expand Down
11 changes: 8 additions & 3 deletions docs/MCP_TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,14 @@ query against a corpus that never included the material returns "no results",
which is indistinguishable from "there is nothing like that". A root that is
configured and contributes zero files is therefore reported by name (T97) —
omitting it would make it look like a root nobody had configured. Common
causes: the path does not exist under `MCP_ROOT`, it holds no supported file
types, or `MCP_INDEX_EXCLUDE_DIRS` / `MCP_INDEX_EXCLUDE_GLOBS` filtered
everything out.
causes: it holds no supported file types, or `MCP_INDEX_EXCLUDE_DIRS` /
`MCP_INDEX_EXCLUDE_GLOBS` filtered everything out. A missing or unreadable
configured path is logged. Records and chunks for paths still included in the
configuration are retained. Paths outside the failed paths continue to update.
A missing optional path that has never been indexed does not block the run. Restore the path and retry. To retire a
source, remove coverage from every configured root or add an indexing exclusion,
then re-index. A model or chunker rebuild
waits for unavailable indexed sources that are still included before changing the index.

## Engineering workflow tools

Expand Down
7 changes: 4 additions & 3 deletions internal/rag/directory_symlink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ func TestCollectDirectorySymlinkHonorsExcludesAndSkipsNestedLinks(t *testing.T)
IndexExcludeDirs: []string{"linked/private"},
IndexExcludeGlobs: []string{"linked/draft.md"},
}, nil)
docs, err := ds.collectDocuments()
if err != nil {
t.Fatal(err)
scan := ds.collectDocuments()
if len(scan.unavailablePaths) != 0 {
t.Fatalf("unexpected unavailable paths: %v", scan.unavailablePaths)
}
docs := scan.documents
if len(docs) != 1 || docs[0].Path != "linked/guide.md" || docs[0].ID != "linked/guide.md-0" {
t.Fatalf("collected documents = %+v, want only linked/guide.md", docs)
}
Expand Down
Loading
Loading