gabriel / muse public
feat patch task/timing-utility #1 / 1
AI Agent gabriel · 161 days ago · Apr 18, 2026 · Diff

feat: extract start_timer utility; add elapsed_ms/exit_code to verify commands

- Add muse/core/timing.py with start_timer() — replaces the inline t0/lambda pattern duplicated across every agent-facing command - Wire elapsed_ms + exit_code into verify-commit --json (per-commit line) - Wire elapsed_ms + exit_code into verify-object --json (top-level object) - Add elapsed_ms/exit_code assertions to both test suites (109 total)

sha256:6d6a473aaf0645308f13cc93b10e43caccb902e25a2085970624ec1f2b6345ef sha
+10 ~4 symbols
sha256:fc65652d006c36d4bccf4af4861f083a13897e4366fa159e19d02446d710241c snapshot
+10
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes 14 symbols
~ muse/core/timing.py .py 4 symbols added
+ Callable import import Callable L20–20
+ annotations import import annotations L17–17
+ time import import time L19–19
+ start_timer function function start_timer L23–38
~ muse/cli/commands/verify_commit.py .py 1 symbol added, 1 symbol modified
+ start_timer import import start_timer L69–69
~ run
~ muse/cli/commands/verify_object.py .py 1 symbol added, 1 symbol modified
+ start_timer import import start_timer L82–82
~ run
~ tests/test_cmd_verify_commit.py .py 2 symbols added, 1 symbol modified
+ test_elapsed_ms_and_exit_code_in_json method method test_elapsed_ms_and_exit_code_in_json L661–672
+ test_exit_code_nonzero_in_json_on_failure method method test_exit_code_nonzero_in_json_on_failure L674–680
~ tests/test_cmd_verify_object.py .py 2 symbols added, 1 symbol modified
+ test_elapsed_ms_and_exit_code_in_json method method test_elapsed_ms_and_exit_code_in_json L274–284
+ test_exit_code_nonzero_in_json_on_failure method method test_exit_code_nonzero_in_json_on_failure L286–292
← Older Oldest on task/timing-utility
All commits
Newer → Latest on task/timing-utility

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