# Drop uploads only a deleted page's discarded work referenced · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/18385169994c3ea64a1afcb6241aeb6733d94630)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 18385169994c3ea64a1afcb6241aeb6733d94630

Requested commit: 18385169994c3ea64a1afcb6241aeb6733d94630

Commit: 18385169994c3ea64a1afcb6241aeb6733d94630

Tree: 91ba17b6bc3aecebc4861f05580bb0ba50809336

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Drop uploads only a deleted page's discarded work referenced

Leaving a deleted page drops its queued changes but left their image
uploads, and the bytes they hold, retrying later. An image placed after
the delete never got a change the server could take, so its staged
upload waited for a reference forever. Leaving now marks the strategy's
uploads for a check before their next attempt: one goes, with its
bytes, only if no queued change and no page on the server references
its image. Marks made offline wait for the connection. A check that
cannot prove the image unreferenced lets the upload go on.

Session tests now use a recording media queue: the real one had no
storage there, and nothing in them exercised it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

```

## Parents

- [3680685ca2fbccf2bd48748acc8d58c95f6c4eca](https://git.cafe/dara/icarus/commit/3680685ca2fbccf2bd48748acc8d58c95f6c4eca?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/18385169994c3ea64a1afcb6241aeb6733d94630?format=markdown)
