Files
memoryweave/go/internal/api
小唯 3f4e00dac7 fix(recall): debug 端点补 ghost-ns 闸 — 与生产同判据,诊断不再撒谎 (t_nsdebug-20261109)
生产 /api/v1/recall 已于 t_15d82af7 + t_a243aefa(11-07)修好:ghost ns ⇒ 0 条。
但 /api/v1/recall/debug 自带一套 nsList,仍无条件并 shared ⇒ 实测 ghost ns 报
"5 candidates from 2 namespaces"、返回 5 条 —— 诊断端点与生产不同判据。

改:nsList 并 shared 前过 storage.NamespaceHasRowsFor(与 recall.go 同一判据 + 同一 60s 缓存);
    0 候选分支的 detail 补 "from N namespaces"(否则看不出搜了几个 ns)。
测试:internal/api/routes/nsdebug_ghost_test.go 2 例(ghost ⇒ 0;真实 ns 仍 2 namespaces)。
RED 已验:修前 ghost ns count=2(sh_1/sh_2)。
2026-11-09 19:46:49 +08:00
..