Status: Accepted (2026-11-28). Implements the PLAN follow-up “S3-compatible blob client” for 0010. Hosting stays cloud-agnostic (wave-3 default): AWS S3, MinIO, Versity, R2, Ceph and the GCS XML API all speak this protocol.
Snapshots went to a local directory (LINORA_BLOB_DIR), which ties every tier to one host’s disk. Production needs an S3-compatible bucket. Every reader (API snapshot route, doc workers, compactor, realtime’s structure loads) must use the same three-call interface, and no new dependency is allowed. The AWS SDK alone would add tens of MB and a large transitive tree.
@linorahq/server-common (blob/), shared by every tier:
read(key) -> Readable: emits 'ready' when open; fails with BlobNotFound (ENOENT).write(key, parts): atomic.remove(key): missing keys are fine.createBlobStore(cfg.server.blob) picks LocalBlobStore (temp + fsync + rename) or S3BlobStore. Both refuse keys outside [A-Za-z0-9._-] segments (no .., no absolute paths, at most 1024 chars).
LINORA_BLOB_STORE=local|s3 (default local).
LINORA_S3_ENDPOINT (default https://s3.<region>.amazonaws.com), LINORA_S3_REGION (us-east-1), LINORA_S3_BUCKET.LINORA_S3_ACCESS_KEY_ID, LINORA_S3_SECRET_ACCESS_KEY, optional LINORA_S3_SESSION_TOKEN.LINORA_S3_FORCE_PATH_STYLE (default on when an endpoint is given), LINORA_S3_PREFIX, LINORA_S3_PART_SIZE (8 MiB), LINORA_S3_MULTIPART_THRESHOLD (16 MiB).UNSIGNED-PAYLOAD.Range: bytes=<n>- and If-Match: <etag>, so the object cannot change underneath.Content-Encoding object metadata. Possible later; the API streams today.readBlob(createBlobStore(cfg.server.blob), key, cap) (R1).packages/server-common/test/sigv4.test.ts: the four worked examples from the AWS S3 docs.blob.test.ts, against a fault-injecting fake that verifies every signature: 500s, dropped connections, two mid-body cuts (resumed), a failing multipart part (retried), a permanently failing part (aborted). Also a real S3-compatible store with a per-run bucket.apps/docworker/test/s3-e2e.test.ts: compactor -> bucket -> doc worker -> API snapshot route, byte-identical; a missing blob gives 503.LINORA_REQUIRE_S3=1 (CI) turns a missing or unreachable store into failures, like LINORA_REQUIRE_DB (ADR 0309).