Notification TTL cleanup: deletes terminal agent-inbox
rows from mastra_notifications once their updatedAt is older than the TTL,
at the storage layer so alarm maintenance reaps them without a live agent —
the same posture as the other purges (raw D1 binding, failure-isolated duty).
updatedAt is ISO-8601 TEXT, so lexicographic < is a correct timestamp
comparison. A missing table reads as zero (notifications may never have been
sent). Scheduling stays with the caller.
Notification TTL cleanup: deletes terminal agent-inbox rows from
mastra_notificationsonce theirupdatedAtis older than the TTL, at the storage layer so alarm maintenance reaps them without a live agent — the same posture as the other purges (raw D1 binding, failure-isolated duty).updatedAtis ISO-8601 TEXT, so lexicographic<is a correct timestamp comparison. A missing table reads as zero (notifications may never have been sent). Scheduling stays with the caller.