Contract Checks Took a Cheap Model From 3/10 to 10/10
Signals is my occasional pick of engineering writing worth your time, with what I make of it. This one covers October 12 to 18.
- Contract checks let a cheap model match a frontier one, for about a third less per run.
- A second agent agreeing with the first proves little; facts the agent can’t argue with do.
- Agents move the bottleneck from writing code to checking it, in CI and in review.
Checks Let a Cheaper Model Match the Frontier One
A cheap model with good checks matched an expensive model without them. Naresh Jain had coding agents build the same backend service 10 times per setup, with and without what he calls a “behavioral harness”: OpenAPI and AsyncAPI contracts, example requests and responses, mocks generated from the contracts, and tests the agent could run while it worked. A separate suite of 178 acceptance tests, which the agents never saw, decided whether each finished service was acceptable.
GPT-6 Luna, OpenAI’s cost-optimized model, passed 3 of 10 runs on its own and 10 of 10 with the harness. Even after the extra tokens, a harnessed Luna run cost about 33% less than a run of the frontier model, GPT-6 Sol ($0.273 vs $0.406). Sol passed all 10 runs either way, so the harness bought it nothing and cost about 7 times more per run.
Each failed service still passed at least 144 of the 178 checks. They broke on details the brief had spelled out: a slow downstream call that should have returned 202 with a link to poll, an extra Kafka header, an environment variable with the wrong name. Jain calls the harness “executable attention”: a failing check brings a forgotten requirement back into focus.
Strong models benefit from checks too once the task gets hard: in the AlphaCodium study, a test-driven loop took GPT-4 from 19% to 44% on competitive programming problems. A cheaper model just reaches that edge sooner.
This was one new Java service with an unusually detailed brief, and Jain founded Specmatic, the contract-testing tool he used, so treat the 33% as a direction rather than a number to quote. The cost he leaves out is writing the contracts. If your services already have OpenAPI specs, that cost is paid: run them as a gate on every agent change, whichever model wrote it. I haven’t run a cheaper model for agent work myself. This is the experiment I’d start with, counting accepted results per dollar, rework included.
Source: Are Harnesses Worth the Cost? — Naresh Jain, Martin Fowler’s site, October 13
Same-Model Reviews Are One Opinion Counted Twice
When an agent misdiagnoses a bug for me, what catches it is reading the diagnosis myself. Cindy Sridharan argues that this won’t scale. As agents write more of the code, engineers know it less well, and her own agent’s wrong first answer seemed plausible to her too. Asking a second agent to review doesn’t fix it either: with the same model and the same context, two agents agreeing is “one opinion counted twice.”
Her alternative is to start from facts rather than code, because “code tells an agent what can happen, not what did happen.” Compare the broken case with a control that differs in one thing. In her latency bug, the control’s DNS lookup returned around 5 addresses and the broken case around 400, which pointed straight at the cause. A hypothesis survives only if it explains every fact, and a reproduction counts only if it shows the same signal as production.
Source: How to effectively debug when you no longer understand the code — Cindy Sridharan, October 10; selected in Software Lead Weekly #725, October 16
Netflix’s LLM Judge Must Be Right for the Right Reasons
“An LLM judge must never operate alone,” Netflix’s team writes. During its tests, an LLM judge scored hundreds of thousands of recommendation explanations a week, and people stayed in charge of it. Experts defined the criteria, and human raters labeled a benchmark with a written reason for every failure. The judge’s rubric was tuned until it matched both the human labels and the human reasons, because a judge that is right for the wrong reason gives the generator bad feedback.
Each week, about 300 sampled explanations went to at least three human raters, and the judge had to stay within two standard deviations of the average rater. That review also caught what the rubric missed, such as explanations that passed every rule but read like “word soup”. Drift checks keep a judge matching its rubric; only people notice when the rubric itself is wrong.
Source: The Lifecycle of LLM-as-a-Judge: Building, Aligning, and Monitoring at scale — Netflix Technology Blog, October 14
Uber’s CI Jobs Doubled in a Year
Uber’s CI jobs (the automated builds and tests that run on every change) more than doubled in 12 months, enough for an internal “code red”. That’s from The Pragmatic Engineer’s notes on a podcast episode with Uber Distinguished Engineer Uday Kiran Medisetty, who also admits that code review has become a big bottleneck, since an engineer still reviews every change. On my team, reviews got bigger and more frequent once agents arrived, and CI load rose because our test coverage grew and we push to GitLab more often.
Uber’s response is the part to copy. Simple checks such as linting, build and template rules moved into the agents’ own loop, so they run before a pull request opens. Every failure caught there is one that neither CI nor a reviewer has to see.
Source: Uber’s AI infra, from the inside — The Pragmatic Engineer, October 14
Recovery Plans Assume Capacity You May Not Get
If a major cloud region fails, “you may find yourself fighting over scraps with everyone else.” Sam Newman’s point, from his new book, is that a disaster recovery plan that creates servers after a failure assumes the cloud will have servers to give. AI demand has made that capacity scarcer, he argues.
AWS’s own summary of its October 2025 us-east-1 outage shows a related failure. Instances already running stayed healthy, but new launches failed with “insufficient capacity” errors for hours, because an internal system was stuck rather than because hardware ran out. Either way, the recovery steps that need new servers are the ones at risk. For services that can’t wait, reserve or pre-provision capacity, and, as Newman suggests, put the idle servers to work, for example on load tests.
Source: Building resilient AI-powered software, and planning for when things go wrong — Sam Newman, excerpted in The Pragmatic Engineer, October 13
Worth a Click
- Ontology-Driven Observability — Netflix Technology Blog. LLMs may write any prose, but they can only add facts that fit a typed schema, checked against a catalog of roughly 49,000 entries.
- When Software Meets Hardware — Kuldeep Singh, Martin Fowler’s site. Moving about 800,000 battery-powered store sensors to a new network kept the engineering principles but dropped defaults such as assuming devices “should normally be reachable”.
- Running Apache Spark experiments in my sleep — Netflix Technology Blog. An agent handled the busywork of five parallel Spark experiments; the out-of-memory errors traced back to a single operator,
collect_list.
comments
Comments are stored as GitHub Discussions, so you need a GitHub account to post.