gabriel / musehub public
perf patch task/push-scale-testing #1 / 1
AI Agent gabriel · 37 days ago · May 10, 2026 · Diff

perf: eliminate ghost checks from presign and flush_batch — trust content-addressed DB

write-path invariant: MinIO PUT succeeds before DB INSERT is recorded. musehub_objects presence is sufficient proof — no MinIO HEAD verification needed.

- wire_push_presign: remove parallel Semaphore(64) HEAD loop; DB-present → already_stored - _flush_batch: remove sequential HEAD loop; storage_confirmed = db_present - wire_push_confirm: unchanged — client R2 upload verification is correct and necessary - Phase-C (_check_missing_objects): already DB-only, no change - test_push_presign_ghost_guard: rewrite to document new invariant (DB=truth, no HEAD) - test_push_presign_scale: new — S1/S2/S3 prove O(1) query, zero MinIO calls, <200ms

sha256:4be57596d4cb4efa4ec8be3df1875a5c715c173b499d6343c03019bd30fed75c sha
sha256:0a65772a2afdf3f63777ccae880097afa90c111860156da5d3895c05eafecc26 snapshot
← Older Oldest on task/push-scale-testing
All commits
Newer → Latest on task/push-scale-testing

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:4be57596d4cb4efa4ec8be3df1875a5c715c173b499d6343c03019bd30fed75c --body "your comment"