gabriel / musehub public
test mwp-1 task/mwp-1-generation-authority #2 / 11
AI Agent gabriel · 25 days ago · Jun 29, 2026 · Diff

test(mwp-1): Phase 5 — end-to-end regression proof (MWP1_14)

MWP1_14 proves the clone-after-push staleness is gone end-to-end:

1. Push C1/C2/C3 individually — each gets the correct generation. 2. Delete C3 from CommitGraph — simulates the RC-1 backfill gap that caused the staleness bug (parent in musehub_commits but absent from musehub_commit_graph). 3. Push C4 (parent C3) — Phase 2 backfill restores C3=gen 2, C4=gen 3. 4. Clone with want=[C4], have=[] — asserts all 4 commits (C1–C4) and C4's blob are in the assembled mpack.

WITHOUT the fix: C4 gets gen=0, the range scan (gen <= 0) misses C2 and C3, so the clone is incomplete. WITH the fix: C4 gets gen=3, all 4 commits are in the range and the clone is complete.

All 13 MWP1 tests GREEN.

sha256:1aca297eaa71ac4ab5bd77dcedeb4bf3bd1a1cb1a13fb058ade9fc3233d090a8 sha
+12 ~2 symbols
sha256:91d8aa5faf9e468d106884294a77bb32fb1d2191010e16454b8709f5de994258 snapshot
+12
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 14 symbols
~ tests/test_mwp1_generation_authority.py .py 12 symbols added, 2 symbols modified
+ _InMemBackend class class _InMemBackend L158–188
+ __init__ method method __init__ L166–167
+ get method async_method get L181–182
+ get_mpack method async_method get_mpack L172–173
+ presign_get method async_method presign_get L184–185
+ presign_mpack_get method async_method presign_mpack_get L175–176
+ put method async_method put L178–179
+ put_mpack method async_method put_mpack L169–170
+ quarantine_mpack method async_method quarantine_mpack L187–188
+ _sa_delete import import _sa_delete L36–36
+ parse_wire_mpack import import parse_wire_mpack L40–40
+ test_mwp1_14_end_to_end_push_clone_push_clone function async_function test_mwp1_14_end_to_end_push_clone_push_clone L874–1041
~ select

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