Repository navigation
test(memory): a GMI over a durable store lists memories of one millisecond by id, on SQLite and PostgreSQL alike - #833
Conversation
…econd by id, on SQLite and PostgreSQL alike
…whose filing order, character-code order and collation order differ
…illisecond, and what 0.17.3 gave on each engine
|
Warning Review limit reached
This review includes 3 billable files and costs up to $0.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 2 minutes for your next included review. View limit details
|
Reviewer's GuideDocumentationClarify where hosts see the memory ordering and how same-millisecond traces previously loaded on SQLite and PostgreSQL.
TestsAdd a durable-store GMI end-to-end test that checks same-millisecond tie ordering in recall records and model memory blocks across updated stores and database engines.
Update the existing GMI memory-recall test comment to reflect that memories filed in one millisecond are ordered by id.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoTest deterministic GMI memory order across SQLite and PostgreSQL
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can ask Qodo to dismiss a finding you disagree with, with your reason on record |
What changed
A test of #831 through the path a host takes: a GMI built with
agent({ runtime: 'gmi' })over a durable store, on a SQLite file and on PostgreSQL. One agent files twelve turns with the clock standing still, so every memory has one filing time, and closes; a second agent built on the same store answers a question. The test checks the memory block the model is sent and the turn'smemoryRecallrecord:The trace ids carry the order they were minted in, and their letters mix cases out of order, so the test fails on the order of filing, its reverse, and a language's collation alike; it checks that its groups tell those orders apart.
gmi-runtime.memory-tiebreak.e2e.test.tsIssue
Part of #754
Spec, plan and design
None
Docs
docs/memory/COGNITIVE_MEMORY.md, "Upgrading from 0.17.3 or earlier": the line now says where a host sees the order (the GMI's memory block andmemoryRecall.candidates) and that both engines give the same block. It also corrects what 0.17.3 gave on SQLite: the line said the order the traces were stored, and the red run below shows the newest filed first on this path, so it now says the order followed how the engine read the rows.gmi-runtime.memory-recall.e2e.test.ts: its comment said memories of one millisecond load in an order the engine picks; it now says by id.Tests
B0007, z0005, M0003, a0001); PostgreSQL listed it in another order, which changed with the rows updated (a0001, M0003, z0005, B0007in one store,M0003, a0001, B0007, z0005beside SQLite).gmi-runtime.memory-recall.e2e.test.tspasses beside them.