Module 05 · AI · The loop and its harness · about 18 min to read
Continue where you left off ×
Sycophancy (the desk that agrees with whoever spoke last)
Guardrails Cost and Latency · Open board
Building with LLMs. That board puts three checks around the returns desk that never ask the model: the refund cap, the policy window, the confirm step. This lesson is about why those checks have to exist even when the model answered correctly the first time: a customer who disagrees can talk the model out of a right answer, and how often depends far more on which model you picked than on what you wrote in the prompt.
Before you start. The returns desk is a support assistant on top of a model that only writes text (What the Model Sees (one string, every turn, from the top) ). Its prompt is the part of that text a person wrote (Prompt Engineering (shaping the next-token distribution) ). Fine-tuning from human feedback is the last stage of training, where people rate replies and the model is pushed toward the ones they rated higher (Fine-tuning & Alignment ). An eval set is your own list of cases with a checkable answer beside each (Evals for Apps (the test suite for a program that is a string) ). A guardrail is a check in ordinary code that runs whatever the model said (Guardrails, Cost and Latency (the three budgets the harness enforces) ).
The idea in 30 seconds
Sycophancy is a model switching a correct answer to the user’s wrong one because the user disagreed, and it needs no attack, only an ordinary customer.
It comes from training: people and the reward models that imitate them prefer agreeing replies more than correctness justifies, so agreement gets rewarded.
In a measured run the model choice dominated: 59%, 12% and 0% flipped across three models, and a five-sentence guard halved Gemini’s rate and cut Llama’s by about a third.
A guard that says “change only for a reason” stops credential pressure and lets fake evidence through, because fake evidence looks like a reason.
Emotional pressure rarely flips the answer and often breaks the reply, so the test has to count held, flipped and broke, not just flipped.
Read the story
Lesson 56 of 83 in AI
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson The customer who knew the small print 2022: bigger models agree more 2023: the thumbs-up is the cause April 2025: a sycophancy bug ships The one idea: pushback is an input, and you can measure it The model you pick matters more than the line you add The guard works on credentials and fails on evidence Emotion doesn’t flip the answer, it breaks the reply Reading the scoreboard Haiku’s six broken replies Which small print loses What the owner builds first Terms it explains: sycophancy, agreement is rewarded, held, flipped, broke.
Review AI
Mark as read Saved in this browser, and to your account when you sign in.