fix(search): scope deprecated_by filter to user tables only (#330)

compile_filters() unconditionally appended 'deprecated_by IS NULL' to
every query, but the deprecated_by column only exists on user-scoped
tables (episode, atomic_fact — Reflection V1). Agent tables
(agent_case, agent_skill) lack this column, causing a SQL error on
agent search/get queries.

Gate the clause behind owner_type == 'user' so agent queries no longer
reference a non-existent column.

Bump version to 1.1.2.

Co-authored-by: Jiayao Song <jiayao.song@shanda.com>
This commit is contained in:
Kendrick-Song
2026-07-08 11:17:01 +08:00
committed by GitHub
co-authored by Jiayao Song
parent 15efd1198c
commit 56ee9c8e5c
7 changed files with 41 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"info": {
"title": "everos",
"description": "md-first memory extraction framework",
"version": "1.1.1"
"version": "1.1.2"
},
"paths": {
"/health": {