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
0 comments
muse hub commit comment sha256:92c1b18d6b867dcb90c12d7fb30fb90424bd4e69fbed76b5da45e3334b37433f --body "your comment"
No comments yet. Be the first to start the discussion.