Repository navigation
fix(server): wire 'at' time-travel param into /room/recall - #1085
Merged
Merged
Conversation
RoomRecallRequest now accepts 'at' (RFC3339). Invalid timestamps return 400 instead of being silently dropped. Both recall paths (chronological fallback + semantic) apply point-in-time filtering using the same temporal rules as core recall_at_time: created_at <= at, valid_from <= at, valid_until > at, not deprecated.
…ogical path Cora MAJOR on #1085: SQL LIMIT truncated candidates before the point-in-time post-filter, returning fewer results than requested. Fetch 3x (min limit+10) when 'at' is set, then truncate after filtering.
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (1)
Review powered by cora-code · BYOK · MIT |
| } | ||
| if let Some(valid_until) = memory.valid_until { | ||
| if valid_until <= pit { | ||
| return false; |
ajianaz
added a commit
that referenced
this pull request
Aug 24, 2026
) Cora review on #1085 flagged that deprecated memories are excluded from time-travel regardless of when they were deprecated. The schema lacks a deprecation timestamp, so this cannot be fixed without a schema migration (tracked in #1086). Document the limitation at the predicate until then. Co-authored-by: ajianaz <[email protected]>
What
POST /room/recallnow honors theat(time-travel) parameter instead of silently dropping it.Why
RoomRecallRequesthad noatfield, so serde ignored it and results were identical with and withoutat— callers relying on room time-travel got silently incorrect data. Closes #1082.Changes
RoomRecallRequestgainsat: Option<String>(bug: room/recall silently ignores 'at' (time-travel) parameter — RoomRecallRequest missing field #1082)atup front — invalid RFC3339 → 400 (loud, not silent)recall_at_time:created_at <= at,valid_from <= at,valid_until > at, not deprecated:docs/api-reference.mdregenerated (docgen)Testing
cargo test -p uteke-server: 8 passed, 0 failed (5 new)atdeserialization regression (field recognized + omitted → None)cargo clippy -p uteke-server --all-features: clean