Repository navigation
fix(#902,#903,#907): HTTP temporal filters, limit cap, empty query guard - #911
Merged
Merged
Conversation
#902: Add before/after RFC3339 fields to RecallRequest. Post-filter results by created_at in both unified and memory-only recall paths. Invalid timestamps return 400. #903: Cap limit at MAX_LIMIT (100) to prevent DoS via unbounded queries. #907: Reject empty/whitespace query strings with 400 instead of returning misleading top-N results.
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (2)
Review powered by cora-code · BYOK · MIT |
This was referenced Aug 6, 2026
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…ard (#911) #902: Add before/after RFC3339 fields to RecallRequest. Post-filter results by created_at in both unified and memory-only recall paths. Invalid timestamps return 400. #903: Cap limit at MAX_LIMIT (100) to prevent DoS via unbounded queries. #907: Reject empty/whitespace query strings with 400 instead of returning misleading top-N results. Co-authored-by: ajianaz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three HTTP API fixes bundled (same file scope — server crate only):
#902 — Temporal range filters (
before/after)beforeandafterfields toRecallRequest(RFC3339 timestamps)created_atin both unified and memory-only recall paths400with descriptive error#903 — Limit cap (DoS prevention)
MAX_LIMIT = 100constant intypes.rslimitfield is silently capped (req_data.limit.min(MAX_LIMIT))limit: 999999#907 — Empty query guard
400Why
before/afterparams silently ignored — temporal queries brokenTesting
cargo check --workspace— passcargo clippy --workspace --all-targets -- -D warnings— cleancargo test --workspace— 454 passed, 0 failed, 26 ignoredcargo run -p docgen— API docs regenerated (before/after fields visible)cargo fmt --all— formattedCloses #902, #903, #907.