gabriel / musehub public
test RC-4 task/mwp-4-prebuild-after-index #2 / 6
AI Agent gabriel · 20 days ago · Jun 29, 2026 · Diff

test(RC-4): add MWP4_11 E2E and MWP4_12 stress tests — Phase 4 complete

MWP4_11: one push + real claim loop (_drain_via_claim_loop mirrors _process_one). Asserts mpack.index is claimed and completed before fetch.mpack.prebuild is ever claimed, and a MusehubFetchMPackCache row lands at the pushed tip.

MWP4_12: N=10 back-to-back pushes with no intermediate drain, then claim-loop drain. Three assertions: (a) zero prebuild claims while any mpack.index is pending/running (b) zero FetchNotIndexedError raised during drain (c) final cache covers the latest tip (mpack_ids==1)

All 12 MWP4 tests green; 32 adjacent tests green, zero regressions. Tick Phase 4 + all acceptance criteria checkboxes in issue body.

sha256:46854101acdde2a2481a7805887ac87ce91d35d23b62541b6165d4d0b480fa05 sha
+6 ~6 −1 symbols
sha256:439254975c286411d2bb705b9a8608eb7858bc158c385eb7459536b88b733b49 snapshot
+6
symbols added
~6
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 13 symbols
~ docs/issues/mwp-4-prebuild-after-index.md .md 1 symbol added, 1 symbol removed, 3 symbols modified
Phase 4 — integration + stress (real worker claim loop) section Phase 4 — integration + stress (real worker claim loop) L301–315
+ Phase 4 — integration + stress (real worker claim loop) ✅ COMPLETE section Phase 4 — integration + stress (real worker claim loop) ✅ COMPLETE L301–319
~ Phases
~ tests/test_mwp4_prebuild_ordering.py .py 5 symbols added, 3 symbols modified
+ _drain_via_claim_loop function async_function _drain_via_claim_loop L741–780
+ complete_job import import complete_job L47–47
+ process_mpack_index_job import import process_mpack_index_job L49–49
+ test_mwp4_11_e2e_claim_loop_orders_index_before_prebuild function async_function test_mwp4_11_e2e_claim_loop_orders_index_before_prebuild L784–841
+ test_mwp4_12_stress_n10_pushes_drain_with_no_ordering_violation function async_function test_mwp4_12_stress_n10_pushes_drain_with_no_ordering_violation L845–991

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