fix: sync gaps - source columns in index, rebuild after sync, freshness on ingest#29
Merged
fix: sync gaps - source columns in index, rebuild after sync, freshness on ingest#29
Conversation
…ss on ingest 1. rebuildIndex now includes source_repo, source_path, source_content_hash in INSERT statement. Previously these were lost on every rebuild, breaking findEntryBySourcePath used by sync M/D detection. 2. brain sources sync now calls rebuildIndex + updateFreshnessScores after sync completes. New/updated/deleted entries appear in search. 3. brain ingest now calls updateFreshnessScores after import. list --fresh/--stale works immediately after ingest. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vraspar
added a commit
that referenced
this pull request
Mar 26, 2026
README.md: - Added restore, serve, sources to usage section (was 17, now 20) - All 20 user-facing commands now documented CHANGELOG.md: - Added PR references (#10, #13, #18, #20, #26, #27, #28, #29) - Added grouped help (#26) and source-tag custom value (#27) - Added sync fixes (#29) Docs consistency check passes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vraspar
added a commit
that referenced
this pull request
Mar 26, 2026
) README.md: - Added restore, serve, sources to usage section (was 17, now 20) - All 20 user-facing commands now documented CHANGELOG.md: - Added PR references (#10, #13, #18, #20, #26, #27, #28, #29) - Added grouped help (#26) and source-tag custom value (#27) - Added sync fixes (#29) Docs consistency check passes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vraspar
added a commit
that referenced
this pull request
Mar 26, 2026
README.md: - Added restore, serve, sources to usage section (was 17, now 20) - All 20 user-facing commands now documented CHANGELOG.md: - Added PR references (#10, #13, #18, #20, #26, #27, #28, #29) - Added grouped help (#26) and source-tag custom value (#27) - Added sync fixes (#29) Docs consistency check passes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vraspar
added a commit
that referenced
this pull request
Mar 26, 2026
* docs: add missing commands to README, update CHANGELOG with PR refs README.md: - Added restore, serve, sources to usage section (was 17, now 20) - All 20 user-facing commands now documented CHANGELOG.md: - Added PR references (#10, #13, #18, #20, #26, #27, #28, #29) - Added grouped help (#26) and source-tag custom value (#27) - Added sync fixes (#29) Docs consistency check passes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: serve startup message and table title truncation serve: prints startup message to stderr ('Brain MCP server running on stdio...') so users know it started. Uses stderr to avoid interfering with MCP stdio transport on stdout. tables: truncates titles to 40 chars with '...' suffix in all table outputs (list, search, digest, stats). Prevents long titles from breaking table formatting. JSON output retains full titles. 7 new tests for truncation behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Fixes 3 sync gaps from QA v2:
rebuildIndex loses source tracking — INSERT now includes source_repo, source_path, source_content_hash. Previously these were dropped on every rebuild, breaking findEntryBySourcePath used by sync's M/D detection.
No rebuildIndex after sync — brain sources sync now calls rebuildIndex + updateFreshnessScores. New/updated/deleted entries appear in search/list immediately.
No freshness on ingest — brain ingest now calls updateFreshnessScores. list --fresh/--stale works right after import.
Build clean.