fix(sync): robust blob handling, op validation and quarantine

- upload_blob resumes until the server confirms the blob (202/409 are not success)
- missing local blob skips its PutAsset instead of blocking all later ops
- failed blob downloads are counted and retried, not fatal to the cycle
- server validates pushed ops (hash, hlc, clock skew) and returns per-op rejections
- pulled ops that can never apply are quarantined; storage errors stay fatal
- SYNAPSE_MAX_CLOCK_SKEW_MINUTES; document Arc<Mutex<Graph>> handle for the FFI

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-10-21 14:38:58 +02:00
1 parent 3266ddda3a
commit 9ce35f90ff
11 files changed
+433 -52

No files matched your search

+2
View File
@@ -11,6 +11,8 @@ SYNAPSE_AUTH_TOKEN=
SYNAPSE_UPDATE_TOKEN=
# Update script run by the endpoint (default /opt/synapse/scripts/update.sh)
SYNAPSE_UPDATE_SCRIPT=
# Reject pushed ops whose clock is more than this many minutes ahead of the server (default 10)
SYNAPSE_MAX_CLOCK_SKEW_MINUTES=
# Log format: text (default) or json
SYNAPSE_LOG_FORMAT=
# Log filter, e.g. info,synapse_server=debug