You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(kb-ui): the knowledge graph page is blank — the existing KnowledgeGraph.vue renderer is never routed; mount it (M1 slice of #17569) #19727
The knowledge graph page is blank. /knowledge/graph (KnowledgeGraphView.vue:54-60) renders only a welcome card and stat counters. /knowledge/graph/entities (KnowledgeGraphExplorer.vue:69-77) renders nothing until a search is typed.
The visual renderer KnowledgeGraph.vue (cytoscape and 3D) exists, but nothing loads it: no route, no importer. Its only references are stories and components/knowledge/index.ts:28, and git log -S shows it was never routed. The data is there: GET /api/knowledge_base/multi-source/graph returns 200 with data.entities / data.relations.
Scope
Maintainer decision (2026-10-26): M1 covers mounting the existing renderer, so the page shows the graph. Consolidating the seven graph components into one canonical component stays in #17569 (M3). This issue mounts the component #17569 names as canonical; it adds no eighth one.
Acceptance criteria
/knowledge/graph renders KnowledgeGraph.vue fed by multi-source/graph, and shows nodes and edges when the KB has entities.
An empty KB shows an explicit empty state with the reason, never a blank canvas.
A component test mounts the route with a fixture of N entities and asserts N nodes are rendered.
Host: after the builtin update, the owner's graph page shows the graph. — host evidence: issuecomment-6692850887 (02c53be)
Verified against main at the merge train (PR #20707), merge 1416e3d202. Only boxes with code evidence are ticked.
AC
Evidence
/knowledge/graph renders KnowledgeGraph.vue fed by multi-source/graph, and shows nodes and edges when the KB has entities.
delivered. components/knowledge/KnowledgeGraphView.vue:61 mounts <KnowledgeGraph /> in the root-route content (imported at :95); KnowledgeGraph.vue uses useKnowledgeGraphEntities, which fetches /knowledge_base/multi-source/graph (composables/knowledge/useKnowledgeGraphEntities.ts:217); route at router/index.ts:308.
An empty KB shows an explicit empty state with the reason, never a blank canvas.
delivered. KnowledgeGraphView.page.test.ts: says the KB is empty rather than showing a blank canvas (.empty-state, knowledge.graph.noEntitiesFound) and says a store could not be read rather than that it is empty.
A component test mounts the route with a fixture of N entities and asserts N nodes are rendered.
delivered. KnowledgeGraphView.page.test.tsdraws a node for each entity (3 entities, 3 nodes added).
Host: after the builtin update, the owner's graph page shows the graph.
NOT delivered. Not ticked: needs the owner's graph page after the builtin update; a merge is not host evidence.
Host check on 2026-11-03 at 08:08 Riga, read-only, on the local node at 1416e3d202: the frontend files on this node are older than #20681. KnowledgeGraphView.vue matches cfc66a1d65 (2026-10-26) and was written on 2026-10-28, and the built bundle is from 2026-11-01.
I don't know whether this node is the one serving the frontend. If it is, the frontend role didn't update with the rest. The host criterion stays open: the owner's graph page after an update that reaches the frontend.
Unified graph: empty although the KB isn't. db 1 holds 3,113 fact:* keys. The graph route (_get_facts_for_graph in api/knowledge_search_aggregator.py) gets facts with kb.search("*", top_k=max_facts). At 10:50:44, when the page loaded, the backend logged Search completed: 0 results ... (embedding: 0.00ms ...) using cpu_fallback, twice.
Likely cause, not yet proven: with no embedding (#18834), search falls back, and a * query matches nothing. The keyword fallback only keeps results that score above 0 (keyword_search.py:232), and * is no term in any fact. So the graph gets no facts to draw, and probably only the category nodes, if any. I haven't read the response body: the route needs a session.
Where the fix goes: the graph shouldn't depend on a search for *. It should list facts directly, for example the most recent ones, still filtered by filter_search_results_by_permission. That's a backend change to this issue's route. The frontend mount from #20681 isn't at fault.
Closure check against origin/main02c53be (T85 #20911, carries #20719, which makes the graph list facts instead of searching: api/knowledge_search_aggregator.py:660kb.get_all_facts(limit=max_facts) in _get_facts_for_graph).
AC
Evidence
Ticked
/knowledge/graph renders KnowledgeGraph.vue fed by multi-source/graph, shows nodes and edges
route router/index.ts:309 -> KnowledgeGraphView.vue; KnowledgeGraphView.vue:61 mounts <KnowledgeGraph /> on the root route (import :95); KnowledgeGraph.vue:446 uses useKnowledgeGraphEntities, which fetches useKnowledgeGraphEntities.ts:217/knowledge_base/multi-source/graph?max_facts=100&include_categories=true; backend list path now eligible-fact pagination (knowledge/fact_stream.py:61collect_facts, #20866)
yes
Empty KB shows an explicit empty state with the reason
KnowledgeGraph.vue:160-171.empty-state with graphIsEmpty branch; unreadable-store variant (sourcesUnreadable); test KnowledgeGraphView.page.test.ts:80 and :88
yes
Component test mounts the route with N entities and asserts N nodes
KnowledgeGraphView.page.test.ts:72draws a node for each entity (3 entities -> ['a','b','c'] nodes added)
yes
Host: after the builtin update, the owner's graph page shows the graph
needs host evidence; T85 is not deployed yet (local install is at T83)
no
3/4 ticked (no body change needed; the three were already checked and now have evidence). Left open: the host AC.
Host check after the T85 deploy (02c53be, read-only): the code half of the host AC is confirmed.
The page route is /knowledge/graph, and it calls GET /api/knowledge_base/multi-source/graph.
The backend log shows a 200 for that call from a browser session.
There have been 0 graph or fact_stream errors since the update.
The visual half (the page shows N nodes, or its empty state) needs a check in the owner's browser. The host AC stays unticked until then.
Host evidence, 2026-11-06, live install at 02c53be (T85): the maintainer confirmed in the browser that the knowledge-graph page shows data. A read-only check of the same install found that the page's request (GET /api/knowledge_base/multi-source/graph) returns 200 for a browser session, with 0 graph or fact_stream errors in the backend error log since the update.
Clarification on the closing note: PR #20719 shows CLOSED rather than merged because its reviewed content landed through merge train T85 (#20911, merge commit 02c53be), which is how all train passengers land. Landing proof (ancestry plus an empty content diff on the PR's files) is in issuecomment-6691793281.
Activity
github-actions commentedon Nov 2, 2026
Landed via the merge train (#20707, merge
1416e3d202) via #20681mrveiss commentedon Nov 2, 2026
Verified against main at the merge train (PR #20707), merge
1416e3d202. Only boxes with code evidence are ticked./knowledge/graphrendersKnowledgeGraph.vuefed bymulti-source/graph, and shows nodes and edges when the KB has entities.components/knowledge/KnowledgeGraphView.vue:61mounts<KnowledgeGraph />in the root-route content (imported at:95);KnowledgeGraph.vueusesuseKnowledgeGraphEntities, which fetches/knowledge_base/multi-source/graph(composables/knowledge/useKnowledgeGraphEntities.ts:217); route atrouter/index.ts:308.KnowledgeGraphView.page.test.ts:says the KB is empty rather than showing a blank canvas(.empty-state,knowledge.graph.noEntitiesFound) andsays a store could not be read rather than that it is empty.KnowledgeGraphView.page.test.tsdraws a node for each entity(3 entities, 3 nodes added).fix(kb-ui): the knowledge graph page draws the graph (mrveiss#19727)
mrveiss commentedon Nov 3, 2026
Host check on 2026-11-03 at 08:08 Riga, read-only, on the local node at
1416e3d202: the frontend files on this node are older than #20681.KnowledgeGraphView.vuematchescfc66a1d65(2026-10-26) and was written on 2026-10-28, and the built bundle is from 2026-11-01.I don't know whether this node is the one serving the frontend. If it is, the frontend role didn't update with the rest. The host criterion stays open: the owner's graph page after an update that reaches the frontend.
mrveiss commentedon Nov 3, 2026
Its host criterion waits on #18100: the frontend on the local node hasn't been updated since 2026-10-28. Details are posted there.
mrveiss commentedon Nov 3, 2026
Owner check after the update, verbatim: "graph pages show the gui but there is no graps". The host criterion stays open.
What I found, read-only, on the local node on 2026-11-03:
autobot-frontend/currentresolves to the bundle built at 09:58 today. My earlier note about an old frontend was the unuseddistfolder; corrected on CRITICAL(deploy): the served frontend bundle is 11 days older than the deployed source — every frontend fix since 2026-09-27 is dark on the live system #18100./api/memory/entities/all, which logged "Found 0 entities".memory_entity_idxholds 0 documents. That store is filled by memory and agent writes, not by knowledge facts, and perf(kb): an idle backend sweeps every Redis fact about every 3 s (SCAN + HGETALL ×3,742 per 30 s) — keyword fallback with an unidentified caller #19726 didn't touch it.fact:*keys. The graph route (_get_facts_for_graphinapi/knowledge_search_aggregator.py) gets facts withkb.search("*", top_k=max_facts). At 10:50:44, when the page loaded, the backend loggedSearch completed: 0 results ... (embedding: 0.00ms ...) using cpu_fallback, twice.Likely cause, not yet proven: with no embedding (#18834), search falls back, and a
*query matches nothing. The keyword fallback only keeps results that score above 0 (keyword_search.py:232), and*is no term in any fact. So the graph gets no facts to draw, and probably only the category nodes, if any. I haven't read the response body: the route needs a session.Where the fix goes: the graph shouldn't depend on a search for
*. It should list facts directly, for example the most recent ones, still filtered byfilter_search_results_by_permission. That's a backend change to this issue's route. The frontend mount from #20681 isn't at fault.fix(kb): the knowledge graph lists facts instead of searching for "*" (…
mrveiss commentedon Nov 6, 2026
Closure check against
origin/main02c53be (T85 #20911, carries #20719, which makes the graph list facts instead of searching:api/knowledge_search_aggregator.py:660kb.get_all_facts(limit=max_facts)in_get_facts_for_graph)./knowledge/graphrendersKnowledgeGraph.vuefed bymulti-source/graph, shows nodes and edgesrouter/index.ts:309->KnowledgeGraphView.vue;KnowledgeGraphView.vue:61mounts<KnowledgeGraph />on the root route (import:95);KnowledgeGraph.vue:446usesuseKnowledgeGraphEntities, which fetchesuseKnowledgeGraphEntities.ts:217/knowledge_base/multi-source/graph?max_facts=100&include_categories=true; backend list path now eligible-fact pagination (knowledge/fact_stream.py:61collect_facts, #20866)KnowledgeGraph.vue:160-171.empty-statewithgraphIsEmptybranch; unreadable-store variant (sourcesUnreadable); testKnowledgeGraphView.page.test.ts:80and:88KnowledgeGraphView.page.test.ts:72draws a node for each entity(3 entities ->['a','b','c']nodes added)3/4 ticked (no body change needed; the three were already checked and now have evidence). Left open: the host AC.
mrveiss commentedon Nov 6, 2026
Host check after the T85 deploy (02c53be, read-only): the code half of the host AC is confirmed.
The visual half (the page shows N nodes, or its empty state) needs a check in the owner's browser. The host AC stays unticked until then.
mrveiss commentedon Nov 6, 2026
Host evidence, 2026-11-06, live install at 02c53be (T85): the maintainer confirmed in the browser that the knowledge-graph page shows data. A read-only check of the same install found that the page's request (GET /api/knowledge_base/multi-source/graph) returns 200 for a browser session, with 0 graph or fact_stream errors in the backend error log since the update.
mrveiss commentedon Nov 6, 2026
All 4 ACs delivered: code evidence on origin/main (PR #20719, T85 02c53be); host evidence in issuecomment-6692850887.
mrveiss commentedon Nov 6, 2026
Clarification on the closing note: PR #20719 shows CLOSED rather than merged because its reviewed content landed through merge train T85 (#20911, merge commit 02c53be), which is how all train passengers land. Landing proof (ancestry plus an empty content diff on the PR's files) is in issuecomment-6691793281.