persist: blob backend — store the ref/CID, never the bytes + 14 tests
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

blob.sx: a blob ref is {:cid :size :mime}; the blob store is a separate
injected dependency (perform in prod, mock content store in tests).
persist/blob-store puts bytes and returns only the ref; bytes live in a
content-addressed store (artdag/IPFS). Tests assert refs in log/kv never carry
the bytes + content-address dedup. 105/105.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-06 19:11:48 +00:00
parent 90c2a57975
commit 1c7b602978
6 changed files with 195 additions and 7 deletions

View File

@@ -13,4 +13,5 @@ _Generated by `lib/persist/conformance.sh`_
| snapshot | 11 | 0 | 11 |
| compaction | 11 | 0 | 11 |
| durable | 15 | 0 | 15 |
| **Total** | **91** | **0** | **91** |
| blob | 14 | 0 | 14 |
| **Total** | **105** | **0** | **105** |