Essay / Codebase Observatory

Seeing what a codebase actually does

Codebase Observatory brings source maps, bounded experiments and inspectable evidence together around one question about a system.

A highlighted action-to-handler path leads to a boundary and evidence inspector; unmeasured branches stay dashed.
Follow one path, test a useful question, and keep the evidence beside the explanation.

When I open an unfamiliar codebase, I want to start with a question I can answer. Did one click save one record? Where did this value change? What happens if the server completes the work but the response never reaches the browser?

A repository contains a lot of possible explanations. The challenge is finding the path relevant to the question and then establishing what happens along it.

That is the purpose of Codebase Observatory, a new investigation skill in the Navigator project. It brings a source map, a bounded experiment and an interactive evidence report together around one outcome.

Start with an expectation

A useful investigation needs a reason to expect a particular result. That can come from a documented contract, an existing test or a requirement from the person using the system.

For a Save action, the requirement might be that retrying after a lost reply preserves one record. The investigation can follow the action through the browser, request handler and storage boundary, comparing normal completion with a delayed or missing response.

The included design study illustrates that example with fictional events and demonstration timings. Its job is to explain how the report works. Establishing the behavior of a real application requires running a separate experiment against that application.

The scope follows the question. A small tool may need one path and two inputs. A larger system may need a map of several relevant areas before the same action can be traced. I want the map to help choose the experiment, rather than become the entire investigation.

Keep the explanation attached to its evidence

The report can show where an action starts, which boundaries it crosses and how a value changes. Recorded samples support replay. An evidence inspector carries source locations, captured results and reproduction commands. Terms can be defined alongside the part of the system they describe.

Each observation has a scope. Source inspection can establish that a function calls a particular dependency. A mocked experiment can establish how the inspected path behaves with the supplied substitute. A physical observation can establish something about the device and conditions actually measured.

Those forms of evidence answer different questions. The report keeps them visible together without silently upgrading one into another.

Unknown boundaries matter too. If the experiment stops at a substitute provider, the provider’s real behavior remains open. If the storage result is captured but the browser rendering is not, the display still needs checking. A reader should be able to see where the explanation ends.

The helpers capture repository and file identity, validate the case format, and render a standalone interactive report. The investigator still has to choose a meaningful experiment and interpret its result. The format gives that judgment somewhere concrete to live.

Make the next change assessable

Once the divergence is supported, a proposed change can identify the edit locations, confirmed dependencies and effects that still need measurement.

The next experiment should answer whether the change improved the outcome. Before-and-after views use independently captured results and make differences in the measurement conditions visible. A changed input or environment may be a useful experiment, but it changes what the comparison can establish.

This is the approach I want to bring to unfamiliar systems: follow one consequential path, measure a useful contrast, and make the result inspectable. It gives the person reviewing the work a way to assess both the diagnosis and the proposed intervention.

For Rage Industries, that is part of the work itself. Understanding the boundary of a change makes the implementation easier to judge and the remaining questions easier to name.

RI

From the work at Rage Industries.
Help fund the next experiment →