WeKnora/internal
ochan.kwon db7baad84c fix: reject cross-store reuse_vectors knowledge move
Moving knowledge with mode=reuse_vectors copies vector index entries
directly between knowledge bases, which only works when both KBs are
bound to the same vector store (CopyIndices is routed through the source
store). Nothing rejected a cross-store reuse_vectors move, so it would
copy target-KB rows into the source store and then delete the source
indices — corrupting vector data. The move endpoint validated only the
embedding model, and ListMoveTargets surfaces same-model KBs regardless
of their store binding, so a cross-store target is reachable.

Reject reuse_vectors moves whose source and target KBs are bound to
different vector stores:

- MoveKnowledge handler: synchronous 400 before enqueueing, with a
  message pointing the caller at reparse mode.
- moveOneKnowledge: re-check before marking the knowledge as processing,
  so a rejected move leaves it untouched rather than stranded.
- moveKnowledgeReuseVectors: a top-of-function guard as defense in depth
  for any directly enqueued task, satisfying the pre-existing contract
  noted in the comment ("callers must reject cross-store moves").

reparse mode is unaffected: it re-indexes into the target store from
scratch and is the supported way to move across stores.
2026-06-05 15:00:41 +08:00
..
agent feat(faq): enhance FAQ handling and localization support 2026-06-04 21:43:16 +08:00
application fix: reject cross-store reuse_vectors knowledge move 2026-06-05 15:00:41 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common feat: Implement deadlock retry mechanism for chunk creation 2026-04-22 21:17:21 +08:00
config test: add document process task options tests 2026-05-28 20:27:53 +08:00
container feat(chat): implement local image resolver for multimodal chat 2026-06-01 20:54:37 +08:00
database feat(system-info): surface DB migration errors with troubleshooting links 2026-05-14 16:34:50 +08:00
datasource fix(datasource): align Feishu connector capabilities 2026-06-04 15:33:03 +08:00
errors feat(knowledge): track per-stage parsing progress with /stages API 2026-05-28 15:14:45 +08:00
event fix(event): add panic recovery to async goroutines 2026-06-04 15:37:08 +08:00
handler fix: reject cross-store reuse_vectors knowledge move 2026-06-05 15:00:41 +08:00
im fix(im): inject synthetic identity so IM channels can use shared KBs 2026-06-04 16:43:54 +08:00
infrastructure fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
logger refactor(logger): support LOG_FORMAT template and harden level coloring 2026-05-22 20:31:54 +08:00
mcp feat(mcp): implement reconnection logic for MCP tool calls and tool listing 2026-03-31 11:57:15 +08:00
middleware fix(knowledge): prevent documents from getting stuck in "processing" 2026-05-28 15:14:45 +08:00
models feat(thinkingControl): implement thinking mode configuration in model editor 2026-06-05 14:56:48 +08:00
router feat(configuration): update asynq concurrency settings and enhance FAQ handling 2026-06-04 15:48:04 +08:00
runtime feat(system): add server startup time and uptime tracking 2026-06-04 15:48:04 +08:00
sandbox 增加sandbox对windows编译支持,现在默认是linux的实现,windows直接编译报错 2026-05-25 16:57:56 +08:00
searchutil fix(knowledge): stitch chunks by text overlap, not by position 2026-05-30 17:53:47 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing feat(observability): extend Langfuse tracing across asynq pipeline 2026-04-24 13:16:47 +08:00
types fix(datasource): fail sync when all fetched items fail 2026-06-04 17:39:55 +08:00
utils fix(embedding): support native Gemini embeddings 2026-06-02 21:37:58 +08:00