gabriel / muse public
feat patch count-objects task/supercharge-count-objects #1 / 1
AI Agent gabriel · 60 days ago · Apr 17, 2026 · Diff

feat(count-objects): add elapsed_seconds/exit_code, fix unreachable detection, fix sha256: prefix

Implementation: - Add `import time`, TypedDicts (_ShardInfo, _CountObjectsJson) - Add t0 + elapsed_seconds/exit_code to JSON output path - Fix unreachable detection bug: object IDs on disk are reconstructed as raw hex (shard + filename) but reachable set contains sha256:-prefixed IDs — comparison always failed, reporting every object as unreachable. Fix: prepend 'sha256:' when constructing full_id for the set lookup - Update module docstring with correct schema including new fields

Tests: - Fix _sha() helper: prepend 'sha256:' prefix (same bug as content-grep, commit-tree — write_object now validates the prefix) - Fixes 16 pre-existing failures caused by the missing prefix - Add TestJsonSchemaComplete (8 tests), TestElapsedSeconds (7 tests), TestExitCode (5 tests), TestUnreachableDetection (4 tests) - 45/45 passing

sha256:92c1b18d6b867dcb90c12d7fb30fb90424bd4e69fbed76b5da45e3334b37433f sha
sha256:b14a8e55ceced4726e33a2047de3311e33fccf404573145c862400a6fb20a8b9 snapshot
← Older Oldest on task/supercharge-count-objects
All commits
Newer → Latest on task/supercharge-count-objects

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:92c1b18d6b867dcb90c12d7fb30fb90424bd4e69fbed76b5da45e3334b37433f --body "your comment"