The sages taught in the Mishnah (102b): One who builds, how much must he build to be liable? One who builds—any amount, meaning that there is no fixed measure for this. And the reason is: for so is a homeowner who has a hole in his beautiful mansion, and is fastidious about a small hole in it and plugs it; and so too in the Mishkan, when a worm fell into it and made a small hole, he would drip lead into it and plug it (Gemara). Therefore, one who levels a stone is liable, meaning that he seats the stone and levels it until it settles into the floor of the building's foundation and seats it in the ground, and even though he did not apply mortar, it is "building any amount" and he is liable (Rashi). And I am astonished that I did not find this law in the Rambam, chapter 10. And it appears to me that the Rambam interpreted the Gemara not like Rashi, as we say there: Shmuel said: One who levels a stone is liable; and it asks against him and concludes: There are three types of building—the bottom, the middle, and the top. The bottom requires leveling and earth; the middle also requires mortar; the top by mere placement. And Rashi explained that Shmuel's statement stands as it is, that for leveling he is liable, and that which it says "leveling and earth," Rashi explained as the earth around it to support it, and that is "leveling," see there. But the Rambam interprets that it rejects Shmuel's view, and for leveling alone one is not liable until he places earth upon it and it is buried within the earth, and that is a complete building and there is no need to mention it. Therefore he wrote there in law 12: If one person placed the stone and another placed the mortar, the one who placed the mortar is liable (and this is regarding the middle), and in the top layer, even if he brought up the stone and placed it upon the mortar, he is liable, etc. Thus far his words (and this is regarding the top). And he wrote further that one who builds upon vessels is exempt, see there, and this is from the Yerushalmi that we brought. And we have already explained that this is not regarding a complete building, and even though he wrote it without qualification, nevertheless it is necessary to say so as I have written, for it is no worse than the vessels themselves. (And also the Rambam, who wrote in chapter 22, halacha 26, that there is no building in vessels, holds in chapter 10 that there is building in vessels, and the distinction is as I have written, between a complete building and an incomplete one, and as the Maggid Mishneh wrote there in halacha 13, and that the Geonim wrote so, see there, and so wrote the Tosafot at the beginning of "One who builds," see there and examine carefully), and see in section 10.
שנו חכמים במשנה (ק"ב:): הבונה כמה יבנה ויהא חייב הבונה - כל שהוא, כלומר שאין לזה שיעור. והטעם: שכן בעל הבית שיש לו נקב בבירה נאה שלו, ומקפיד על חור קטן שבה וסותמו, וכן במשכן כשנפלה בה תולעת ועשה נקב קטן, מטיף לתוכה אבר וסותמו (גמרא). ולפיכך המצדד את האבן – חייב, כלומר שמושיב האבן ומצדדו עד שמתיישב בקרקעית יסוד הבנין ומושיבה בארץ, ואף על פי שלא נתן טיט - הוה בונה כל שהוא וחייב (רש"י). ותמיהני שלא מצאתי ברמב"ם פרק י' דין זה. ונראה לי דהרמב"ם היה מפרש בגמרא דלא כרש"י, דאמרינן שם: אמר שמואל: המצדד את האבן – חייב, ומקשה עליו ומסיק: תלתא בנייני הוה - תתא מציעא ועילא. תתא בעי צדודי ועפרא, מציעא בעי נמי טיני, עילאי בהנחה בעלמא. ופירש רש"י דמימרא דשמואל כדקאי קאי, דבצידוד חייב, וזה שאומר: 'צדודי ועפרא' פירש רש"י - העפר שסביב לה לתומכו, והיינו צדודי ע"ש. אבל הרמב"ם מפרש דמדחה לדשמואל, ובצידוד בלבד לא מיחייב עד שישים עליו עפר ומוטמן בתוך העפר, והוא בנין גמור ואין צריך להזכירו. ולכן כתב שם בדין י"ב: אחד נתן את האבן ואחד נתן את הטיט - הנותן הטיט חייב (וזהו במציעא), ובנדבך העליון, אפילו העלה את האבן והניח על גבי הטיט - חייב וכו'” עכ"ל (וזהו עילאה). וכתב עוד דהבונה על גבי כלים פטור ע"ש, וזהו מירושלמי שהבאנו. וכבר בארנו דלאו בבנין גמור הוא, ואף על פי שכתב סתם, מכל מקום בהכרח לומר כן כמ"ש, דלא גריעא מכלים עצמן. (וגם הרמב"ם שכתב בפרק כ"ב הלכה כ"ו דאין בנין בכלים, סבירא ליה בפרק י' דיש בנין בכלים, והחילוק כמ"ש בין בנין גמור לאינו גמור, וכמ"ש המ"מ שם הלכה י"ג, ושכן כתבו הגאונים ע"ש, וכן כתבו התוספות ריש הבונה ע"ש ודו"ק), ועיין בסעיף י'.