gabriel / muse public
feat patch dev
AI Agent gabriel · 58 days ago · Apr 18, 2026 · Diff

feat: supercharge muse verify-object for agent use

Source changes: - Module docstring: add duration_ms/exit_code to JSON example, add text mode summary format, add --fail-fast to agent examples - _iter_all_object_ids docstring: fix shard path (sha256/ subdir was missing) - run() docstring: add Args section documenting all flags - --fail-fast flag: bail after first failure; useful in CI to avoid scanning an entire store once corruption is detected - Reject --all + --stdin (was silently combining; now consistent with --all + positional being rejected) - Text mode: append Checked/Failed summary line at end of output

Test expansion (42 → 78 tests): - Unit: zero-byte object, OSError path, error=None when ok, object_id preserved in result, sha256: prefix on iter_all output - Integration: result ordering, checked==len(results), failed count math, dedup behavior (same OID twice = verified twice), --fail-fast (stops early, duration_ms present, --all integration), text summary line, --quiet suppresses text format, --all+--stdin rejected - Data integrity: truncated file, completely emptied file, large-object streaming (4 MiB), multiple corrupt objects all reported - Security: path traversal rejected before I/O, unicode OID rejected, symlink shard directory skipped, CRLF stripping, all errors to stderr - Stress: 1000-object --all, duration_ms bounded < 5s for small ops

sha256:d098af2a7365c3451e7e1a14f546d29ec8cc454ac4d192d9401cbf2df2473808 sha
sha256:06af717b3b896452d8bf5edda10d53ac99380b6733c3b4f0976780f4f6eb7267 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

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