fix(recall): resolve remaining bugs from #82, #84, #94 - #98
Merged
Conversation
m0Nst3r873
force-pushed
the
worktree-fix-issues-82-84-94
branch
3 times, most recently
from
July 1, 2026 09:38
3297fc8 to
aa06e09
Compare
Tencent#94 - buildConfidence: cumulative sum capped at 1.0 (Tencent#82 bug1, Tencent#94 issue3) - stale detection: Math.abs(fromMs - toMs) for drift (Tencent#82 bug2) - loadWikiPages: recursive traversal (Tencent#84 bug1) - tokenizer.ts: preserve camelCase/PascalCase split, fix OOM (Tencent#84 bug2) - extractCodebase: load-merge-save graph (Tencent#84 bug3) - unified tokenizer: both paths use tokenizer.ts (Tencent#84 bug4) - loadGraphIndex: schema guard (Tencent#84 bug5) - BM25 dl/tf: countOccurrences truncates to MAX_TOKENIZE_CHARS (Tencent#94 issue1) - shrink-guard: restore 20% soft threshold (Tencent#94 issue2) - tokenizer.ts: MAX_TOKENIZE_CHARS 50k + iterative segmenter (Tencent#94 issue4) - i18n: CLI output strings in English (review/import/drift/extract) - 15 regression tests Closes Tencent#82, closes Tencent#84, closes Tencent#94
m0Nst3r873
force-pushed
the
worktree-fix-issues-82-84-94
branch
from
July 1, 2026 09:42
aa06e09 to
57deb52
Compare
Replace autoPushTeamRepo (direct push to main) with autoPushViaMR (create branch + create MR/PR) for import flows: - Add autoPushViaMR() in src/utils/git.ts: creates branch, commits, pushes, creates MR via provider, returns to default branch - Replace direct push in import-repo.ts main flow and deep-enrich background callback - Replace direct push in import-repo-list.ts batch flow - Reuses existing pushRepoBranch + createPrWithFallback infrastructure AI-generated knowledge content now requires review before merging into the team knowledge repository.
4 tasks
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
Fixes the remaining bugs reported in issues #82, #84, and #94 that were not fully resolved by PR #91.
Issue #82 — knowledge-reconciler
buildConfidence→ cumulative sumMath.min(1, sum), corroborating evidence now increases confidenceMath.abs(fromMs - toMs)measures drift between two sidesIssue #84 — codebase graph retrieval
loadWikiPagesrecursive traversal (modules/*.md now indexed)rawTokenCount; usestokenizer.tswith correct camelCase/PascalCase splitextractCodebaseload-merge-save prevents overwriting other repostokenizer.tsfor both pathsloadGraphIndexschema validation + null fallbackIssue #94 — PR #91 follow-ups
MAX_TOKENIZE_CHARS(50k) + iterative Segmenter (no OOM)Test plan
npx tsc --noEmit— cleannpx vitest run— 131 files, 1691 tests passCloses #82, closes #84, closes #94
🤖 Generated with Claude Code