gabriel / musehub public
refactor BREAKING task/wire-commit-created-on-branch #1 / 1
AI Agent gabriel · 132 days ago · May 4, 2026 · Diff

refactor: WireCommit.branch is the canonical field name

Mirrors CommitRecord.branch — same vocabulary on both sides of the wire. Removes the _coerce_branch_field validator and the created_on_branch field entirely. _make_commit() test helper updated to emit 'branch' key. Stub _put fixed to accept **kwargs so tests survive future backend signature additions.

sha256:afeafff11b08b6b63803347fe8eeb926ee4b6596bca89bc6305dbdd2d11bbb12 sha
+4 ~5 symbols
sha256:b0034a112bec8cfde1918c7b30780059284cdfd390131247cbfa99dad98362e4 snapshot
+4
symbols added
~5
symbols modified
0
dead code introduced
Semantic Changes 9 symbols
~ musehub/models/wire.py .py 1 symbol modified
~ tests/test_wire_push_stream.py .py 4 symbols added, 4 symbols modified
+ test_wire_commit_branch_empty_by_default method method test_wire_commit_branch_empty_by_default L435–442
+ test_wire_commit_branch_populated_from_branch_key method method test_wire_commit_branch_populated_from_branch_key L427–433
+ test_wire_commit_has_branch_field method method test_wire_commit_has_branch_field L411–416
+ test_wire_commit_has_no_created_on_branch_field method method test_wire_commit_has_no_created_on_branch_field L418–425
← Older Oldest on task/wire-commit-created-on-branch
All commits
Newer → Latest on task/wire-commit-created-on-branch

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