In his 1977 paper, Gerald Jay Sussman proposed a radical shift in how we view engineering design. Rather than seeing it as a straightforward path from requirements to implementation, Sussman argued that design is fundamentally an iterative process of "Problem Solving by Debugging Almost-Right Plans" (PSBDARP). This approach acknowledges that in complex systems, subproblems are rarely independent, and the "bugs" that arise from their interaction are a necessary part of the creative journey.
The PSBDARP Framework
At the heart of Sussman's vision is the PSBDARP system, a flowchart for which is shown in Figure 1. The system operates by attempting to match design goals against a "bag of tricks"—a library of pre-defined plan fragments and decomposition rules. When a plan is formulated, the system doesn't just execute it; it monitors for failures. If the resulting design doesn't work, the system doesn't start over from scratch. Instead, it localizes the "bug," creates a patch, and installs it, effectively "debugging" the design into a functional state.
Reasoning Through Constraints and Justifications
To implement this vision, Sussman developed EL, a system for circuit analysis that moved beyond numerical simulation toward symbolic reasoning. EL utilizes two primary mechanisms:
- Constraint Propagation: EL treats physical laws (like Ohm’s and Kirchhoff’s laws) as local constraints. When a value is known at one point in a circuit, it is "propagated" to adjacent components. This mimics how a human engineer might trace voltages and currents through a schematic.
- Dependency-Directed Backtracking: Unlike traditional AI search that undoes the most recent step when a conflict arises, EL records a justification for every deduction. When a contradiction is found, the system traces the chain of assumptions back to the specific choice that caused the error. This allows it to jump directly to the source of the problem, ignoring irrelevant intermediate steps and significantly increasing search efficiency.
The Challenge of Subproblem Interaction: The Loading Bug
A central theme of the paper is that engineering subproblems are often coupled. A classic example is the "loading" bug. An engineer might design two separate circuit stages, $N_1$ and $N_2$, each performing its function perfectly in isolation. However, as shown in Figure 2, when these stages are connected, the second stage ($N_2$) may draw significant current from the first ($N_1$), altering its behavior.
In Sussman's framework, the system initially assumes these stages are independent to make rapid progress. When the loading interaction causes a contradiction in the expected voltages, the dependency-directed backtracking mechanism identifies the independence assumption as the culprit. The system then "patches" the design, perhaps by inserting a buffer stage to isolate the two networks.
Conclusion
Sussman’s work on EL and the PSBDARP framework laid the groundwork for modern knowledge-based engineering. By treating bugs as features of the design process and providing a mechanism for justification-based reasoning, he moved AI closer to being a true partner in the engineering process. While the original system was limited by linearity and manual knowledge engineering, its core philosophy—that design is a teleological, goal-oriented process of synthesis and debugging—remains a cornerstone of AI research in engineering.
Summary updated