gabriel / muse public
feat patch object-store task/object-store-algo-dir #1 / 2
AI Agent gabriel · 62 days ago · Apr 18, 2026 · Diff

feat(object-store): algo-dir layout + iter_stored_objects canonical walker

- object_path() now returns objects/sha256/<shard>/<rest> — algorithm is a directory component, mirroring the sha256: prefix on object IDs - Add iter_stored_objects() — single canonical walker replacing six inline iterdir loops across gc, maintenance, verify_object, prune, count_objects - _object_path_with_fallback() retains 2↔4-char shard-prefix migration only; legacy no-algo-dir layout support removed entirely - cleanup_stale_object_temps() updated for the 3-level structure - Fix restore_object empty-object comparison (sha256: prefix was missing) - All six callers (gc, maintenance, verify_object, prune, count_objects ×3) replaced with iter_stored_objects; no inline iterdir loops remain - Test helpers that manually constructed legacy paths updated to use write_object/object_path; legacy test classes removed

sha256:41df9d174a062c036619a5afbd7f4653788d8b2db013ce19213d2ece2c47b0f4 sha
sha256:e854e88b072a276a8ed1c1d42f3e9e2ea2d80ee63a7cf0d7e0bd325bc4560730 snapshot

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:41df9d174a062c036619a5afbd7f4653788d8b2db013ce19213d2ece2c47b0f4 --body "your comment"