From de3504323f1ba02e7141126dbb0fda66cb9f2de7 Mon Sep 17 00:00:00 2001 From: keirsalterego Date: Sun, 2 Aug 2026 09:37:42 +0530 Subject: [PATCH] feat(desktop): a remembered fact says which agent recorded it, in words MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The memory panel already printed provenance. It printed a UUID. The store has carried this since the facts were first written — `memory_scope` puts the calling node's id in `run_id` precisely so a fact knows where it came from — and the panel dutifully showed it. Who told you this and when are the two axes anyone scans a memory list on, and half of that was a string with no meaning to the person reading it. That is worse than showing nothing: a raw id reads as an identifier you are supposed to recognise, so it sends someone looking for a place to look it up, and there is not one. So it resolves against the tabs that are open and says the agent's name. A fact from a session that has since been closed says "an earlier session" rather than falling back to the id, for the same reason: the id is not a thing a person can act on. It stays on hover, where someone actually debugging would want it. No migration and no new column — this is a render over data that was already there, which is what made it worth doing now rather than later. --- apps/identra-desktop/frontend/src/App.tsx | 4 +++- .../frontend/src/WorkPanel.tsx | 20 ++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/identra-desktop/frontend/src/App.tsx b/apps/identra-desktop/frontend/src/App.tsx index 8b4e3d8..c9e8db4 100644 --- a/apps/identra-desktop/frontend/src/App.tsx +++ b/apps/identra-desktop/frontend/src/App.tsx @@ -1304,7 +1304,9 @@ export default function App() { )} - {right === "work" && setRight(null)} />} + {right === "work" && ( + setRight(null)} /> + )} {right === "connections" && ( void; initialTab?: Tab; + // What is open in this workspace, so a fact can say which agent recorded it. + // + // The store has carried the provenance since it was written — `run_id` is the node that learned + // the fact — and the panel was already printing it. It was printing a UUID. "Who told you this" + // and "when" are the two axes anyone scans a memory list on, and half of that was a string with + // no meaning to the person reading it, which is worse than blank: it looks like an identifier + // they are supposed to recognise. + nodes?: CanvasNode[]; }) { const [tab, setTab] = useState(initialTab); const [tasks, setTasks] = useState([]); @@ -360,7 +370,15 @@ export default function WorkPanel({ {m.run_id !== "" && ( <> - {m.run_id} + {/* The tab that recorded it, by name. A fact from a session that has since + been closed says so rather than showing the id: the id is not something + a person can look up, and pretending otherwise sends them hunting. The + raw value stays on hover, because it is what you would need if you were + actually debugging. */} + + {nodes.find((n) => n.id === m.run_id)?.title ?? + "an earlier session"} + )}