Skip to content

feat(core,server,mcp,cli): history is the default for at (#1598) - #1660

Merged
ajianaz merged 2 commits into
developfrom
feat/history-default-at-1598
Nov 4, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/history-default-at-1598

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

What

at now also returns memories deprecated after at (created_at <= at < deprecated_at, valid_from <= at < valid_until) on POST /recall, /list, /room/recall, MCP uteke_recall/uteke_list and the CLI. No history wire parameter. Room recall with at follows the same rule through new core queries (recall_room_at_time, recall_room_semantic_at_time); the server's duplicate predicate is removed. uteke recall/list --history is still accepted as a deprecated no-op alias (help and docs say so). CHANGELOG has a Changed entry marking this as a behaviour change for callers who pass at.

Why

Amendment 3 of kontrak-core-cloud (uteke-cloud#458, owner order 2026-11-03), part of #1598. Deprecation removes the vector from the index, so the documented rule never applied to deprecated rows.

Testing

  • End-to-end core tests (remember, forget, supersede, then at before/after); room chronological and semantic tests; predicate test; server /list test; CLI test for default behaviour and the alias.
  • clippy and workspace tests pass; docgen has no diff.
  • Cost on a large store (release build, 768-dim, extra SQL query plus cosine over rows deprecated after at, D = such rows): D=1k: 1.7 ms + 0.7 ms; D=10k: 18 ms + 8 ms; D=50k: 97 ms + 42 ms. Index path unchanged. Rooms add one SQL query over the room's rows.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 10b501d into develop Nov 4, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/history-default-at-1598 branch November 4, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant