zara-memory: type-check recall queries before backend dispatch #136

Closed
opened 2026-09-08 02:03:03 +00:00 by nsaspy · 0 comments
Owner

Plugin

zara-memory

Defect

MemoryService.recall() annotates query as str | None but does not enforce that boundary at runtime. Malformed scalar/structured values can reach the backend, producing backend-specific coercion/errors instead of deterministic plugin semantics.

Required behavior

  • recall query accepts only str or None;
  • malformed query values fail with MemoryError before backend recall is invoked;
  • scope/type/schema isolation and current backend capability behavior remain unchanged.

RAGE

Deterministic RED first, smallest implementation, exact-head full registry/plugin/Nix gate before merge.

Advances #7 without inventing missing symbolic-memory backend operations.

## Plugin `zara-memory` ## Defect `MemoryService.recall()` annotates `query` as `str | None` but does not enforce that boundary at runtime. Malformed scalar/structured values can reach the backend, producing backend-specific coercion/errors instead of deterministic plugin semantics. ## Required behavior - recall query accepts only `str` or `None`; - malformed query values fail with `MemoryError` before backend recall is invoked; - scope/type/schema isolation and current backend capability behavior remain unchanged. ## RAGE Deterministic RED first, smallest implementation, exact-head full registry/plugin/Nix gate before merge. Advances #7 without inventing missing symbolic-memory backend operations.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/zara-plugins#136
No description provided.