Skip to content

feat(ingest): --timestamp date anchors for remember and text import - #1238

Merged
ajianaz merged 1 commit into
developfrom
feat/ingest-date-anchors
Sep 12, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/ingest-date-anchors

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

What

Adds an opt-in timestamp anchor for temporal recall (#1232):

  • uteke remember "..." --timestamp <DATETIME> prepends a [Session date/time: <RFC3339>] header to the stored content
  • uteke import --format text --timestamp <DATETIME> prepends the same header to the file content before chunking, so every imported chunk carries the anchor
  • Accepts RFC 3339, YYYY-MM-DD HH:MM:SS, and YYYY-MM-DD; parsing failures are rejected before any write (same fail-loud pattern as author_type not echoed in POST /remember and CLI --json responses #1106)
  • Content that already starts with an anchor is never double-prefixed
  • Server-path remember forwards the timestamp in the request body

Why

Timestamps normally live only in metadata columns, invisible to vector/FTS recall. Embedding an absolute-date anchor into the stored text makes temporal questions ("when did X happen", "what changed before Y") answerable by the existing retrieval paths with zero query-side changes. Measured on the internal conversation evaluation: temporal QA 15% -> 100% with anchors vs without; end-to-end eval gains are documented in the linked research notes.

Closes #1232

Testing

  • New unit tests (5): RFC 3339 prepend, common-format acceptance, garbage timestamp rejection, empty-content rejection, no double-prefix
  • Full uteke-cli test suite: 73/73 pass
  • cargo clippy -p uteke-cli --all-targets: 0 warnings
  • Live E2E with the built binary: stored content carries the exact anchor header, recall retrieves it, and --timestamp garbage fails loudly with no row stored

…1232)

Prepend a [Session date/time: ...] header to stored content so lexical
and vector recall can answer temporal questions without metadata joins.

- remember --timestamp / import --format text --timestamp (opt-in)
- RFC 3339, YYYY-MM-DD HH:MM:SS, and YYYY-MM-DD accepted; invalid values
  fail loudly before any write
- never double-prefixes already-anchored content
- server-path remember forwards the anchor
- rejected explicitly for --batch-dir (per-file anchors are ambiguous)

Measured on the internal conversation eval: temporal QA 15% -> 100%.

Closes #1232
@github-actions

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 6ffd8db into develop Sep 12, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/ingest-date-anchors branch October 13, 2026 00:57
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.

feat(ingest): prepend per-message date anchors for temporal recall

1 participant