Skip to content

Native Memory index fails closed on blank events.jsonl lines #5214

Description

@MohabMohie

Problem

shaft-memory search_memory failed closed during #5207 with:

MemoryIndexUnavailable / MemoryInvalidJsonl: Blank JSONL lines are not allowed.
path: .memory/events.jsonl:1176

Line 1176 is a blank line between two otherwise valid memory.updated / memory.created events (timestamps 2026-08-18T20:21:32+03:00 and 2026-08-18T14:40:29+03:00). Retrieval and remember are unavailable until the index can load.

Not a duplicate of

Suggested repair

  • Reader: skip blank lines instead of fail-closed, or
  • Writer/merge: never emit a blank line into events.jsonl

Ordinary tasks should keep treating the store as degraded until this is fixed. Do not rewrite history.

Related to #5207.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreadyCanonical automated taxonomysubsystem:repository-toolingCanonical automated taxonomy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions