You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blob_gc.py:47 calls _has_active_lease(conn, blob_hash) which queries SELECT 1 FROM pending_blob_refs WHERE blob_hash = ?. This table exists in the schema DDL (schema_ddl_archive.py:315-320) but no code anywhere inserts rows into it. The lease safety mechanism always returns False, meaning GC could delete blobs that are mid-ingest.
The MIN_AGE_S = 60 guard and generation tracking provide defense-in-depth, but the primary lease mechanism is non-functional.
Acceptance criteria
Blob references are registered in pending_blob_refs before ingest and removed after successful ingest
_has_active_lease() correctly identifies blobs with active ingest operations
GC cannot delete a blob while an ingest is in-flight
Lease entries are cleaned up on daemon restart (stale leases)
Activity
Sinity commentedon May 3, 2026
Consolidated into #771 (operational safety). The GC lease gap and connection profile findings are now in #771's body.