Skip to content

bug: HTTP API /recall ignores before/after temporal filter parameters #902

Closed

Description

@ajianaz

What

HTTP API POST /recall accepts before and after parameters but completely ignores them. Temporal filtering does not work.

Reproduction

# Returns 3 results regardless of date filter:
curl -X POST http://localhost:18999/recall \
  -H "Content-Type: application/json" \
  -d '{"query":"memory","limit":3,"before":"2026-08-01T00:00:00Z"}'
# Returns 3 results — same as without any date filter

# Returns 3 results for impossible date range (no memories before 2025):
curl -X POST http://localhost:18999/recall \
  -d '{"query":"memory","limit":3,"before":"2025-01-01T00:00:00Z"}'

# Invalid timestamp accepted without error:
curl -X POST http://localhost:18999/recall \
  -d '{"query":"memory","limit":3,"before":"not-a-date"}'
# Returns results instead of 400 error

Impact

  • Any client using temporal filtering via HTTP API gets incorrect results
  • Invalid timestamps silently accepted instead of validated

Proposed Fix

  1. Pass before/after to the recall query layer
  2. Validate timestamp format and return 400 for invalid input
  3. Add test coverage for temporal query edge cases

Environment

  • uteke-serve v0.12.0, API v2

Activity

  1. added
    bug
    priority:critical
    scope:server
    on Aug 5, 2026
  2. added a commit that references this issue on Aug 6, 2026
  3. added a commit that references this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:criticalscope:server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions