top of page

Hiring Engineers in an AI World

Shift Quality Editorial
Jun 26, 2025
12 min read

Updated: Nov 18

Two candidates sit the same practical round. Each gets a small payments service and an hour to add refunds, with any tools they like. The first has an assistant draft the endpoint, runs the tests, sees green and is done in 25 minutes. The second spends ten minutes reading the code before prompting anything, then asks what happens when the payment provider sends the same webhook twice. She writes a test for it, and the assistant's draft refunds the customer twice.

Most hiring loops built before assistants would score the first candidate higher. The second is the one you want on a payments team.

That's the change this post is about. When an assistant can produce a plausible first draft in seconds, the scarce part of engineering moves from writing code to deciding what the code must do and checking that it does it. The evidence on how people work with assistants points the same way. In the 2025 Stack Overflow Developer Survey, 84% of respondents use or plan to use AI tools, and the frustration they cite most, at 66%, is "AI solutions that are almost right, but not quite." A hiring process should measure whether someone can catch "almost right". Most still measure whether they can produce code without help.

This post covers what to measure now, a work sample that measures it, how to build the loop around that sample from your own failure data, and how to check later whether any of it predicted anything. The mechanics of structured interviewing (scorecards written first, independent scoring, removing stress the job doesn't have) are covered in Technical Interviews From Both Sides. This post builds on them.

What moved, and why it changes the interview

Writing code got cheaper. Checking code didn't. That asymmetry is the whole argument.

Three findings show what goes wrong when people stop checking:

  • Assistants can raise confidence faster than quality. In a Stanford user study published at CCS 2023 (Perry, Srivastava, Kumar and Boneh), participants with an AI assistant wrote less secure code than those without one on most of the security tasks, and were more likely to believe their code was secure. The participants who trusted the assistant less, and rephrased or adjusted their prompts, produced fewer vulnerabilities.

  • Felt speed and measured speed come apart. In METR's 2025 randomised trial, 16 experienced open-source developers working on 246 real tasks in their own mature repositories took about 19% longer when AI tools were allowed. Before the study they expected a 24% speedup, and afterwards they still believed they had been about 20% faster. The authors caution against generalising from one setting, but the lesson for hiring is narrow and safe: how fast someone feels with tools, or looks in a timed round, is not a measure of what they deliver.

  • The daily friction is verification. In the same Stack Overflow survey, 45.2% said debugging AI-generated code is more time-consuming, and more respondents distrust the accuracy of AI tools (46%) than trust it (33%).

So the job now has more of three things in it: turning a vague need into something checkable, reading and verifying code you didn't write, and seeing what else a change touches. A round that rewards fast unaided production measures the part of the job that got cheap.

The test: list every round in your current loop. For each, ask: could an assistant produce a passing answer in under a minute? If yes, that round measures recall of something the candidate will have a tool for on day one. Keep it only if the job really runs without tools (some regulated, air-gapped or embedded environments do), and then say so in the job description.

What to measure now

Adjectives like "strong systems thinker" or "good judgment about AI" can't be scored. Each needs to be turned into a behaviour an interviewer can see and write down.

Capability

What you observe

Weak signal

Strong signal

Specifying

Turns a vague request into criteria someone could check

Starts prompting or coding straight away

Asks what "done" means, names an edge case before writing anything

Verifying

Treats generated code as a draft to be tested

Accepts green tests as proof

Writes a test for the failure path the existing tests miss

Seeing the system

Names what else the change touches

Talks only about the file in front of them

Names a caller, a data consumer or a retry path outside the task

Explaining

Can say why a given line is correct

"The assistant wrote that bit"

Explains a line they didn't write, and rewrites one they can't defend

Learning

Gets productive in unfamiliar code

Waits for instructions

Reads, forms a theory, checks it against the code

Some things that used to differentiate no longer do: syntax recall, implementing a textbook data structure from memory, and raw speed in a timed round. Understanding still matters. You can't verify code you don't understand, so the fundamentals haven't stopped mattering. Test them through explanation ("why is this lookup slow at scale?") rather than recall ("write a red-black tree").

The exception: for roles where tool access really is restricted, or where the engineer will be the person building and evaluating the AI tooling itself, test what that job actually uses.

The test: take the scorecard for your practical round and check each criterion. If it describes an adjective rather than something an interviewer could see happen, rewrite it in the "strong signal" form above before the next candidate.

The work sample: an AI-assisted task with a planted flaw

The most informative round is one that resembles the job: real-ish code, full tool access, and a problem where the obvious generated answer is almost right. The candidate isn't being tricked. Finding the gap between plausible and correct is the job.

A worked example (composite)

This example is a composite of common patterns, not one company. The figures in it are illustrative.

A fintech team hiring two backend engineers built a 75-minute round on a cut-down copy of its refunds service. The candidate works on their own laptop, with any assistant, search or documentation they use normally.

  • The task: add a refund endpoint that the payment provider's webhook calls.

  • The planted flaw: the provider retries webhooks when it doesn't get a quick response. The repository's README says so in one line under "Integration notes". The existing tests send each webhook once. An assistant's natural first draft processes every call, so a retry refunds twice, and the tests still pass.

  • What the interviewer watches: the order the candidate works in, not just the result. They record what the candidate read before prompting, what they asked, which tests they wrote, and what they changed in the generated code.

Here is how the two candidates from the opening scored on the team's scorecard:

Criterion

Candidate A

Candidate B

Read the code and README before prompting

Skimmed the task only

10 minutes reading, found the retry note

Asked a clarifying question

None

"Can the provider send the same event twice?"

Tests written

None added; ran the existing suite

Added a duplicate-webhook test, which failed

Changes to the generated code

Accepted as drafted

Added an idempotency check keyed on the event id

Could explain the final code

Partly ("the assistant handles validation")

Walked through each branch

Finished

25 minutes

70 minutes

The fork. Under the team's old rubric (correct output, clean code, time to finish), A scores higher. Both submissions pass the provided tests, and A finished in a third of the time. Under the new rubric, B is a clear hire and A is a no on verification, the dimension the team weights most for this role. The team hired B. In the debrief they noticed something else: two of their own engineers, who had tried the exercise to calibrate it, had also missed the retry on their first attempt. That was the strongest argument that the round measured something real.

The discovery move. The team didn't invent the planted flaw. Before designing the round, they asked one question of their own data: "Which of our last ten incidents or reverts came from code that looked right and passed its tests, and what check would have caught each one?" The answer, from their postmortems and revert log, was three duplicate-processing bugs, two timezone boundary errors and one missing authorisation check. The duplicate-processing class was the most common and the most expensive, so it became the planted flaw. The rubric came from the team's own failure record, not a list of generic interview topics.

How to build one

  1. Pull your failure record. Postmortems, reverts and bugs found after merge from the last six to twelve months. Group them by the check that would have caught them.

  2. Pick one class that a competent person would catch with care. Idempotency, time zones, pagination edges, authorisation and partial failure are common choices. Avoid anything that needs inside knowledge the candidate can't get from the repository.

  3. Put the clue where the job would put it. A README line, a comment, a field name or a ticket description. If finding it needs mind-reading, it's a trick, not a work sample.

  4. Make sure the existing tests pass with the flaw present. That's what makes "the tests are green" an insufficient answer.

  5. Calibrate on your own team. Have two current engineers do it cold. If neither finds the flaw in the time, it's too hard or too hidden. If both find it in five minutes, it won't separate anyone.

  6. Write the scorecard before the first candidate, with weak, adequate and strong described as behaviours.

Run it inside the interview, not as a weekend take-home, and keep it under 90 minutes. Being watched while coding can halve performance (Behroozi et al., 2020), so let the candidate work for the first 15 minutes without commentary, then talk it through.

The test: after the first five candidates, check whether the round produced different scores. If everyone found the flaw, or nobody did, change its difficulty before you use it on anyone else.

A loop that measures it

The work sample is the centre. The other rounds should measure what it can't.

Round

Time

What it measures

Evidence recorded

Past decision deep-dive

30 min

Judgment and honesty about tradeoffs

One decision they'd make differently, and why

AI-assisted work sample

75 min

Specifying, verifying, explaining

The scorecard above, filled in as it happens

Review a pull request

45 min

Reading code they didn't write; priorities

Which issues they found, in what order, and how they phrased them

Ambiguous requirement with a product partner

45 min

Decomposing a vague need; communication

The questions asked; the scope they proposed

The pull request round is cheap to build and very informative. Give the candidate a real-looking PR, partly AI-generated, containing one correctness bug, one missing test for a failure path and two style nitpicks. Strong reviewers find the bug first and say what would break. Weaker ones spend the time on the nitpicks. What AI-Generated Code Structurally Skips lists the categories worth planting, and Code Review That Teaches shows the tone you'd want them to use.

Drop the culture-fit chat in its usual form. If you keep a values conversation, write down what you're assessing first, as you would for any other round.

The test: for each round, write down the one observed behaviour that would make you say no. If you can't name one, the round isn't measuring anything, and the decision is coming from the debrief instead.

Green and red flags you can actually observe

Lists of traits ("curious", "humble") are hard to score and easy to project onto. The useful flags are things you can see someone do in the rounds above.

Green flags

  • Reads before prompting, and says what they're looking for.

  • Asks a question that changes the work ("can this run twice?", "who else reads this table?").

  • Runs the code, or writes a test, before saying it's done.

  • Edits or rejects a suggestion from the assistant and says why.

  • Explains a line they didn't write, or admits they can't and rewrites it.

  • Names something they'd check in production that the task didn't ask for.

Red flags

  • Treats a passing test suite as proof of correctness.

  • Can't say what a generated line does, and keeps it anyway.

  • Answers "why" questions with "that's what the tool suggested".

  • Writes no test for the failure path.

  • In the PR review, spends the time on formatting and misses the bug.

The Perry study's finding gives the mechanism behind the most important flag: the people who were less trusting of the assistant, and engaged with what it produced, wrote safer code. You're looking for calibrated trust. Refusing the tools isn't the goal, and neither is accepting everything they produce.

Building the team, not just the hire

A loop that picks good individuals can still build a lopsided team. Decide what the next hire should add before you open the role.

Make a simple skills matrix: one row per person, and one column per capability the team needs. Include domain knowledge, operations, data, security and verifying AI-generated code. Mark each cell strong, working or none. Then count:

  • Columns with fewer than two "strong" are single points of failure. The next hire should strengthen one of them.

  • Columns with no "strong" at all are risks the team doesn't own. Either hire for one or name who outside the team covers it.

Junior engineers need particular thought. An assistant lets a junior produce code faster than they can verify it, because verification needs a model of what correct looks like, and that model is what experience builds. That isn't a reason not to hire juniors. It is a reason to hire them into a team with time set aside for review that teaches and for pairing (Pair Programming: When It Works and When It Doesn't). In a junior's interview, weight explaining and learning above output, and ask them to walk through one generated line and say how they'd check it.

The exception: a small team on a high-stakes system with no capacity to mentor may need to hire only experienced people for a while. Write that down as a decision with a date to revisit it, not as a permanent policy.

The test: fill in the matrix for your team before the next requisition. If the role description doesn't name the column it's meant to strengthen, rewrite it until it does.

Check whether your process predicts anything

Most teams never check whether their interview scores predicted how the hires did. The research suggests the effect will be modest even when everything is done well. Sackett, Zhang, Berry and Lievens's 2022 re-analysis puts structured interviews at the top of the selection methods they examined, with a mean operational validity of .42, work sample tests at .33 and unstructured interviews at .19. Those numbers are useful, but they're far from certainty, which is why it's worth checking your own process.

Two kinds of measure are worth keeping:

  1. Process health, every hiring round. Candidates who withdrew, and at which stage. Days from first contact to offer. Offer acceptance rate. A stage where many people withdraw is often a stage that's too long or feels irrelevant to the job.

  2. Prediction, six months after each hire. Put each hire's round scores next to an honest assessment from their lead on the same capabilities. With small numbers you won't get a correlation worth the name. Look for gross mismatches instead: a hire who scored strongly on verifying but ships bugs other engineers keep catching, or a round where everyone scores the same.

The test: at the six-month review, any round that never separated candidates, or whose scores contradicted every lead's assessment, gets redesigned or cut.

Hiring engineers in an AI world. An assistant makes writing syntax, recalling APIs and drafting boilerplate cheap; specifying, verifying, seeing the system and explaining stay expensive. Build an AI-assisted work sample with a planted flaw: pull your failure record, pick one class a careful person would catch, put the clue where the job would, keep the existing tests green, calibrate on your own team, and write the scorecard first. Ask: which of our last ten incidents came from code that looked right and passed its tests? Six months on, compare round scores with how each hire did.

What to do this week

  • Audit your loop. For each round, ask whether an assistant could pass it in under a minute. Mark the ones that measure recall.

  • Pull your failure record. List your last ten incidents, reverts or post-merge bugs, and the check that would have caught each one. Circle the most common class.

  • Draft a planted-flaw work sample on a cut-down copy of a real service, using that class. Have two of your engineers try it cold.

  • Rewrite one scorecard so every criterion is a behaviour an interviewer can see.

  • Diary a six-month review for your most recent hire, comparing their round scores with how they're actually doing.

Final takeaway

Assistants made producing code cheap and left checking it as expensive as it was. Hire for the expensive part. Build the practical round around a flaw your own incidents say matters, let candidates use their tools, and score what they read, ask, test and can explain, not how fast the tests go green. Then check six months later whether the scores meant anything, and change the rounds that didn't.

Sources

  • Stack Overflow, "2025 Developer Survey: AI", 2025: 84% of respondents using or planning to use AI tools; 66% cite "AI solutions that are almost right, but not quite" as their top frustration; 45.2% say debugging AI-generated code is more time-consuming; 46% distrust AI accuracy versus 33% who trust it. https://survey.stackoverflow.co/2025/ai

  • Perry, N., Srivastava, M., Kumar, D. and Boneh, D., "Do Users Write More Insecure Code with AI Assistants?", ACM CCS 2023, pp. 2785–2799: participants with an AI assistant wrote significantly less secure code and were more likely to believe it secure; those who trusted the AI less and engaged more with their prompts produced fewer vulnerabilities. https://arxiv.org/abs/2211.03622

  • Becker, J., Rush, N., Barnes, E. and Rein, D. (METR), "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity", 2025: randomised trial, 16 developers, 246 tasks; tasks took about 19% longer with AI allowed; developers expected a 24% speedup and afterwards believed it was about 20%. https://arxiv.org/abs/2507.09089

  • Sackett, P. R., Zhang, C., Berry, C. M. and Lievens, F., "Revisiting Meta-Analytic Estimates of Validity in Personnel Selection: Addressing Systematic Overcorrection for Restriction of Range", Journal of Applied Psychology 107(11), 2022, pp. 2040–2068: structured interviews .42 (top-ranked), job knowledge tests .40, work sample tests .33, unstructured interviews .19. https://doi.org/10.1037/apl0000994

  • Behroozi, M., Shirolkar, S., Barik, T. and Parnin, C., "Does Stress Impact Technical Interview Performance?", ESEC/FSE 2020, pp. 481–492: randomised trial with 48 computer science students; being watched by an interviewer reduced performance by more than half. https://doi.org/10.1145/3368089.3409712

Related reading

Keep learning. This article is part of the Project Delivery & Change Management path in the ShiftQuality Learning Center. Ship change without breaking trust or production.

bottom of page