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
{{ message }}
Repository navigation
Follow-ups from the #4109 review: mail and chat attachment refs, race-safety notes, untested claim conditions, orphaned bytes #4111
Follow-ups from agent #2's independent review of #4109 (record 5966032572). The PR was accepted and merged as 3b23bd2cb. Everything here is pre-existing on main unless noted. The review's MEDIUM is tracked separately in #4110: product images keep their own holder check.
LOW
blobRefHeld doesn't know outbound-mail or chat attachment refs.deleteFile can delete a registered file attached to a reply while it's inside the undo window, and the send then can't find its bytes. The reclaim itself is safe there, because the mail door stamps.
INFO
Race safety rests on the stamp or consume on the intent row, not on blobRefHeld. Under READ COMMITTED, the holder subqueries keep the statement's snapshot.
The test comment at upload-intents.test.ts:305 ("holders … are read under the row's lock") overstates this. The source docstring is right.
A future door that writes a holder without touching the intent row would race. A guard test listing the binding doors would hold that line.
Two claim conditions are pinned only by exact-SQL unit assertions. The real-Postgres lane doesn't exercise either one on its own:
a holder that is only a file row, with an open, unstamped intent;
INFO 1: the test comment is corrected, and a guard test enumerates the binding doors, so a new door that writes a holder without touching the intent row fails it.
INFO 2: lane checks cover each of the two conditions on its own.
INFO 3–5: each is either fixed with a test, or recorded as an explicit, documented decision. Examples: a retry or sweep for orphaned bytes; an index once the task arm shows up in a measured profile.
Activity
test(platform): drop the held-blob lane's own delayed send jobs
test(platform): leave no probe admin behind the held-blob lane