The most difficult part of building software usually isn’t writing the code. It’s understanding what a business actually needs, getting a team moving toward the same goal, managing expectations, and helping people change the way they work.
A lot of attention these days goes to what AI agents can do. The harder part is building learning systems that make agents better once they’re in production. At the heart of these systems are evaluations, and the way we evaluate AI has changed more in the last few years than in the decade before.
Before generative AI, evaluation was a familiar process for data scientists: gather sample labelled data, hold out a golden dataset, train a model, compute a metric on a validation set, compare it to the baseline, iterate, then confirm on the hold-out and ship. The dataset represented what the model would see in the real world, and one number represented quality. This process assumed every example had a single correct answer. For tasks like classification and regression, we had a known target for each data point. For a product photo, as an example, we checked whether a classifier got the label right. For a demand forecast, we measured how far it missed actual sales.
Generative models weaken the assumption of a single correct answer—picture two descriptions of the same product that diverge at every word and yet both are good. Agents add another challenge: even if the answer looks good, it doesn’t tell us that the agent did the job (for example, correctly guessing that an item is in stock instead of checking). Reference answers can help on narrow tasks, but for broader ones, we need a different approach.
In the new agentic AI era, we set the target tasks with domain experts, measure how the agent performs, then test a specific hypothesis for improvement. If the new version scores better, without violating guardrails, it becomes the new baseline. Domain experts review production traces and help decide what to test next. This is our human-driven agent learning loop for continuous improvement.
To illustrate the change in evaluations, let’s consider some examples through four eras of applied AI.
A retailer wants to know which variants of a product to stock. A gradient-boosted decision tree model predicts demand for each variant from historical sales, and the evaluation is a held-out slice of that history. Correct means matching what sold summarized in one number, such as RMSE for a demand forecast, or F1 score (precision and recall combined) for classifiers.
Assume the product catalog is images. A convolutional neural network classifies product photos by shape and material, and evaluation scales up to large, labeled datasets and shared benchmarks. Leaderboards make progress comparable, but the assumption holds: one reference label per example.
Now a generative model writes descriptions and renders images for three new variants. There is no single reference answer, so overlap metrics like BLEU and ROUGE say little about quality when valid outputs vary widely as in cases of chatbots. In these cases, practitioners turn to human preference ratings and LLM-as-a-judge. Evaluation begins to look less like scoring and more like reviewing.
Today, the request is, “Based on the attached sketch, make three product variants.” The agent interprets the sketch, retrieves brand guidelines through tools, generates options, and explains its choices. Many answers are good, but a good answer can hide a bad path, so we judge both the outcome and the trace—the full sequence of chats and tool calls—against what an expert would expect.
In the agentic era, continuous improvement becomes a process of trace annotations in a human-driven agent evaluation loop, refined by domain experts. Rather than writing reference answers, the experts give clear statements about what should be true for a good answer. We frame it in these steps:
Start with real work. Production traces give you real tasks and real responses, so the evaluation reflects how the agent is used, not how we imagined it would be.
Capture expert requirements. An expert reviews a response, completes the sentence, “This response should have…,” and then identifies the scope of each requirement. Some apply to every task, such as factual claims in the final answer must be sourced from tool outputs, and no customer information should appear in the agent traces. Others belong to this task: there are three variants, they use different shapes or materials, and the agent must read the relevant brand guidelines while producing them.
Build the evaluation setup. These two scopes—task-specific and universal—give expert judgement two homes. Rubrics hold shared quality standards, such as style and formatting, and are reused across the evaluation dataset. Criteria are task-specific and attach verifiable checks to an individual task. A good criterion describes what a successful response must do, not everything it must say. That’s the real break from the golden answer—instead of enumerating the right output, we specify the properties any right output must have.
Tasks, rubrics, and criteria compound. Every expert review adds coverage for the next version.
Criteria and rubrics only matter if something scores against them, so we match each to the cheapest grader that can judge it reliably.
Deterministic checks verify what we automate best: the right output structure, number of tokens consumed, latency, and tool call success rates. LLMs-as-a-judge can handle criteria and rubrics. Human experts review what only specific domain knowledge can judge and, just as importantly, calibrate LLM judges as they refine criteria and rubrics in natural language.
In our work with Kantar and Novo Nordisk, we turned domain expertise into criteria and rubrics, graded by both LLMs and human subject-matter experts, iterating on the scope with new tasks. Automated judges scale, but their performance may drift in time. Expert judgement calibrates them, but it doesn’t scale. Running both, and checking each against the other, keeps the scoring signal worth optimizing.
Scored traces turn evaluation from a release gate into a learning loop. We set the target with domain experts and measure where the agent starts. We make one targeted change at a time: instruction prompt, skill, tool, model, orchestration choice—then we rerun the same evaluation set and compare against the current version. If it’s better without making anything important worse, it becomes the new baseline and ships. If not, we keep the current version. That call still needs human judgment, because it weighs context that is hard to codify; as experts make it explicit, more of it moves to automated graders.
Production closes the loop. Monitoring surfaces new error cases or saturation, and experts turn them into new tasks and criteria, so the evaluation dataset grows where the agent is weakest. Improvements can come from manual adjustments or from auto-optimization services that tune prompts, skills, tools, orchestration, or fine-tune models to improve the trade-off on performance and cost. This is the evolution of evaluations we’re witnessing with multi-turn agents where golden datasets are changing to complex evaluation sets in a human-driven agent learning loop grounded in enterprise IP.
Golden datasets asked whether a model matched the ground truth. Expert-scoped evaluations ask whether an agent meets the standard of the people who know the work best, and they get sharper every time one of those people reviews a trace. Foundation models and infrastructure are increasingly accessible to everyone. The criteria, rubrics, and learning loops built on your domain expertise are not.
The post Continuous improvement of agents and the evolution of evaluations: From reference answers to definitions of good appeared first on Command Line.

Erik Darling here with Darling Data, and we are going to have a Darling Data do-over, or I guess the fancy word for that would be a redux, and we’ll be celebrating Forgiveness Friday, because yesterday when I recorded the video about this, it was a demo that I smushed into the larger batch of cardinality estimation demos that I realized didn’t make sense the way some of it was placed, and so I figured this would be a better way to show you in isolation the stuff that I wanted to show you yesterday that was a bit of a bit of a mashed potato. It’s too late to take it back. It’s out there in the world, but we’re going to do better today. Down in the video description, you will find all sorts of helpful links where you can hire me for consulting of many varieties. You can buy my training of many varieties.
You can become a supporting member of also many varieties, but as few as $4 a month, you could contribute to me getting a better haircut, or give me a lot of money. I could shave my head and get it tattooed, and that’d be cool too. There’s lots of stuff that could happen here, but it all depends on you. Also, depending on you is liking, subscribing, and telling a friend, because if you don’t do that, I won’t make friends either. I won’t make new friends, so that would be depressing. A lot of what I do with clients these days is not just directly help them with SQL Server, but teach people how to do stuff better with the robots talking to SQL Server.
A lot of people have robot trust issues, which I understand. They’re kind of silly, though, because, you know, there’ll be people like, well, what if it drops a database? Like, but what if you didn’t give it permission to do that? Like, what if you hired some other person who is an idiot, and they came in, and they did all the things you’re worried about robots doing? And I guess you’d have someone to yell at and fire, but, you know, you’d still have all the same problems. It would still have the same outcome, right?
So, both for individuals and for companies, there are ways to have me help you get robo-better with that stuff. Always, my free SQL Server and Postgres performance monitoring remains free, remains available for acquisition to the highest bidder. I just don’t accept tokens as payment, because that’s your problem after that.
But it’s awesome, and it replaces the crappy paid monitoring tool that you have today that tells you nothing, helps you with nothing, and probably hasn’t actually seen a real update in years. Anyway, still marveling at this image here. I can’t wait to see. I can’t wait to see what we get for 2027. I don’t know what it’s going to be. It’s going to be a big year. I sense good things for 2027. Huge things. Huge.
All right. So, to start things off, we’ve got this query, which is going to show us what is happening in our orders table. All right. So, much, much more easy to explain with numbers. We’ve got statistics for rows that go up to 10,6105.
That is the number of rows in the histogram, and that is, well, it’s not the number of rows in the histogram. It is. We only get 200 step histograms, but the statistics rows go up to that number. And the end of the histogram is, coincidentally, that number.
We would auto-update stats if we hit 100,030 modifications, but we are only at 99,029 bottles of beer on the wall. So, we do not get an auto-update stat. So, SQL Server’s histogram currently remains at this number.
All right. So, just like yesterday, and another thing I need to apologize for in yesterday’s video was I did not have this string correctly converted to the right data type. And we were getting a lousy-looking query plan for that. So, I have corrected that here.
And upon correcting that, now we have a much better query plan. We do not have that constant scan and all that weird dynamic seek stuff that SQL Server does when data types maybe don’t exactly match the way they should. But that means that the rows in this temp table, also very coincidentally, my friends, are the 99,029 rows that we do not have represented in our histogram.
Ain’t that crazy? Isn’t that nuts? All right. So, we have precisely that. So, just like yesterday, every one of these stored procedures will estimate, excamate, a single row for cardinality estimation at the nested loops join, right?
You see one there, you see one there, and if we scroll down to this third one, we also see one here. Now, just to spend a little bit of time on this, and just sort of maybe explain myself a little bit, let’s, I’m probably doing this backwards and moving the bottom stuff up to the top, but that’s fine. So, SQL Server knows that 99,029 rows will leave this temporary table.
It has figured that out, right? And this temporary table has a histogram on it, but when SQL Server goes to align the histogram from the temp table with the histogram from the orders table, it can’t do it, right? Because the histogram for the temp table has all those rows that aren’t represented in the orders table.
And so, SQL Server keeps guessing that one row is going to match at the join. Even though it knows 99,029 rows leave here, it’s going to have to do this nested loops join 99,029 times. Now, something I can show you here that it’s not, that helps show the lack of it in the next join, is if we look at the properties of this nested loops join, it gets an unordered prefetch.
Okay? That means that when SQL Server looked at, did the cardinalities, it said, well, how many, how many times am I going to have to do this, do that nested loops join? It said, oh, a lot.
I’m going to go fetch a whole bunch of pages at once, bring them into the buffer pool, and then they’ll be there when I need them for the next loop. So, I don’t have, every loop doesn’t represent a physical read from disk. That wouldn’t be cool either, right?
This is not an optimized nested loop, but that is not the important part here. Now, remember where this thing was here, right? Because when we click on this nested loops join, it disappears, right?
There’s unordered prefetch. There’s no unordered prefetch, right? So, when SQL Server narrows the cardinality estimate at, ah, go away, tooltip, you stinker. When SQL Server narrows the cardinality estimate at this nested loops join to one, this nested loops join is no longer eligible for a prefetching optimization because you need 25 or more rows for that.
So, if we use legacy and amendment here, so that is using the legacy cardinality alligator estimator plus the histogram amendment hint, which I’ll show you the full version of in a moment. And we look at this, now SQL Server correctly guesses 99,000 rows here, and it chooses, remember, the old hash batch join for this one, right? It’s the hash join and batch mode, the old hash batch, soft-baked cookie.
Now, if we run this one, and we look at how long it took, this is with a cold buffer cache. Remember, we spend, well, I mean, the whole query still takes about 1.9 seconds, but 1.5 seconds are spent doing this seek over and over again because every time we do this, we go to disk, right? Every time we do this, we go and we read data from disk into memory.
If we look at the wait stats for this, maybe we’ll see the PAGEIOLATCH, wait, yep, there it is. There she is, right, there is nearly 1.3 seconds of PAGEIOLATCH_SH going to disk, right, rather than the pages being already in memory because we didn’t prefetch them, right? So that’s a sad state of affairs, right?
So let’s, this is sort of the way that query looked, and these are the hints that got applied in there, right? Force legacy cardinality estimation, enable histogram amendment for ascending keys. Now, let’s do this, and let’s use the legacy amendment hint, right?
Now, when we run it, when we run it, remember, legacy cardinality estimation, when we run it like this, we don’t get that one row guessing. We don’t get a loop join hint anymore, right? Rather, we don’t get a loop join here anymore because SQL Server chooses the hash batch join, but that’s not really the important thing, right?
The important thing is that the bad estimate led to, I mean, it is technically a query plan choice, but it’s one that’s deeper down than most people will ever look, right? Always be looking at the properties of things because they can tell you one hell of a story.
But if we, of course, update statistics on our orders table, and then when that statistics update finishes, we run this, and then we run this, we get the query plan that we were kind of after there, right? So, this video shows a little bit more geared towards what I wanted to do yesterday.
It was just chopped up, and there were too many other things in between, but this is a nice, concise, consolidated set of demos for you to hopefully see what I was talking about better yesterday. Anyway, thank you for watching.
Hope you enjoyed yourselves. I hope you learned something. I hope you all have a very nice Forgiveness Friday and find the forgiveness in your hearts necessary to forgive me for Thursday’s somewhat confused video. Anyway, I’m going to go Friday myself. I’m going to go forgive myself.
All right. See you next Tuesday with Office Hours. Yeah. I’m so good at excitement. All right. Anyway, goodbye.
If this is the kind of SQL Server stuff you love learning about: these days I have AI do the annoying stuff for me. My new video course teaches you to work the same way, and I teach whole teams in a one-day workshop. Someone still has to know enough SQL Server to keep the robots in check, and that’s what my training is for.
The post Off-histogram Join Problems Redux appeared first on Darling Data.
Part ten of ten. It’s the last question in my new book because it’s the one everybody is asking. The answer that works in an interview is also the one that happens to be true.
AI replaces tasks before it replaces jobs. The routine parts of data work, like first drafts of queries and documentation, are shrinking.
The parts that grow are judgment, verification, data ownership and explaining results to people. Learn to check AI’s work, and you become the person the team relies on.
Why it matters. Interviewers ask this to see how you think about change, not to hear a prediction. A calm, specific answer shows you’re already adapting.
What they’re listening for. A plan, not fear or hype. Name the skills: data quality, testing AI output, context design and security. Add the SQL fundamentals that let you check everything else.
The follow-up. “What will you learn next?” Pick one concrete thing and say how you’d practise it. A specific plan beats a long list every time.

Human in the loop means a person reviews, approves or corrects the AI’s work at key points. The AI drafts, flags or suggests, and a person decides. The more a mistake would cost, the more involved the person stays.
What the interviewer wants. That you’d put the human where judgment matters most, not everywhere. Reviewing every low-risk answer burns people out and adds little.
Watch out. A person who approves everything without reading isn’t a safeguard. Design the review so it’s quick and focused on what changed.
Look back across this series and the same shape appears every time.
In part three, a wrong answer sounded exactly like a right one. The fix was a check against something real. In part five, the model answered about a company that doesn’t exist until we handed it the policy.
In part six, a query ran fine and was 28 times too big. The fix was comparing it with a total you already trust. In part seven, a support ticket gave the agent orders, and the fix wasn’t a better prompt. It was permissions.
In part nine, six lines of names had no single right answer, and saying so was the answer.
Ten chapters, one job underneath. Somebody has to be the person who checks. That job is not shrinking.
Start with the thing you can practise tomorrow on work you already have.
Take a query an assistant wrote for you this week and test it properly against something you trust. Take a prompt you sent and ask what left the building with it. Take one agent or integration at your company and find out what it’s allowed to touch.
Three small exercises, and you’ll have three specific stories. Specific stories are what interviews run on.
Ten posts covered forty-six of the hundred questions. This chapter alone holds back what an AI feature costs, golden test sets, and judging one model with another. Also what breaks when the model version changes, and what an AI policy should say.
The book has all hundred, in ten chapters, each marked Starter, Working or Senior, so you can see the level above yours.
It also has the parts a blog can’t carry. 184 key terms, so you stop nodding along to words you half know. Fifty rapid-round questions for the last train ride before an interview. A five-minute exercise in every chapter that works in any AI assistant. And a thirty-minute mock interview at the back, with a one-page checklist for scoring it. That’s the closest thing to a rehearsal you can do alone.
I published my first SQL Server interview questions series in 2007, and people still write to me about it. This is the same promise, pointed at the subject every data interview has now adopted. Short answers, no padding, and the honest bit at the end of each one.
100 AI Interview Questions and Answers for Data Professionals is out now.
If an answer in it doesn’t survive a real interview, write to me and tell me which one. That’s how the 2007 series got better, and it took years.
I also write about the human side of all this in AI: Nobody’s in There. But we’re still in here. All thirty essays are free to read online, and the paperback is on Amazon.
AI is not coming for the checking, it is the reason the checking became the job.
Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.
First appeared on Will AI Replace Your Job? The Honest Answer
The recent advisory from the National Security Agency (NSA) urging an immediate transition to post-quantum cryptography has sent ripples through the technology world. This decisive call follows disclosures from AI laboratories and a firm backing from major tech companies, including Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle.
On a pivotal Wednesday, the NSA released a statement urging stakeholders in National Security Systems to expedite their move to post-quantum cryptography. Interestingly, this recommendation came not in response to imminent quantum computer threats but rather due to novel and concerning discoveries from frontier AI companies. The exact nature of these discoveries remains undisclosed, but their impact on current cryptographic systems is evidently significant enough to trigger such an urgent response.
Based on content from Better Stack
Despite the NSA’s urgent tone, a simultaneous statement from the NSA, CISA, and the White House Cyber Office suggested that the discoveries do not pose an immediate and widespread threat. This dual messaging has left many in the tech community perplexed, raising questions about which cryptographic algorithms are at risk and the specifics of the findings.
Adding to the speculation, a joint statement from the aforementioned tech giants expressed strong support for the government’s advisory, urging a swift transition to new cryptographic standards. Reflecting this urgency, Cloudflare CEO Matthew Prince acknowledged the gravity of the situation but was hesitant to divulge detailed insights, causing quite a stir in the community.
So, what exactly is at risk? Based on Prince’s statements, it’s best to assume vulnerability in systems relying on RSA or elliptic curve cryptography. While RSA cryptography might appear secure for the time being as per Filippo Valsorda, notable in his maintenance of Go’s cryptography libraries, the speculation is rife that 256-bit elliptic curves might be compromised. These algorithms are foundational to many encryption processes, making their potential vulnerability a cause for concern.
It’s important to note that unlike threats associated directly with quantum computing, Filippo theorizes this could be a classical computing attack, perhaps more immediate but limited in scope due to its complexity and expense. However, as technology progresses, this could change rapidly.
The immediate steps recommended for stakeholders are clear. Ensure your TLS deployments use a hybrid post-quantum key exchange to bolster security. This method ensures that even if one component is compromised, the other remains secure. Additionally, organizations should inventory their signing algorithms and consider transition plans to post-quantum solutions. Particular attention should be paid to systems using weak elliptic curve algorithms.
Furthermore, it’s crucial to future-proof cryptographic systems. The capability to switch out algorithms swiftly, without a comprehensive overhaul, is becoming increasingly essential as the cybersecurity landscape evolves.
While current readings of the situation suggest no immediate cataclysm, this advisory serves as a wake-up call, emphasizing the importance of securing systems against not just the threats of today but those looming on the horizon. The transition might have been a “2030 task” previously, but it’s clear now that this timeline has been significantly accelerated.
Engage with this evolving narrative by reflecting on your organizational practices and the steps necessary to embrace these new cryptographic advancements. Share your thoughts and concerns in the comments below — let’s navigate this critical transition together.