Re-dig the WellsWhat Toldot teaches about technical debt
תולדותteam has a part of the system that used to work well and doesn’t anymore. Nobody broke it on purpose. The person who built it moved on, a few quick fixes piled up, and now everyone routes around it. In this week’s parsha Isaac goes back to the land where his father lived and finds that all of Abraham’s wells have been stopped up with dirt. A lot of what the Torah tells us Isaac did is dig them out again.
Live next to your wells. The Torah tells us what happened to the wells once Abraham was gone:
The Netziv asks how that was allowed to happen, and then why it stopped:
The wells didn’t get stopped up because the Philistines were strong. They got stopped up because Isaac lived in town and nobody was watching. Once he lived next to them, it stopped. That’s most technical debt. It builds up in the parts of the system nobody owns and nobody looks at. You can’t complain about damage when you can’t even tell who did it.
Dig before you rewrite. Isaac doesn’t go looking for new land. He goes back to the old wells:
Pirkei de-Rabbi Eliezer says the water was never really gone:
The old system usually still has the good idea in it. Before you propose a rewrite, dig. Read the history and find out what the code was protecting against. Then look at the end of the verse. Isaac keeps his father’s names. The Netziv explains why:
That’s chazakah, the claim you have because everyone has seen you holding something for years. The names carried it. For us the names are endpoints, metric names, config keys, the thing on-call searches for at 3am. Other people are holding onto them. Clean up the inside and leave the names alone.
Keep the well connected to its source. The next well Isaac’s servants dig turns up “a well of living water” (26:19). The Netziv says living water means it springs from its own source, “not drawn there through channels in the ground from the stream.” The Zohar goes further:
A well without its source is just a hole in the ground. I think about code the same way. The code is the well. The source is the understanding of why it works, which lives in people, docs and tests. When the last person who understood it leaves, you still have the code, but nothing is feeding it anymore, and the dirt starts coming in. Re-digging means reconnecting the two.
Re-digging counts. Ramban asks the question everyone asks about maintenance work:
Ramban reads the three wells as the three Batei Mikdash. Esek and Sitnah got fought over and lost. The third, Rechovot, is the one that lasts. The Torah spends a whole passage on work that earned Isaac no credit, because everything after him is built on it. That’s how I’d think about the person on your team who re-digs.
Put it on the calendar. The Mishnah turns this into a schedule. Every year, a month before Pesach:
Bartenura explains: the streets “that were damaged by the rains in the winter” get fixed for the pilgrims, and the pools, “if mud has built up in them, they clean them out.” They didn’t wait for a road to wash out. They knew winter would do damage, so the repair had a date.
Pick one well. The wells got stopped up because nobody lived next to them. The water was still there, so Isaac dug them out and kept the names. A well is only a well while it’s connected to its source. And the Torah gives this unglamorous work a whole passage.
So this week, pick one stopped-up well. A service only one person understands, a flag nobody can explain, a step everyone does without knowing why. Dig it out, keep its name, and put a date on the calendar to check it again.
Sources, continued
Isaac keeps his father’s names.
ויקרא להן שמות וגו׳. למען לא יוכלו לערער עליהם אחרי אשר כבר החזיק בם בימי אברהם בלי ערעור
‘He gave them names…’: so they couldn’t contest them, since he’d already held them in Abraham’s day without anyone contesting it. (Haamek Davar, Gen. 26:18)
The Zohar goes further.
ההוא מוצא מים וההוא בירא אינון חד, ואקרי כלא באר. דהא ההוא מקורא דעייל, ולא פסיק לעלמין, ובירא אתמלי… ודא הוא סימנא דאבהן, דמשתדלי לחפור בירא דמיא… ולית לאפרשא בין מקורא ובירא וכלא חד.
The spring and the well are one, and the whole thing is called ‘well.’ The source keeps flowing in and never stops, and the well is filled. … This is the sign the fathers left by working to dig wells of water: you can’t separate the source from the well. It’s all one. (Zohar, Toldot)
The question everyone asks about maintenance work.
יספר הכתוב ויאריך בענין הבארות, ואין בפשוטי הספור תועלת ולא כבוד גדול ליצחק, והוא ואביו עשו אותם בשוה. אבל יש בדבר ענין נסתר בתוכו, כי בא להודיע דבר עתיד
The Torah goes on at length about the wells, and in the plain story there’s no use in it and no great honor for Isaac, since he and his father did the same thing. But there’s something hidden inside it: it comes to tell us about the future. (Ramban, Gen. 26:20)
The Mishnah turns this into a schedule.
בחמשה עשר בו קורין את המגלה בכרכין, ומתקנין את הדרכים ואת הרחובות ואת מקואות המים, ועושין כל צרכי הרבים
On the fifteenth [of Adar] they read the Megillah in walled cities, and they repair the roads, the streets and the pools of water, and take care of all the public’s needs. (Mishnah, Shekalim 1:1)
Sources
What happened to the wells once Abraham was gone.
וכל הבארת אשר חפרו עבדי אביו בימי אברהם אביו סתמום פלשתים וימלאום עפר
All the wells his father’s servants had dug in the days of Abraham his father, the Philistines stopped up and filled with dirt. (Gen. 26:15)
How that was allowed to happen.
סתמום פלשתים. יושבי השדה ולא היה יכול לקבול עליהם לפני המלך באשר הוא דר בגרר ולא נודע מי עשה… וישב יצחק ויחפור. כי בהיותו יושב גם הוא בנחל על השדה ראה והשגיח על הבארות ולא יכלו עוד יושבי השדות לעשות עול
‘The Philistines stopped them up’: the people living out in the fields. He couldn’t complain about them to the king, since he lived in Gerar and nobody knew who’d done it. … ‘Isaac dug again’: because now he was living out in the valley too, he saw the wells and watched over them, and the people in the fields couldn’t do damage anymore. (Haamek Davar, Gen. 26:15, 18)
He goes back to the old wells.
וישב יצחק ויחפר את בארת המים אשר חפרו בימי אברהם אביו ויסתמום פלשתים אחרי מות אברהם ויקרא להן שמות כשמת אשר קרא להן אביו
Isaac dug again the wells of water that had been dug in the days of Abraham his father, which the Philistines had stopped up after Abraham died, and he gave them the same names his father had given them. (Gen. 26:18)
The water was never really gone.
כל מקום שהיו אבותינו הולכים, היתה הבאר מהלכת לפניהם. וחופרין שלש פעמים ומוציאין אותה לפניהם.
Wherever our fathers went, the well went in front of them. They would dig three times and bring it up in front of them. (Pirkei de-Rabbi Eliezer, ch. 35)