When the person who wrote a change is missing, stop starting the investigation with a name. Emit one wide event for each request, carrying the raw dimensions of that request, so you can ask a question you did not plan at ship time. Keep a human step in the tool's workflow, because expertise fades when people only supervise work they used to do.
Charity Majors is co-founder and CTO of Honeycomb. This episode aired in April 2025.
How do you debug code when nobody wrote it?
Start from the request in production and reconstruct the path from its event. Majors framed software engineering as solving business problems with technology. Her bias is ops: compared with maintaining, operating, instrumenting, extending, and tracking down weird bugs, greenfield writing is typically the fastest, easiest stretch of the lifecycle.
generating code is a lot easier than owning it over the fullness of time.
Charity Majors, co-founder and CTO at Honeycomb, on Chain of Thought ep 18
One pile is disposable: if people do not like it, they destroy it and generate 10,000 more. The other pile runs banks, delivery companies, and anything with transactions, and somebody has to understand it. She did not see a path, in the next five years, to banking code that nobody understands.
The familiar path looks for who changed it and who understands it. At Parse, a mobile backend with a million mobile apps, developers all over the world uploaded JavaScript snippets every day, and the team had to make all of it work.
the source of truth is what is happening right now.
Charity Majors, co-founder and CTO at Honeycomb, on Chain of Thought ep 18
Nine times out of 10, you can swap AI for automation and the sentence still holds: the same thing, only a little bit faster and more intense. Nondeterminism does not swap. A deterministic API returns the same output for the same input; a model call may not, so record the input identity, the model, and the output of that call.
What should you log so you can ask new questions later?
Store the dimensions of the request on one event, and choose the question when you read it. Majors argued that deciding, years ahead, which questions you may ask is a costly habit. She pictured every request stored in like 25,000 different places, and teams spending much more time arguing about the nature of reality than about the problem. Context is what makes data valuable: the more connected a piece of data is, the more valuable it is.
For a generated handler, put caller, release, model, prompt identity, code origin, and outcome on that event. A rolled-up error count cannot tell you which prompt hash failed after a deploy.
A minimal sketch to adapt, not a drop-in library.
def handle_request(request):
fields = {
"request_id": request.id,
"route": request.route,
"caller": request.caller,
"model_name": request.model_name,
"prompt_hash": request.prompt_hash,
"code_origin": CODE_ORIGIN,
"deploy_id": DEPLOY_ID,
}
try:
result = call_model(request)
fields["status"] = "ok"
fields["output_hash"] = hash_text(result.text)
return result
except Exception as exc:
fields["status"] = "error"
fields["error_type"] = type(exc).__name__
raise
finally:
emit_event("request.completed", fields)
Treat the dict as the field list. CODE_ORIGIN and DEPLOY_ID are set at build time, not taken from the request: the first marks a human-written handler, a generated one, or a mix. prompt_hash and output_hash group runs without storing every prompt body. deploy_id ties the event to the release. She described deploys as the grandfather feedback.
Before you merge, name the business outcome in one sentence, add the fields on the path you touched, and after a small deploy filter by deploy_id and code_origin. If the event cannot answer the question you write for the first hour, add a field.
How do you keep expertise from decaying while tools do the work?
Use a tool that shows what it sees and leaves you a step to try.
if you move from doing the work to just supervising the work, your ability goes down, like your expertise decays.
Charity Majors, co-founder and CTO at Honeycomb, on Chain of Thought ep 18
She said this is not an inevitability. The same risk has been around as long as automation.
One agent does the SRE job for you. You stop asking questions, and you get worse. The other reports what it sees and asks if you have tried a next step, so you learn service discovery, exponential backoff, retries, and paging. An agent only 20 or 30% as good as a world-class SRE is still great for the world, because most engineers do not have one, if it teaches as it works.
A generated diff you merge without stating an invariant is supervision. A diff you can tie to the event that checks the business outcome is practice.
Software systems are a big feedback loop made of smaller ones. Most amplify, so an upstream miss hits harder downstream. Observability is the loop that keeps running while the others run. Shorten code review and deploys while the change is fresh. Merge once the fields exist and a person can state the business check. If you cannot see how that deploy behaved, stop stacking changes. She said everyone tests in production, and a lot of people have denied it for a very long time, which means they have not invested in it.
FAQ
What is new if automation already changed this work?
Nine times out of 10, the claim still holds if you replace AI with automation. One new part is nondeterminism. The premise of an API, as Majors put it, is that the same input gets the same output, and a model call breaks that.
Who has to understand code that moves money or goods?
Somebody has to understand code behind banks, delivery, and other transactions. She did not see a path, within five years, to banking code that nobody understands. Disposable code is the pile you can destroy and generate again.
How do I avoid getting worse when an agent takes the first pass?
Use the agent that shows what it sees and leaves you a step to try. The one that silently does the job leaves you worse, because you stop asking questions.
Takeaway
- State the business outcome before you accept a generated change.
- Emit one wide event per request, with fields you can group on later.
- Record model, prompt identity, output identity, code origin, and deploy id.
- Keep a step in the workflow where a human practices the judgment.
- Query production for that deploy before you generate the next change.
The full conversation, with the transcript, is on Chain of Thought.
Subscribe to the Chain of Thought newsletter for new episodes and write-ups like this one.
Drafted with AI assistance from the episode transcripts.
Top comments (0)