<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mariano Cavallo</title><description>Mariano Cavallo, a staff software engineer, writes about software design, production systems, platform engineering and how engineering teams work.</description><link>https://marianocavallo.com/</link><language>en</language><atom:link href="https://marianocavallo.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>Coding agents need CI that is fast and trustworthy</title><link>https://marianocavallo.com/articles/coding-agents-need-ci-that-is-fast-and-trustworthy/</link><guid isPermaLink="true">https://marianocavallo.com/articles/coding-agents-need-ci-that-is-fast-and-trustworthy/</guid><description>A coding agent works only as fast as the checks it waits on, and only as well as their signal. Make CI quick to answer and safe to trust before handing agents more work.</description><pubDate>Sun, 01 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When I give a task to a coding agent, writing the code is the short part. Picture a change the agent writes in under a minute, checked by a pipeline that takes eight. If it needs four attempts to go green, it spends about four minutes writing and more than half an hour waiting for checks, reading their output and trying again.&lt;/p&gt;
&lt;h2 id=&quot;ci-speed-sets-the-speed-of-the-agent-loop&quot;&gt;CI speed sets the speed of the agent loop&lt;/h2&gt;
&lt;p&gt;I batch my work: write for an hour, push, go to a meeting, read the results later. An agent does not batch. It changes something, runs the checks, reads the failure and changes something else, and it keeps going until the checks pass or it gives up. Every minute of CI is added to every iteration.&lt;/p&gt;
&lt;p&gt;Tiers help. Mark Watson &lt;a href=&quot;https://mkwatson.github.io/2025/06/24/ai-writes-all-code.html&quot;&gt;describes a setup&lt;/a&gt; with a quick check under 5 seconds, a broader one under 30 seconds and the full suite at the end. The agent runs the fast tier after every edit and the full suite once. Test selection does the same job inside CI: run the tests the change can affect, not all of them.&lt;/p&gt;
&lt;p&gt;I have been experimenting with this, and I have had some success finding the right slices. There is no prescription that fits every project or codebase, though. The method only delivers what it promises when you get the nuance right: which checks earn a place in the fast tier, and which can wait for the full suite.&lt;/p&gt;
&lt;p&gt;The cheapest tier runs before CI at all. Agents sometimes report a task as done without running the checks they were told to run, and Flemming Bakkensen &lt;a href=&quot;https://fbakkensen.github.io/ai/devtools/development/2026/03/27/quality-gates-for-coding-agents-how-stop-hooks-make-validation-mandatory.html&quot;&gt;puts the reason plainly&lt;/a&gt;: prompt instructions are suggestions, not constraints. His fix is a hook that runs when the agent tries to finish and blocks it until it has validated its work. He is clear that this is not a replacement for CI, because the hook does not verify anything itself. It makes sure the agent asks the question before the pipeline has to.&lt;/p&gt;
&lt;h2 id=&quot;agents-cannot-tell-a-flaky-failure-from-a-real-one&quot;&gt;Agents cannot tell a flaky failure from a real one&lt;/h2&gt;
&lt;p&gt;When a test fails because a container did not start in time, I recognise it, sigh and press retry. An agent reads the same red output as evidence about its change. It rewrites working code, adds a timeout or loosens an assertion until the build goes green, and the diff that comes back is worse than the one that failed.&lt;/p&gt;
&lt;p&gt;Picture the package registry timing out halfway through the install step. An agent sees a failed build after its change, so it upgrades a dependency until the install resolves, regenerates the lockfile and pushes again. The retry goes green, as it would have anyway, and the review now has a dependency upgrade nobody asked for.&lt;/p&gt;
&lt;p&gt;Anthropic makes the same point in &lt;a href=&quot;https://claude.com/resources/articles/agentic-coding-is-straining-ci-heres-how-we-scaled-test-impact-analysis-at-anthropic&quot;&gt;their post on scaling test impact analysis&lt;/a&gt;: humans can ignore failures that do not concern them, but agents need a precise, valid set of tests to check their own work. The same post shows what happens to load. Their CI jobs grew 25x in six months. Agents also start work whenever someone gives them a task, so load arrives in spikes, and a pipeline sized for the average day becomes flaky exactly when the most agents are waiting on it.&lt;/p&gt;
&lt;p&gt;Flaky tests are not the only way a pipeline lies. Anthropic’s trouble was in the service that picks which tests to run. When the part that records test results fell behind, 20 minutes of lag meant tens of thousands of updates had not reached the selector, so it chose tests from stale data. Fixed and new tests did not run until it caught up, and at its worst the selector kept picking tests that were already flaky or failing everywhere. A human might notice that the failing test has nothing to do with the change. An agent gets a red build and a reason to start editing.&lt;/p&gt;
&lt;h2 id=&quot;design-ci-for-the-load-agents-will-bring&quot;&gt;Design CI for the load agents will bring&lt;/h2&gt;
&lt;p&gt;Anthropic’s fixes show how fast this load outgrows a patch. Doubling the cores bought them 70 days, sharding the work bought 29, and daily restarts bought less than one. They ended up redesigning the service, and their advice is to plan for the exponential: assume a 25x load within two quarters, and size a first version for 10 to 20 times the scale you expect if you can afford it.&lt;/p&gt;
&lt;p&gt;Nothing I run comes close to that scale. Every metric I track on my team, and the ones I see from other teams around me, points in the same direction, though. Our use of AI-assisted tools will only grow over the next few years, so I expect CI load to outgrow most pipelines sooner than their owners plan for. Building for a multiple of today’s load costs less now than three rounds of patches later.&lt;/p&gt;
&lt;h2 id=&quot;speed-is-necessary-not-sufficient&quot;&gt;Speed is necessary, not sufficient&lt;/h2&gt;
&lt;p&gt;A fast pipeline that checks the wrong things gives the agent a quick, confident wrong answer. The &lt;a href=&quot;https://cloud.google.com/blog/products/ai-machine-learning/announcing-the-2025-dora-report&quot;&gt;2025 DORA report&lt;/a&gt; found that AI adoption now goes with higher throughput but still with lower stability, and lists strong automated testing and fast feedback loops among the practices that keep more change from turning into instability.&lt;/p&gt;
&lt;p&gt;That is a change from the year before. In the &lt;a href=&quot;https://cloud.google.com/blog/products/devops-sre/announcing-the-2024-dora-report&quot;&gt;2024 report&lt;/a&gt;, more AI adoption went with an estimated 1.5% drop in throughput and a 7.2% drop in stability. A year later throughput had turned positive and stability had not. Teams got faster at producing change before they got better at absorbing it.&lt;/p&gt;
&lt;p&gt;There is a second problem: agents write many of the tests they are checked against. A test written after the code tends to assert what the code does rather than what it should do, so it passes on the first run and proves little. Watson adds mutation testing to his slowest tier for this reason. It breaks the code on purpose and checks that at least one test fails. If the code can be broken and the suite stays green, the suite is fast and tells the agent nothing.&lt;/p&gt;
&lt;h2 id=&quot;fix-the-flaky-failures-before-adding-agents&quot;&gt;Fix the flaky failures before adding agents&lt;/h2&gt;
&lt;p&gt;Before rolling agents out to more of your team, measure two things on your main pipeline: how long a typical run takes, and how often it fails for reasons unrelated to the change. Fix or quarantine the second group first, because an agent will treat every one of those failures as its own bug.&lt;/p&gt;
&lt;p&gt;Retries and quarantine need a policy, not a habit. My rule is to retry automatically only when the failure is in the infrastructure, such as a runner that died or a registry that timed out, and never when an assertion fails. A test that fails and then passes on retry goes into quarantine with an owner and a date, and it stops counting towards the result the agent sees. Without that rule, retries hide flakiness from people while agents still trip over it.&lt;/p&gt;
</content:encoded><category>ci</category><category>ai-assisted-coding</category><category>testing</category><category>developer-experience</category></item><item><title>Hiring the person who does not exist</title><link>https://marianocavallo.com/articles/hiring-the-person-who-does-not-exist/</link><guid isPermaLink="true">https://marianocavallo.com/articles/hiring-the-person-who-does-not-exist/</guid><description>Careful hiring for a new team tends to measure every candidate against an ideal who does not exist. The real ones take other offers. What I would change next time.</description><pubDate>Tue, 30 Sep 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A reorg gives you a team name, a budget line and a few open seats. It does not give you a team. In my case it also gave me a slightly odd role in building one: hiring manager and owner of the process, but tech lead rather than line manager of the people I would hire. All of the accountability, a modest fraction of the authority.&lt;/p&gt;
&lt;p&gt;The first hires on a small team change what the team can do and how it works, so the instinct is to be careful. Careful tends to turn into slow: a job description built from every wish on the list, a process borrowed from a team of fifty, and a panel comparing everyone against a person who does not exist.&lt;/p&gt;
&lt;p&gt;Months pass. The candidates who would have made the team interesting take other offers, or get filtered out before anyone talks to them. What follows is what I would tell myself before doing it again, assuming I would listen.&lt;/p&gt;
&lt;h2 id=&quot;write-the-role-for-the-recruiter-not-the-wish-list&quot;&gt;Write the role for the recruiter, not the wish list&lt;/h2&gt;
&lt;p&gt;The job description is the first filter, and the recruiter is the one holding it. List twelve technologies as requirements and a good recruiter will do exactly what it says, which is send you nobody. Holloway’s &lt;a href=&quot;https://holloway.com/g/technical-recruiting-hiring/sections/crafting-the-job-description&quot;&gt;guide to technical hiring&lt;/a&gt; describes the failure well: a role that is too narrow makes qualified people rule themselves out.&lt;/p&gt;
&lt;p&gt;What worked better for me was a range instead of a profile. Name the two or three things the team cannot function without. Then describe the problems the team will own and the kinds of experience that would help with them. “Has run production systems on AWS” is a requirement. “Knows CDK, Terraform and Pulumi” is a shopping list, and an oddly specific one for a team that has not shipped anything yet. Years of experience with a tool do not always translate to ability either, which is why Holloway suggests writing outcomes instead.&lt;/p&gt;
&lt;p&gt;Then talk to the recruiter, not only the applicant tracking system. Explain which gaps you can live with, which you cannot, and what an unusual but promising profile looks like to you. Giving them that headroom leaves the bar where it was and shows the person searching where it is, so they stop guessing conservatively and choking the pipeline on your behalf.&lt;/p&gt;
&lt;h2 id=&quot;keep-the-screen-boring&quot;&gt;Keep the screen boring&lt;/h2&gt;
&lt;p&gt;The first technical conversation has one job: confirm the candidate clears the floor the team needs. It should be short, close to the real work, and the same for everyone. This is the one stage where measuring everyone with the same stick makes sense, because the floor is the same for everyone.&lt;/p&gt;
&lt;p&gt;The trouble starts when the screen grows into a portrait of the ideal hire. Each interviewer adds a question about the thing they know best, and soon the screen is checking whether the candidate is a copy of the panel. Someone who spent five years on billing systems and two on frontend performance will fail that test in interesting ways, and you will learn nothing from it.&lt;/p&gt;
&lt;p&gt;So the baseline stays generic, and the later stages go deep on whatever the candidate knows. They ask how good the candidate is at the things they have done, and whether that depth transfers to the problems in front of you.&lt;/p&gt;
&lt;h2 id=&quot;let-candidates-choose-where-to-go-deep&quot;&gt;Let candidates choose where to go deep&lt;/h2&gt;
&lt;p&gt;An interview is a strange place to judge anyone. In a &lt;a href=&quot;https://chrisparnin.me/pdf/stress_FSE_20.pdf&quot;&gt;study&lt;/a&gt; at NC State, 61.5% of participants failed a coding problem when solving it out loud in front of an observer, against 36.3% of those who solved it alone. The sample was small, 48 students, and the most striking result smaller still: none of the five women who were watched solved the problem, and all four who worked in private did. The authors suggest technical interviews may mostly identify who handles stress best, which is a fine skill to hire for if the job is bomb disposal.&lt;/p&gt;
&lt;p&gt;You cannot remove the stress, but you can stop adding to it. Karat suggests &lt;a href=&quot;https://karat.com/?p=1808&quot;&gt;a simple technique&lt;/a&gt;: share the five or so competencies that matter for the role and let the candidate choose which one to go deep on. If they are weak in the area they picked, that tells you plenty. If one competency is essential, ask about it directly and offer another topic if they are not comfortable.&lt;/p&gt;
&lt;p&gt;Tell people what you are looking for in each exercise, too. Whether you care about the thought process or about working code changes how a reasonable person spends forty minutes, a point LeadDev makes about &lt;a href=&quot;https://leaddev.com/hiring/5-ways-youre-stressing-candidates-out-during-tech-interviews&quot;&gt;avoidable interview stress&lt;/a&gt;. Leaving them to guess only tests their guessing.&lt;/p&gt;
&lt;h2 id=&quot;do-not-hire-the-best-interviewer&quot;&gt;Do not hire the best interviewer&lt;/h2&gt;
&lt;p&gt;The candidate who is easiest to talk to tends to win the debrief. Farnam Street puts it bluntly: &lt;a href=&quot;https://fs.blog/job-interviews/&quot;&gt;interviews tend to select for charisma over competence&lt;/a&gt;. The current name for this is vibe hiring, and Textio’s &lt;a href=&quot;https://www.worklife.news/talent/polish-over-potential-how-hiring-for-personality-vs-skills-is-costing-employers/&quot;&gt;research&lt;/a&gt; found candidates described as having a great personality were 12 times more likely to get an offer.&lt;/p&gt;
&lt;p&gt;Communication matters on a small team, where each person is a large share of every conversation. But being fluent with a stranger for an hour, while being judged, is a narrow slice of it. Plenty of good collaborators are quiet in the first meeting and indispensable by the third month. The reverse also happens, and it is the more expensive mistake.&lt;/p&gt;
&lt;p&gt;With limited time, the most useful thing I found was to spend it on specifics. Ask about a project they are proud of and keep going until you reach the parts that went badly, the trade-offs they would undo, who they worked with and how. Write down what they said, not how it felt, before the debrief. Memory fades and gut feeling is persuasive, especially about candidates who remind you of yourself, so the loudest impression in the room should not get to overwrite the notes.&lt;/p&gt;
&lt;h2 id=&quot;hire-for-shared-values-not-a-shared-background&quot;&gt;Hire for shared values, not a shared background&lt;/h2&gt;
&lt;p&gt;Culture fit is a useful idea that decays quickly into hiring people who remind the panel of itself. Gallup warns that &lt;a href=&quot;https://www.gallup.com/workplace/402503/move-beyond-hiring-culture-fit.aspx&quot;&gt;fit judgments are easily driven by unconscious bias&lt;/a&gt;. On a team of four, that bias does not average out over many hires. It shapes the whole team.&lt;/p&gt;
&lt;p&gt;A new team does need agreement on a few things that are hard to change later: how decisions get made, how disagreement is handled, what quality means, how much ownership people expect. Those are values, and they are worth testing. Everything else is where a different background earns its place. Someone who came from agency work, a support rotation or a non-traditional route into engineering will see problems the rest of the team has learned to stop seeing.&lt;/p&gt;
&lt;p&gt;This is also where the single stick breaks. A senior engineer from a ten-person startup and one from a large platform team will arrive with different gaps and different reflexes, and both may be right for the job. Comparing them on one checklist rewards whoever resembles the checklist, which is usually whoever wrote it. Dan Luu wrote about companies that claim to &lt;a href=&quot;https://danluu.com/programmer-moneyball/&quot;&gt;hire only the best&lt;/a&gt; and in practice hire the trendiest resumes, crippling their own pipeline in the process. Comparing each candidate to what the team needs, given where they come from, is slower to explain and faster to get right.&lt;/p&gt;
&lt;h2 id=&quot;the-careful-process-is-the-expensive-one&quot;&gt;The careful process is the expensive one&lt;/h2&gt;
&lt;p&gt;Narrow descriptions and template interviews feel rigorous because they produce a steady supply of rejections. Rejections are easy to produce at scale; a team is not. The process that looks careful is often the one that takes four months, burns the recruiter’s goodwill and ends with a hire chosen mostly for being easy to agree on.&lt;/p&gt;
&lt;p&gt;Hiring is a slow and expensive way to learn, and like everything else, it gets better the more you do it. Looking back at my first few attempts, I can see how many talented people I missed. I learned, but the tuition was paid in people I never got to work with.&lt;/p&gt;
&lt;p&gt;Before opening the next role, write down the two or three things the team cannot do without, and treat everything else as a question to ask each candidate, not a box to tick.&lt;/p&gt;
</content:encoded><category>hiring</category><category>engineering-management</category><category>interviewing</category><category>team-building</category></item></channel></rss>