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
Same-timestamp rows: message order without a tie-break, and a profile upkeep watermark that can miss facts #236
area: engineAgent loop, models, approvals, storage, gatewayarea: memoryFacts, user model, nightly consolidationbugSomething isn't workinghelp wantedExtra attention is neededpriority: P1Next: high-value featuresize: SSmall: a few days
Found while fixing flaky tests (#228, #235). Windows' clock advances every 15.6 ms by default, so rows saved in the same tick share a timestamp.
Message order without a tie-break: sentient/agent/loop.py (around lines 1094 and 1221) and sentient/memory/episodic.py (around line 199) order messages by created_at only. Messages saved in the same tick can come back in the wrong order, which can scramble what the model sees. fix: make timing-sensitive tests reliable on busy machines #235 fixed the same problem in the user model by adding rowid as a tie-break; apply the same here and check the store for other ORDER BY created_at queries.
Profile upkeep watermark: upkeep picks new facts with updated_at > since. A fact saved in the same tick as an upkeep run, after its query, is never added to the profile. Use a watermark that can't collide (for example the highest fact rowid seen, or a sequence number).
Done when: both are fixed, with tests that reproduce the same-tick case (for example by freezing the clock).
area: engineAgent loop, models, approvals, storage, gatewayarea: memoryFacts, user model, nightly consolidationbugSomething isn't workinghelp wantedExtra attention is neededpriority: P1Next: high-value featuresize: SSmall: a few days
Activity
fix(memory): tie-break same-timestamp rows and watermark profile upke…
fix(memory): keep same-timestamp rows in order and never skip them in…
fix(engine): mark saved results and downloads read back as outside co…