fix: normalize MUSE_PROMPT_HASH to sha256: prefix at commit boundary
Add _normalize_prompt_hash() in commit.py: accepts bare 64-char hex (adds sha256: prefix via long_id) or an already-prefixed sha256:<64-hex> value (passes through unchanged). Any other input — including short strings like 'abc123' — is rejected and stored as empty string.
Three tests written first (TDD): bare hex gets prefixed, already-prefixed unchanged, invalid string stored as empty. All 97 commit tests pass.
sha256:1def881ee8aec0d990c12ff2ab8f4ad28e17060a561cd35fa67bdba461fa49e9
sha
sha256:bb3027ed397b69d345ff99a6ea99ff0791755ae162bc616fd37584d593098193
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:1def881ee8aec0d990c12ff2ab8f4ad28e17060a561cd35fa67bdba461fa49e9 --body "your comment"
No comments yet. Be the first to start the discussion.