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

feat(for-each-ref): add elapsed_seconds, exit_code, current_branch to JSON output

All JSON output now carries the agent-output contract fields: - elapsed_seconds: round(monotonic, 6) — timing visible on every call - exit_code: 0 on all success paths - current_branch: HEAD branch name — agents know active branch without a separate muse status call

_ForEachRefResult TypedDict updated to declare all three new fields. Module docstring updated with sha256: prefix notation and new fields. read_current_branch imported from muse.core.store.

34 hardening tests: elapsed_seconds (8), exit_code (5), current_branch (6), compact JSON (3), sha256: prefix (4), data integrity (5), performance (3).

sha256:2165fa973571e622f87eb27fb1fd86fa46a1782792ad4e21509556e41f83cc95 sha
sha256:d911b6c36011c728d4587bc368e9802517d761a1436a6e37cc4cf18a2b6a9f3a snapshot
← Older Oldest on task/supercharge-for-each-ref
All commits
Newer → Latest on task/supercharge-for-each-ref

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