1. The Almost-Right Machine

I do not remember exactly what I asked for. I remember what I was building, and I remember that the answer came back in less than a minute.

The task was the unglamorous part of a benchmark. My team was planning a framework to evaluate how well large language models translate programs from C into Java, Python, and Rust. Before a single translation could be scored, we needed a dataset that deserved the name.1 The raw material was a public corpus of fourteen million programs, most of them useless to us: no problem statement, too few working solutions, no tests. Preparing it meant throwing most of it away, measuring what remained, going back to the sites where the problems were first posted to recover their test cases, matching those tests to problems when the identifiers did not line up, and generating new tests where there were too few.

None of this is hard. All of it is work: the kind that takes an afternoon of care and then a week of fixing small issues. I have been building benchmarks for twenty-five years, and I know what that week feels like. I sat down to write it, and instead I described it to a coding assistant, mostly to see what would happen. It came back, more or less whole, in less time than it takes to read this page.

 

I read it the way I read a student’s code: quickly first, to see the shape, then slowly, to see the decisions. The shape was right. The filtering was there, the metrics were there, the retrieval and the matching and the generation were there, in an order I would have put them, with names I could have chosen. It ran, it produced files, and the files looked like a dataset.

It was not right. It was almost right. I would come to understand that those are different things. Wherever I had been unambiguous, it did what I asked. Wherever I had left something open, and I had left more open than I realized, it had decided for me, quietly, and moved on. It assumed an input format I had not specified. A threshold I had described in words was set to a plausible but wrong number. A case I had not mentioned, the problem whose known-good solutions disagree with each other, was handled by not being handled.

It took me a few minutes to find these things and a few more to fix them, and I could do both only because I had done this by hand enough times to know where such code goes wrong. I knew which lines to read slowly. That knowledge is not written anywhere: it is what twenty-five years had actually produced, and until that afternoon I hadn’t thought of it as separate from the ability to write the code myself.

Then I kept working. This is the part of the scene I want to get right, because it would be easy to read it as a story of fear, but it wasn’t. I spent the rest of the day handing the assistant other pieces of the pipeline, harder ones, to see where it would break. I was curious. In a plain sense, it was fun. Only weeks later did I notice what had been happening to me while I was doing it.

* * *

Here is what had been happening. For a quarter of a century, my professional identity had rested on being the person in the room who understood the system best, and specifically on being the person who could tell whether a system deserved to be trusted. Dependability benchmarking, fault injection, robustness testing, security assessment: the tools differ, but every one of them is a way of finding the gap between what a system claims and what it does. I had built a career, and a good deal of a self, on being hard to fool.

In under a minute, something had generated the thing I had planned my afternoon around: not a toy version of it, but the thing. That is an inferiority experience by any reasonable definition, and I want to use the phrase deliberately. A Viennese psychiatrist who died in 1937 spent his life on that feeling, on what it is and on what it does to people, and the third essay in this book gives him his due. Here I want only to describe the feeling accurately, because most of what is written about engineers and AI describes everything except it.

The usual writing is economic. AI is a force multiplier or a displacement machine. It will free engineers for higher-level work, or it will deskill them. Here is a productivity study. Here is a labor-market model. None of it is about the moment at the keyboard, and yet every engineer has had that moment, whether or not they would say so. The staff engineer who watched a junior colleague’s pull request arrive complete and correct and could not tell how much of it the colleague understood, but approved it anyway. The researcher in my own community, one I respect, who dismissed the tools a little too quickly and a little too confidently, in a way that sounded less like a judgment than a reflex. The graduate student who stopped raising her hand, not because she had fewer questions but because the machine answered them first and she could no longer tell whether hers were good. Me, on the harder days, thinking about retirement as an exit rather than a decision.

Pretending the feeling is not there is its own kind of avoidance. So: it is there. It was there that day, underneath the curiosity, and it is there now, as I write this, since the tools have only improved. The question this book asks is not how to make it go away. It will not go away, and the feeling itself was never the problem.

* * *

The word I keep returning to is almost.

Wrong is easy. Wrong does not compile, or it crashes, or it returns a number that is obviously absurd, and you throw it away and lose nothing but a minute. Right is easy too, or at least it is cheap: you keep it and move on. The engineering profession has more than a century of practice at sorting wrong from right, and most of our tools, from the compiler to the test suite to the code review, are instruments for doing so.

Almost right is a third kind, and it is the one that costs. Almost right runs. It produces output of the expected shape. It passes the tests, especially when the same model wrote them. Somewhere inside, it made a decision you didn’t ask for and weren’t told about. There is no author to ask what it was. There is only behavior, and the behavior looks fine until the input you did not think to try.2

I want to be careful here. The models are not uniquely bad at this. Human beings write almost-right code all the time, and every senior engineer has shipped some. What is new is the ratio. The mechanical work, the part that used to be wrong in obvious ways, now comes back clean, and what remains is almost entirely of the third kind. A tool that is right ninety-five times in a hundred and almost right the other five is a tool that produces, per hour, more almost-right code than any human team could, wrapped in the same idiom and the same confidence as the right code, with no flag on any of it.

I will say this once, plainly. An artifact produced without an intent behind it will be almost right, however good the producer gets. The models will improve, the ratio will shift further toward the clean, and the residue will still be of the third kind, because the residue is not a failure of capability. It is the shape of authorless work.

This is the almost-right machine. It is not a bad machine. It is the best colleague I have ever had for a certain class of work, and I use it every day. But it has shifted the discipline’s entire weight onto a single skill: the ability to look at something that appears finished and know where to look for the decision made without you. That skill is what my twenty-five years had actually been building. The afternoon of the dataset was the first time I could see it separated from the skill it had always been attached to.

* * *

That is why the fix was cheap, but I must be exact about what that means: the fix was cheap for me in that context. The distance between what the machine produced and what I needed was a distance I could cover on foot, in minutes, because I had walked that ground before. For someone who had not, the same distance is not a walk. It may not even be visible as a distance. The code runs, the files exist, the dataset looks like a dataset. Nothing in the artifact tells you that the threshold is wrong, and if you have never set that threshold yourself, you have no reason to doubt the number you see. So the inferiority experience at the keyboard splits into two very different situations, and the difference is not the feeling, which is the same in both. The difference is what the person brings to the almost.

Not long after the experience with the dataset, I taught a graduate course built on the premise that the almost is now the job. Eight students in three teams spent a semester building real systems with AI required at every stage of the lifecycle: a video production pipeline, a healthcare scheduling platform, a browser-based music studio. More than ninety percent of their code was generated. They were not graded on features. They were graded on what they could show their systems could and could not be trusted to do.3

Late in the term, during a week in which teams injected deliberate faults into their own systems to see which checks would catch them, one team found something they had not expected. It was a piece of generated code in the video pipeline. Its function names, comments, structure, and metadata all said it implemented three features. One of them, a toggle that was supposed to seed continuity between generated clips, was recorded faithfully in the metadata, and then never forwarded to the API that would have used it. The code claimed the feature, logged it, but did not implement it, and every check the team built said it was fine.

At the end of the semester, one of the students on that team wrote this, in answer to a question about what the course had taught them:

I have read a lot about AI and software, and that is still the best sentence I know on the subject. A student wrote it at the end of one semester.

When we asked the students how many of their defects the trust framework had caught that nothing else would have, the one who estimated fewest was the one with the most years in industry. The framework had done for the others what experience was already doing for him. That is not an argument against the framework. It is a measure of how much the years are worth, and of how few people have them.

What the student had that I did not, at the keyboard, was a course designed so that the almost could not be walked around. What I had that the student did not was the twenty-five years. We arrived at the same place by different roads, and the place is what matters: a person who looks at a finished-seeming artifact and asks, first, what decision was made in here without me. The simplest name for that person is the one the profession has always used: she is an engineer.

* * *

Two things hold for the rest of this book. The first is the law: the machine will stay almost right, however good it gets. The reader waiting for a version they can trust is waiting for the impossible. The second is that the feeling will stay too. Every engineer whose identity was built on being good at this will keep meeting a machine that is better at the part they were good at, and will keep having, quietly, the experience I had that day. The tools will not stop provoking it, and no amount of seniority will protect you. The more you have built on the skill, the harder the encounter.

What is not fixed is the response. The essays that follow are about that: about the three ways the response goes wrong, about what it is that the discipline now asks of a person before it asks anything technical, about how to build the kind of engineer, and the kind of classroom, and the kind of team, that turns the almost into evidence rather than into a place to hide. Underneath it all is one question, which I will state now and keep asking: is what I am building, and how I am building it, driven by contribution, or by compensation for insecurity?

You have had a similar day, or you will. Something you were good at will come back to you finished, in less time than it takes to read a page, and you will read it quickly to see the shape, and then, if you are the kind of engineer this book is for, slowly, to see the decisions. What you feel in that second reading is what this book is about. What you do about it is what the rest of it is for.

 

The machine was almost right. What I did next was the only part of that day that was mine.