Artifact
CASE memory_tier WHEN 'persistent' THEN 1.3 WHEN 'long-term' THEN 1.0 ELSE 0.2 END AS tier_boost FROM ${schema}.events WHERE occurred_at > now() - ($2::text || ' days')::interval AND memory_tier != 'short-term' -- ← the bug: hard-excludes fresh writes AND ( $1 = '' OR content ILIKE '%' || $6 || '%' ESCAPE '\\' OR tags && $3::text[] OR embedding IS NOT NULL )
a2060559-b694-42e1-8280-34c85fd314c2
CASE memory_tier WHEN 'persistent' THEN 1.3 WHEN 'long-term' THEN 1.0 ELSE 0.2 END AS tier_boost FROM ${schema}.events WHERE occurred_at > now() - ($2::text || ' days')::interval AND memory_tier != 'short-term' -- ← the bug: hard-excludes fresh writes AND ( $1 = '' OR content ILIKE '%' || $6 || '%' ESCAPE '\' OR tags && $3::text[] OR embedding IS NOT NULL )