Commit 6076635
committed
fix(memory): emit real scoringTimeMs + vectorSearchTimeMs diagnostics
Previously these fields were hardcoded to 0 in three places
(CognitiveMemoryManager.retrieve success + weak-hit paths, plus
an AgentMemory shim). The shim's zero is correct (standalone
Memory doesn't separate stages), but the cognitive path was
lying.
Fix: MemoryStore.query now returns a timings object with
vectorSearchMs (wall time around the vectorStore.query loop) and
scoringMs (wall time around scoreAndRankTraces + detectPartiallyRetrieved).
CognitiveMemoryManager threads these into diagnostics instead of 0.
agentos-bench latencyBreakdown.scoring no longer reports n=0 for
every case.1 parent 62ad19d commit 6076635
9 files changed
Lines changed: 56 additions & 22 deletions
File tree
- dist/memory
- retrieval/store
- src/memory
- retrieval/store
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 | | |
76 | 85 | | |
77 | 86 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments