Repository navigation
fix: Track exact source edits and hidden replacements - #807
Draft
buildingjoshbetter wants to merge 7 commits into
Draft
buildingjoshbetter wants to merge 7 commits into
buildingjoshbetter wants to merge 7 commits into
Conversation
This was referenced Oct 8, 2026
This branch has not been deployed
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.
Scope
Source/FTS correctness follow-up for #753 and #751, stacked on #803. Includes #805 through a normal prerequisite merge. This fixes tracked comparisons and hidden replacement deletions; schema-interval trust remains a separate checkpoint.
Changes
Validation
d62840b57ea8b5b9d04778571618f76680112bd401cd11a40fcf8ffa50f72e6b.46a0426562cdd71f4e8c248ecf4a13fefefcbe630797dee70e4a214887050fd3.Limits
Custom UNIQUE schemas pay an O(N) FTS orphan scan on each insert/update and conservatively invalidate even nonconflicting writes. Default-schema append/derived-only behavior remains cheap. These measurements concern tested SQL paths, not whole-app memory or inference latency.
Canonical guarantees require an INTEGER PRIMARY KEY rowid alias. Indexed descending primary keys and WITHOUT ROWID keys can retain FTS-incompatible IDs; their synchronization and writes are not certified here. Missing indexed/source fields retain the degraded legacy path.
Identical trigger drop/mutate/recreate intervals and arbitrary direct FTS mutations remain outside these guarantees. No schema-cookie fence or search readiness gate is added. No model, reranker, precision, dimension, retrieval-limit or release change. All inputs are generated; no personal memories, transcripts or credentials are included. No issue closure or native MPS/thermal claim.