Fallen Sukkah

בסוכות: הָרַחֲמָן הוּא יָקִים לָנוּ אֶת סֻכַּת דָּוִד הַנּוֹפֶלֶת.

Grace after meals on Sukkot

On Sukkot: Merciful One, raise up for us the fallen Booth of David.

Why is this verse in the harachaman section of grace during Sukkot? Where does this idea of David's fallen booth come from?

(יא) בַּיּ֣וֹם הַה֔וּא אָקִ֛ים אֶת־סֻכַּ֥ת דָּוִ֖יד הַנֹּפֶ֑לֶת וְגָדַרְתִּ֣י אֶת־פִּרְצֵיהֶ֗ן וַהֲרִֽסֹתָיו֙ אָקִ֔ים וּבְנִיתִ֖יהָ כִּימֵ֥י עוֹלָֽם׃

(11) In that day, I will set up again the fallen Booth of David: I will mend its breaches and set up its ruins anew. I will build it firm as in the days of old,

What day exactly is Amos referencing? What is significant about it? What is the meaning of the fallen Booth of David?

(א) ביום ההוא. כאשר יתמו הפושעים: (ב) אקים וגו׳. ר״ל אחזיר המלוכה לבית דוד אשר נפלה והושפלה בימי הגולה: (ג) וגדרתי וגו׳. את הפרצה שהיה בה אגדור או ר״ל אז לא ימלוך מלך אחר על אפרים להיות פרצה מה במלכות בית דוד: (ד) והריסותיו. מה שהיה הריסה במלכות בית דוד כל ימי הגולה שלא מלכו כלל הנה אז אקים אותה ואבננה להיות בנוי ומתוקן כימי עולם ר״ל כמו שהיתה מאז בימי דוד עצמו:

On that day-When they purify their sins.

I will raise-I will return the kingship of the House of David that fell in the days of the exile.

I will mend-the breach that was in it, no other king of Ephraim will rule, for there was a breach in the kingship of the House of David.

And the ruins-the ruins of the kingship of the House of David during the days of the Exile when they didn't rule at all. Behold, I will raise it and build. It will be built and prepared for eternal days. It will be like the days of David himself.

What does Israel need to do to initiate the return of the House of David? What "breach" is repaired by Israel's actions?

(א) ביום ההוא אקים את סוכת דויד הנופלת, תחלה היה בית דוד בנוי ומשוכלל בבית קבוע, משתלשלת בבני דוד מדור דור, ואח"כ לא היה בית קבוע רק סוכת ארעי וזה היה בבית שני שנבטלה מלכות בית דוד, ומלכו החשמונאים והורדוס, ובכ"ז היו עדיין נשיאים מזרע בית דוד שזה דומה כסוכה עראי, ואח"כ נפלה גם סוכת דוד, כי בגלות החל הזה בטלו גם הנשיאים ואין זכר ונשיאות לזרע בית דוד, ואז יקים ה' סוכת דוד, היינו שיעמוד איש מזרע בית דוד וינהיג את העם כהנהגת הנשיאים... ר"ל שינהיג אותם ויכוף אותם לעשות משפט וצדקה, שבזה תקים סוכת דוד שהיא הנשיאות מזרעו, אבל עדיין תהיה הסוכה מהורסת, אבל אח"כ יקבלו ישראל מלכות שמים ויקבלו הנהגתו ברצון...גדרתי את פרציהן ע"י שיוגדרו פרצות הדור עי"ז הריסותיו אקים, ותהיה הסוכה שלמה לא מהורסת... ואח"כ תתגלה מלכות שמים כמ"ש ואני ה' אהיה להם לאלקים ואז ועבדי דויד נשיא בתוכם, שהוא יהיה מלך המשיח, ואז לא תהיה סוכת ארעי רק בנין קבוע, ועז"א ובניתיה כימי עולם שתהיה מלכות קבועה כמקודם:

On that day I will raise up the fallen sukkah of David-At first, the House of David was built and was an established house, the House of David was a chain from generation to generation. Later, it wasn't an established house it was only a temporary booth. This was during the Second Temple period that nullified the monarchy of the House of David when the Hasmoneans and Herod ruled. Yet there were still princes from the seed of the House of David and this was like a temporary booth. Afterward, the Booth of David also fell because in the Exile the princes were also nullified and there was not even a memory of the princeliness.

When the text says "God will raise the Booth of David" it means that a man will arise from the seed of David and lead the people like the princes led....This man will awaken them and lead them to enact justice and righteousness. Through (these acts) I will raise the Booth of David for this princeliness will come from his seed. But, the booth is still in ruins. Afterward, Israel will receive the leadership of the Heavens (God) and they will receive this leadership willingly...

I will set up it's ruins anew-and the Complete Booth will not be damaged...and then the booth will become a permanent building.

I will build it like the days of old-The kingship will be permanent as it was originally.