Support nullable array fields in Hindsight memory recall deserialization #100

Closed
opened 2026-09-23 13:43:08 +00:00 by yuris · 0 comments
Owner

What to build

Update the Hindsight memory recall deserialization schema in src/hindsight/recall.rs to tolerate null values for collection and optional fields returned by upstream Hindsight instances. When memories contain source_fact_ids: null or tags: null, the deserializer must treat them as empty lists rather than failing schema validation. Add unit and integration regression tests with real-world Hindsight recall fixtures containing nullable fields.

Acceptance criteria

  • Recall responses containing source_fact_ids: null deserialize cleanly into empty vectors
  • Recall responses containing tags: null or context: null deserialize cleanly without schema errors
  • life context search parses returned memories and does not emit schema errors against live Hindsight instances
  • Unit tests in src/hindsight/recall.rs cover real-world Hindsight payloads with null collections
  • Existing Hindsight integration test suite passes with zero regressions

Blocked by

None - can start immediately

## What to build Update the Hindsight memory recall deserialization schema in src/hindsight/recall.rs to tolerate null values for collection and optional fields returned by upstream Hindsight instances. When memories contain source_fact_ids: null or tags: null, the deserializer must treat them as empty lists rather than failing schema validation. Add unit and integration regression tests with real-world Hindsight recall fixtures containing nullable fields. ## Acceptance criteria - [x] Recall responses containing source_fact_ids: null deserialize cleanly into empty vectors - [x] Recall responses containing tags: null or context: null deserialize cleanly without schema errors - [x] life context search parses returned memories and does not emit schema errors against live Hindsight instances - [x] Unit tests in src/hindsight/recall.rs cover real-world Hindsight payloads with null collections - [x] Existing Hindsight integration test suite passes with zero regressions ## Blocked by None - can start immediately
yuris closed this issue 2026-09-23 14:17:29 +00:00
Sign in to join this conversation.
No labels
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
yuris/life-service#100
No description provided.