feat(bundle): Phase 2 fetch readiness — content_cache on sync path for small bundles
- wire_push_unpack_bundle parses small bundles (≤ bundle_content_cache_max_bytes, default 4 MB) inline and writes musehub_objects with content_cache=raw_bytes, storage_uri='pending'. Fetch requests are served immediately from content_cache without waiting for the background job. - Large bundles (> threshold) skip inline write — sync path stays fast (pure 3-step path). - process_bundle_index_job promoted from ON CONFLICT DO NOTHING → ON CONFLICT DO UPDATE to clear content_cache and set real s3:// storage_uri when promoting pending objects. - Settings: bundle_content_cache_max_bytes (4 MB default) controls threshold. - TDD: test_bundle_fetch_readiness.py — 3 tests covering fetch-before-job, cache-cleared-after-job, large-bundle-skips-cache. Updated test_unpack_bundle_skips_msgpack.py to test the large-bundle path (threshold=0) which must remain parse-free.
0 comments
muse hub commit comment sha256:34bd73ad6978c5eef464d5d61fba07ee21487fcabe986069bbcaf6c1b6f48343 --body "your comment"
No comments yet. Be the first to start the discussion.