Please work on the following open items: - Status inheritance across checkpoints only…
Private research annotation
Sign in to add a private research label or note.
- User
Please work on the following open items:
- Status inheritance across checkpoints only works for identical item text; if AI rephrases an open item in a new checkpoint, status is lost by design
Assistant
Now I'll read the relevant section of
indexer.tsto implement fuzzy matching.Assistant
Now I have a clear picture. I'll implement fuzzy matching using word-overlap similarity (Jaccard index) to find the best prior match when exact text fails.
Assistant
Now build to verify it compiles:
Assistant
Clean build. Here's what was done:
Before: Prior items were fetched with
text: { in: sm.open_items }— exact match only. If an item was rephrased, no prior status was found.After:
- All non-open prior items for the session are fetched (no text filter).
- A
findBestPrior(text)function tries exact match first, then falls back to the best Jaccard similarity score (word-overlap) above a 0.5 threshold. - Tokenization is case-insensitive with punctuation stripped, so minor rephrasing like
"Fix the login bug"→"Fix login bug in auth flow"still inherits status.
The 0.5 threshold means >50% word overlap is required to claim a match, preventing false positives between unrelated items.