Commit 901b682
fix(graphrag,mcp): drop premature 3-arg vectordb.Search call (RAN-37 CI)
The PR-27 build failed CI because internal/graphrag/clustering.go and
internal/mcp/tools.go both called the 3-arg vectordb.Index.Search(tenant,
query, k) signature, but that signature lives on RAN-20's vectordb
tenant-isolation work and is not yet on main. The 3-arg form leaked in
from a stacked branch during the original RAN-37 cut.
Restore the 2-arg Search(query, k) call in both sites and leave a
TODO(RAN-20) so the proper vector-side tenant scoping lands with the
RAN-20 follow-up. RAN-37's in-memory tenant invariants are unaffected:
SimilarErrors still narrows results by the per-tenant SignalStore's
EMITTED_BY edges, so cross-tenant hits cannot surface even while the
underlying vector index is shared.
go build / vet / test ./... and -race on graphrag + api all green.
Co-Authored-By: Paperclip <noreply@paperclip.ing>1 parent 901a4ae commit 901b682
2 files changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
| |||
0 commit comments