Netflix's Log Model Answers With Two Line Numbers
Signals is my occasional pick of engineering writing worth your time, with what I make of it. This one covers the last two weeks.
Netflix’s Log Model Answers With Two Line Numbers
When the answer is already in your data, have the model point at it instead of writing it out. Netflix’s failure-diagnosis system does exactly that: asked for the real error in a failed job’s logs, its model returns two line numbers and never the error text.
Netflix’s data platform sees roughly 100,000 failed workloads on peak days. Its older system, Pensive, matched them against regular expressions and hand-written rules. Over one three-month stretch, about half of its roughly seven million classifications came back “unknown”.
Pensive AI numbers every log line before sending the log to the model. The model answers with the first and last line of the error, and Pensive copies that span from its own copy of the log. The answer is two integers whether the error runs three lines or three hundred, so the model can pick the wrong range but can’t put words in the log. Netflix’s other reason is speed and cost: generating output is much slower than reading input. Public price lists show the gap; Anthropic’s, for one, charges five times as much for output tokens. Netflix now extracts an error for every failure, including the ones the old rules called unknown.
The rest of the design limits what the model can break:
- The old rules still run on every failure. Each AI call has a deadline set well inside the 90 seconds the workflow orchestrator allows. A late call is dropped, and the rule-based answer ships.
- The old rules double as test labels. A change to Pensive AI can merge only if the AI still finds the errors the rules found. The tests replay logs archived when the job failed, so a score change points to the code change, not to logs that aged out of retention.
- Full diagnosis runs on demand. Root-cause analysis can take a minute, so it runs only when someone opens a failure. The result is cached, so the next person or agent gets the same answer for free.
None of this needs Netflix’s scale. Wherever the answer sits in the input (a log line, a contract clause, an invoice field), ask the model for its location and render it from your own copy. Calls get cheaper, and the worst case becomes a wrong pointer you can check instead of a plausible stack trace nobody wrote. The approach ends where the model has to decide rather than locate. Netflix plans to let AI choose whether a failure is worth retrying, and the team holds that to a higher standard, because wrongly marking a recoverable failure as permanent turns it into a hard failure.
If you are replacing a rules engine with a model, keep the rules. On day one they are your fallback and your test set.
Source: Making Failure Diagnosis Reliable with Pensive AI — Praneeth Yenugutala and colleagues, Netflix Tech Blog, October 26
At 200 PRs a Month, Each Bug Becomes a Reviewer Rule
Neil Kakkar went from 8–20 merged PRs a month at Bloomberg and PostHog to more than 200 at Tano, a 10-person AI-native startup where an agent is usually the only reviewer. His essay, which won The Pragmatic Engineer’s essay challenge, lists what that cost:
- An agent multiplied amounts by 100 for the Bahraini dinar, which has 1,000 minor units.
- A blocking migration on a 6-million-row table stopped ingestion and broke deploys.
- A migration that skipped guardrails paid some creators twice.
Each new failure becomes a rule for the review agent, which now rejects blocking migrations on the largest tables. What a quick follow-up fix can’t restore is shared context. Almost nobody reviews anyone else’s PRs, so one person holds each area. Kakkar calls breaking things a trade-off his team is willing to make. In his afterword, Gergely Orosz warns that a company whose business already works has more to lose.
Source: How software engineering is changing: a tale of two eras — Neil Kakkar, The Pragmatic Engineer, November 3
The Agent-Built App Ran. The Build Kept Going Red.
Rachel Laycock of Thoughtworks argues that experienced developers hold back on agents because they know a system that has been built isn’t yet a system that works in production. In a Thoughtworks experiment, agents wrote all the code for an airline app. The people spent about two-thirds of their time at the whiteboard and a third on the harness of tests, contracts and pipeline checks. The app ran, but the build was frequently red, and a build that’s red that often stops telling you anything. She ties this to DORA’s 2025 finding that AI adoption now goes with higher throughput but lower stability.
Separately, Titus Winters told The Pragmatic Engineer that engineers at other companies see outages up about 30%, with the number of features shipped flat. Kakkar’s habit of shipping a quick fix instead of rolling back works until a system has no fast way back. Laycock’s advice to leaders: don’t push cautious engineers to go faster; put them on the team working out which practices still hold.
Source: Why are good developers so wary of agentic development? — Rachel Laycock, martinfowler.com, October 29
AI On-Call Tools Investigate; People Still Approve the Fix
Incident rate is change rate times the chance that any one change breaks something. The Pragmatic Engineer’s look at “AI SRE” tools starts there: agents have roughly doubled PR frequency at many companies, and data from the incident-management vendor Rootly shows out-of-hours pages nearly doubled. The article finds these tools mostly help with the first minutes of an investigation, so the on-call engineer joins to a summary instead of eight open tabs. In-house builds show where companies draw the line. Google’s ProdAgent never writes code and only suggests tools it has been given, like restarting a task, with policy checks and audit trails. OpenAI’s Sevbot proposes fixes but applies one only when an engineer tells it to. It’s the same split as Netflix’s: the model gathers evidence and suggests, and the actions are fixed tools a person approves. Most of the sources are vendors, and Orosz has invested in incident.io, so check your own pager data before trusting theirs.
Source: AI SRE: what is it, how could it change on-call – and does it work? — Gergely Orosz, The Pragmatic Engineer, October 27
Worth a Click
- Fragments: October 28 — Martin Fowler. Annie Vella maps coding agents onto 1960s research on supervisory control, with one twist: that research assumed the machine reports honestly on what it did.
- Writing Is No Longer Proof of Work — Sean Goedecke, via Software Lead Weekly #727. Much workplace writing exists to prove effort, compliance or understanding, and LLMs made that proof cheap to fake.
- Software engineering at Google & CS education with Titus Winters — The Pragmatic Engineer. How a dozen engineers cleaned up Google’s C++ in 2010 with parsers, years before LLMs, letting old and new APIs coexist until the old one could go.
- Extensible Software in the Age of LLMs — Jeremy Morrell, via Software Lead Weekly #728. Five requirements for running code that users or agents write, and how V8 isolates, microVMs and WebAssembly compare. The author works at Cloudflare and argues for its product at the end.
comments
Comments are stored as GitHub Discussions, so you need a GitHub account to post.