Video · Lecture notes · Slides

Open a mature repository and you may find a branch that looks redundant or a compatibility layer that seems safe to remove. Find the commit that added it and you may discover that the branch keeps old sessions recoverable, or that the layer lets a dependency change without rewriting its callers. An architecture diagram shows how the pieces fit today. The history shows what made them fit that way.
1. Why an aircraft elevator still needed a ramp
A sailing ship depends on the wind and on a crew that knows how to work the rigging. Steam power gave crews more control over their voyages and introduced its own demands for fuel, water, and maintenance. USS Langley, converted from a coal ship, gained a flight deck. It also needed ways to land aircraft, clear the deck, stow planes, and bring them back up. The elevator still stopped above the old deck, so a ramp and crew work were needed to complete the transfer. On a carrier such as USS Midway, the flight deck, hangar, propulsion, and support spaces had to be planned together.
The ships illustrate how a change in purpose changes the organization of a system. An elevator can do its job and still leave a gap at the handoff. DeepSeek Harness, or dsh, faced similar handoffs as it grew from a working agent loop into a plugin platform. Replay, tool cancellation, and UI extension each exposed assumptions in the original interfaces.
2. Where the cost of a change falls
Linux organizes scheduling policies into scheduling classes. When CFS replaced the earlier scheduler, the policy boundary helped the kernel accommodate an algorithm change. Python's migration from version 2 to 3 put more of the cost on callers. The interpreter could revise the semantics of text and bytes, while applications and their libraries still had to migrate from behavior they already depended on.
Kubernetes controllers repeatedly compare desired state with observed state and act on discrepancies. A controller can restore a missing replica, while other controllers can use the same pattern to manage different resources. Moving the Docker Engine adapter outside the Kubernetes core let the core rely on a common runtime interface. An extension point pays off when it contains a real source of change. If its assumptions turn out to be wrong, the extension layer becomes part of the migration.
3. From a small implementation to the next version
Each repository version can be treated as a state. A fix, feature, refactor, or maintenance commit moves the code to another state with obligations of its own. Small systems such as Linux 0.11 and xv6 make the basic mechanisms visible. Following a feature across versions explains why the current system needs layers and exceptions that the smaller one could omit.
SWE-bench turns one kind of transition into a repeatable experiment. A model receives a repository snapshot and a real issue, produces a patch, and has the result evaluated by tests. The issue and tests define the assignment. Decisions about when to replace a subsystem or where to allow for future features may only pay off several changes later. Original SWE-bench benchmark
A proposed taste-bench would examine that longer horizon. Start with two patches that satisfy the same tests, then compare readability, scope, and maintenance costs. Give both implementations a follow-up requirement and see how much each needs to change. A design that looked economical on the first task may turn out to have put the boundary in the wrong place.
4. How DeepSeek Harness records its decisions
The early dsh commits show the model adapter, session, tools, and agent interfaces taking shape around a minimal working loop. Persistence, cancellation, and cleanup gave the runtime more obligations. The browser UI later gave plugins a common surface to extend through the DOM and slots. Early dsh commit history
A smaller change concerned the system prompt. Keeping it in a request header worked for sending an individual request. Once a conversation could change prompts partway through, replay needed to know where that change had occurred. The new requirement pushed prompt changes into the session history. An RFC records the proposal and alternatives. An architecture decision record, or ADR, preserves the choice and its rationale. Agent Notes carry context into subsequent work.
Atomic commits give reviewers one logical change at a time. Worktrees let separate PRs be developed and tested independently, and dependent changes can be stacked. Some Git state is still shared. Installing hooks from one worktree can affect others. A linear history helps when reading commits in order, while a rebase can cause dependent branches to rerun CI.
The project checks several levels of behavior. Per-file coverage thresholds expose unexecuted cleanup branches. Recorded model responses let a session replay compare events and output under repeatable conditions. Installing a release package can reveal a missing worker or asset that was present in the source tree. When a failure yields a repeatable check, it can become part of the project's quality gates. dsh quality gates
5. What counterexamples leave undecided
A type checker can catch a call site that still uses an old interface or a string identifier used in the wrong role. A pairing record can flag a change to one language version of a document that has yet to reach the other. Whether the revised instructions convey the same procedure still depends on the text. Each rule has a detection scope and a maintenance cost.
Counterexample-guided inductive synthesis (CEGIS) refines a search by testing a candidate and feeding back a case it fails. Correcting a model can have a similar shape. Tell it to leave garlic out of scrambled eggs with tomatoes and it may put “no garlic” in the title. Keep supplying exclusions and the heading can grow longer without making the recipe feel any more natural.
An experiment in learning someone's email replies ran into this difficulty. Short replies were sometimes plausible, while longer ones remained unreliable as the guidelines accumulated. An email archive preserves the words that were sent. It rarely records why the writer elaborated, left something out, or asked a follow-up question. An AI collaboration trace can preserve some of those choices and corrections. Commit history can do the same for software, giving the next person enough context to reconsider a decision when the requirements change.
