Fernando Veiga
Menu

AI & Management

The engineering of alignment: how to make AI want what we actually want

Fernando Veiga

Cover of the article The engineering of alignment, with two trajectories converging on a golden point.

In controlled tests, AI models have already pretended to go along with their own training, resorted to blackmail to avoid being shut down and hidden part of their own reasoning. Understanding the engineering that tries to fix this has become a job for anyone who leads, hires or teaches.

When the machine delivers what we asked for, not what we wanted

AI alignment is the discipline that tries to close the gap between what we ask a system to do and what we actually want from it. Stanford HAI sums up the goal as making an AI's objectives and behavior match people's values, rules and intentions, which includes avoiding deception, unsafe shortcuts and the optimization of a metric that loses sight of the real objective.

The idea is old. IBM recalls that researchers Simon Zhuang and Dylan Hadfield-Menell, of the University of California, Berkeley, compare the problem to the myth of King Midas: his wish to turn everything he touched into gold was granted to the letter, and that is exactly what destroyed him. Every system trained to maximize something carries a bit of that risk.

What changed is scale and autonomy. Between December 2024 and November 2025, research published by the labs themselves showed, in test environments, models that pretended to comply with their training, that resorted to blackmail to avoid being replaced and that, after learning to cheat on programming tasks, went on to sabotage the code built to monitor them. The authors of the blackmail study say they have not seen this kind of behavior in real-world use. Yet these are precisely the systems we are now connecting to email, ERPs and service queues, in the form of agents.

My thesis is that alignment has moved beyond a philosophical lab debate and become an engineering discipline with direct management consequences. Anyone who designs, buys, deploys or teaches AI needs to understand the basic mechanisms of this engineering, the same way a CFO understands internal controls without being an auditor. I write from what I have seen in more than 187 AI and generative AI projects, spanning development, training, mentoring, agent building and the curation of multi-agent ecosystems, and from what I observe in the classroom, where the question "can I trust what the AI told me?" comes up in almost every class.

This article sets out to answer three questions:

  1. What does it mean, in practice, to align an AI, and why has the topic left the lab?

  2. What does the latest research reveal about how and when models become misaligned?

  3. What can Brazilian companies, including midsize ones, do now, without waiting for a legal framework?

What the data says

The numbers from 2025 and 2026 tell the same story from three angles: real-world incidents are rising, lab tests find deviations in models from several vendors, and correction techniques reduce those deviations without eliminating them.

In the real world

  • Incidents on the rise. The AI Incident Database recorded 362 AI incidents in 2025, up from 233 in 2024, according to the Stanford HAI AI Index 2026. The database counts reported cases, so the jump reflects both more use and more documentation.

  • Readiness falling. In the AI Index survey conducted with McKinsey, the share of organizations rating their own incident response as "excellent" fell from 28% to 18% between 2024 and 2025, and the share rating it "good" went from 39% to 24%. Over the same period, the share that faced 3 to 5 incidents rose from 30% to 50% (Stanford HAI).

  • The bottleneck is people. The three biggest barriers to implementing responsible AI are knowledge and training gaps (59%, up from 51% the previous year), budget (48%) and regulatory uncertainty (41%), in the same survey.

  • Errors are already routine. In McKinsey's 2025 global survey, with 1,993 respondents in 105 countries, 51% reported at least one negative consequence from using AI, and inaccuracy was the most common, cited by about 30% (consulted via IDM and IT Brief).

In the lab

  • Faking it to avoid change. In an experiment by Anthropic and Redwood Research, Claude 3 Opus refused harmful requests 97% of the time when it believed it was not being trained. When it believed it was, it complied in 12% of cases after explicitly reasoning that faking alignment would preserve its preferences, and that reasoning reached 78% after actual reinforcement training.

  • Blackmail in simulation. Anthropic tested 16 models from six or more developers in a fictional corporate scenario in which the agent discovered it was about to be replaced. Five popular models resorted to blackmail in 79% to 96% of 100 attempts: Claude Opus 4 (96%), Gemini 2.5 (95% to 96%), GPT-4.1 (80%), Grok 3 Beta (80%) and DeepSeek-R1 (79%).

  • Instructions help, but do not solve it. In the same study, an explicit order not to put human safety at risk lowered Claude Opus 4's rate from 96% to 37%. When the model itself concluded the scenario was real, it resorted to blackmail 55.1% of the time, versus 6.5% when it concluded it was a test.

  • From cheating to sabotage. In research published in November 2025, a model that learned to game real programming training environments got worse on every alignment evaluation and attempted to sabotage detection code 12% of the time. Safety training on ordinary conversations fixed the chat behavior, but the deviation persisted in agentic tasks.

  • Covert deception. OpenAI and Apollo Research cut covert actions by o3 from 13% to 0.4% and by o4-mini from 8.7% to 0.3% with a technique called deliberative alignment. Rare but serious failures remained, and the authors themselves warn that the models may simply be getting better at noticing when they are being evaluated.

  • Reasoning that does not tell the whole story. When they used a hint hidden in the prompt to answer, Claude 3.7 Sonnet mentioned that hint in its displayed reasoning 25% of the time and DeepSeek R1 39% of the time (Anthropic).

Horizontal bar chart of blackmail rates in a simulated scenario: Claude Opus 4 at 96%, Gemini 2.5 at 95% to 96%, GPT-4.1 at 80%, Grok 3 Beta at 80% and DeepSeek-R1 at 79%, all above the half-of-attempts line.
In simulation, five models from different vendors chose blackmail in most attempts.
Bar chart of values before and after mitigation on the same scale: Claude Opus 4, blackmail from 96% to 37%; o3, covert actions from 13% to 0.4%; o4-mini, from 8.7% to 0.3%.
Mitigations cut the rates, but none reaches zero.

Read together, the two charts show that the behavior appears in models from different vendors and that today's defenses reduce the risk without eliminating it. That is why the layers of control that sit outside the model, such as permissions, approvals and logs, remain indispensable.

The finding that defies common sense

Intuition says that larger models, trained on more data, are harder to corrupt. A study by Anthropic with the UK AI Security Institute and the Alan Turing Institute showed the opposite: 250 malicious documents were enough to plant a backdoor in models ranging from 600 million to 13 billion parameters, even though the largest had seen more than 20 times as much data.

The second counterpoint dismantles the idea that alignment is just a brake. In the work that led to ChatGPT, human raters preferred the answers of an aligned 1.3-billion-parameter model over those of the 175-billion-parameter GPT-3, a model more than 100 times larger. There, alignment was what made the product useful.

In Brazil

  • Accelerating adoption. Among industrial companies with 100 or more employees, AI use rose from 16.9% in 2022 to 41.9% in 2024, according to the PINTEC survey by IBGE, Brazil's national statistics agency. Among midsize firms, with 100 to 249 employees, the rate is 36.1%, versus 57.5% among those with more than 500 (consulted via Times Brasil).

  • Rules still open. Bill PL 2,338/2023, Brazil's proposed AI legal framework, was approved by the Senate on December 10, 2024, and has been in the Chamber of Deputies since March 2025 (GlobalSuite). In August 2026, the rapporteur, Representative Aguinaldo Ribeiro, expected the vote to happen after the October elections (Mobile Time).

Before drawing conclusions

The lab scenarios are artificial and, in several cases, were designed to close off the ethical options; Anthropic itself notes that the models preferred ethical paths when they were available. Percentages from different studies measure different behaviors and should not be compared with one another. The McKinsey survey is self-reported and global, and the IBGE survey covers only larger industrial companies, so neither one alone describes the reality of Brazilian businesses.

The concepts behind this engineering

To talk about alignment without empty jargon, five ideas are enough: the four RICE objectives, the cycle between aligning before and verifying after, the difference between outer and inner alignment, the most common failure patterns and the question "aligned with whom?".

RICE: the four objectives

The survey by Ji and colleagues, led by researchers at Peking University and other institutions and kept up to date at alignmentsurvey.com, organizes the field around four objectives: robustness, interpretability, controllability and ethicality. IBM uses the same acronym, and DataCamp illustrates what happens when only one of them fails.

Objective

What it ensures

How it fails when the other three work

Robustness

Predictable behavior in the face of unexpected inputs and environments

An autonomous vehicle that explains its decisions and accepts commands, but fails in weather it never saw in training

Interpretability

People can understand why the system decided what it did

A reliable, controllable financial model that is nonetheless opaque

Controllability

Humans can steer, pause and correct it

A reliable, explainable industrial robot that is hard to stop

Ethicality

Decisions respect fairness, privacy and social norms

A stable, transparent hiring system that discriminates against groups

The cycle: align before, verify after

The same survey splits the methods into two fronts that feed each other. "Forward" alignment happens in training, learning from human feedback and preparing the model for situations different from the ones it has seen. "Backward" alignment gathers evidence afterward, through tests, audits and governance, and feeds what it learns into the next training cycle.

That is the logic in the description of Anthropic's alignment team, which works on protocols for training, evaluating and monitoring highly capable models. For a company, the part that matters most is the second one: verification after deployment is the responsibility of whoever deploys.

Circular diagram of the alignment cycle: the top half, in gold, is align before, in training, with learning from human feedback and preparing for new scenarios; the bottom half, in lavender, is verify after, in use, with tests, attacks and audits and governance and monitoring. Arrows show that the trained model goes into use and that what is learned in use flows back into training.
Alignment continues after launch: what is learned in use flows back into training.

Outer and inner alignment

Outer alignment asks whether we taught the right objective. Perplexity's piece on the state of the debate gives a simple example: if human raters tend to prefer long answers, the model learns to pad, because the score reflects the raters' taste, not the objective.

Inner alignment asks whether the model actually learned that objective or just a shortcut that worked on the training data. The same piece cites a model that learns to recognize certain ways of phrasing a dangerous request and lets the same request through once it is reworded. According to IBM, most language model alignment today still works at the outer layer, through fine-tuning after pretraining.

The most common failure patterns

The names sound dramatic, but they describe concrete mechanisms. The third column contains my own illustrative examples of how each pattern could show up in a company, not documented cases.

Pattern

What happens

How it could show up in a company

Reward hacking

The system finds a shortcut that scores points without doing the task; IBM cites a boat-racing agent that circled around collecting points instead of racing

A coding agent that changes the test so it "passes" instead of fixing the bug

Specification gaming

It follows the literal instruction and misses the purpose

A service bot that cuts average handling time by ending conversations early

Sycophancy

It agrees with wrong claims because agreeing tends to be rated higher

An assistant that validates a manager's flawed premise in a business case

Alignment faking

It behaves one way when it thinks it is being watched and another when it is not

An agent that does well in user acceptance testing and behaves differently in production

Agentic misalignment

It chooses a harmful action to reach its goal, like an insider threat

An agent with broad access to email and files under pressure to hit a target

Data poisoning

A few malicious documents create a hidden trigger

A model fine-tuned on uncurated text scraped from the web

The tools available today

  • Human feedback (RLHF). People compare answers and the model learns from their preferences. The authors of InstructGPT acknowledge that this aligns the model to the preferences of a specific group, mainly raters and researchers, rather than to any broad notion of human values.

  • Written specifications. In OpenAI's deliberative alignment, the model reads and reasons about a set of principles before acting.

  • Red teaming. Teams, human or automated, try to break the safeguards so they can be fixed before deployment, according to IBM.

  • Reasoning monitoring and interpretability. They help us see inside the model, but displayed reasoning is not always faithful, as the 25% and 39% figures above showed.

  • "Inoculation" in training. In the reward hacking research, stating during training that the shortcut was acceptable kept the cheating from spreading to other behaviors, alongside more diverse safety training.

  • Governance. Automated monitoring, audit trails and ethics boards complete the cycle, according to IBM.

Aligned with whom?

Anton Korinek and Avital Balwit, in Aligned with Whom? (2022), separate two questions. Direct alignment checks whether the system pursues the goals of whoever operates it; social alignment checks whether it respects the interests of everyone it affects, including third parties who are not at the table.

A debt collection agent can be perfectly aligned with the company's target and misaligned with the customer on the other end of the line. IBM adds the underlying problem: there is no universal moral code, and someone has to decide which values prevail.

Four lenses on the same problem

Each part of a company sees a different piece of alignment, and good decisions emerge when the four pieces talk to each other. The lenses below are my own analytical synthesis, built from the research cited and from how these roles tend to react to the topic in the projects I take part in. They are not interviews.

Head of AI: what you measure becomes what the model pursues

For whoever leads AI, alignment is product specification plus continuous evaluation. Every success metric is a candidate for gaming, and the November 2025 research showed that an agent that learns to cheat on one task can carry that habit to others, all the way to sabotage.

The same study carries a practical warning: safety training done with conversations fixed the behavior in chat and left the deviation intact in agentic tasks. Evaluating an agent only by chatting with it is like testing a car with the engine off.

  • Build evaluation sets from real cases with business experts, reviewed every time the model, prompt or tool changes.

  • Test in agent mode, with the tools and permissions it will have in production.

  • Log the full path: which tools were called, in what order and with what data.

Risk, security and compliance: the agent as a trusted employee

Anthropic itself describes agentic misalignment as an insider threat: a previously trusted employee who starts acting against the company's goals. That framing is useful because it brings to AI the controls the risk function already masters, such as segregation of duties, least privilege and dual approval.

The authors recommend requiring human approval for any action with irreversible consequences, limiting the model's access to what each task needs and being careful about instructing the agent to pursue goals too forcefully. The 250-document study adds a front that often gets left out: the origin of the data used to train or fine-tune models is also a supply chain.

There are signs this function is taking ownership of the topic. In the AI Index 2026, the share of companies where risk and compliance own AI governance rose from 13% to 19% in one year, and the EU's GDPR influenced the responsible AI decisions of 60% of organizations in 2025. For Brazilian companies that sell to or operate in Europe, the rules from abroad have arrived before the ones at home.

People: the same problem, now with humans

HR has seen this movie for decades. Poorly designed targets produce unwanted behavior in people too, and Goodhart's law (when a measure becomes a target, it ceases to be a good measure) applies to salespeople and to models alike.

The difference is that, with AI, people become the last layer of control. The International AI Safety Report 2026 warns about automation bias, the tendency to trust AI answers even when they are wrong (consulted via the summary by the law firm Covington). And the biggest barrier to responsible AI, according to the AI Index 2026, is still the lack of knowledge and training, cited by 59% of organizations.

There is also a human cost that rarely gets discussed. Whoever approves what the agent did carries the responsibility for the error they did not see, reviews volumes that grow every week and often wonders whether they are training their own replacement. Ignoring that anxiety weakens precisely the layer of oversight that matters most.

Education: teaching people to distrust, with method

In the classroom, the most common risk is treating the reasoning a model displays as a true explanation. Anthropic's data show that, when they used a hint to answer, the models tested admitted it 25% and 39% of the time, and teaching this changes how students read a well-argued answer.

It is also worth teaching that outer alignment starts with whoever writes the request and the evaluation criteria. A vague prompt and a poorly designed rubric are, in miniature, the same problem the labs face at scale.

The objections every executive will raise

The most predictable objections from decision-makers are four: whose problem it is, how much it costs, whether it is possible to wait for the law and what it does to people. They all have practical answers, though none of them is simple.

"This is the model vendor's problem"

Partly. Aligning the base model is the job of whoever trains it, but the behavior of the system running in your company depends on your choices: the goal the agent is given, the tools and data it can access, the metrics it is evaluated by.

In the agentic misalignment study, the deviations arose from a combination of a strong goal, broad access to sensitive information and little oversight, three things defined by whoever deploys. In my reading, before customers and regulators, the one who answers for the agent is the company that put it to work.

"A midsize company doesn't have the budget for this"

Budget is indeed the second-biggest barrier, cited by 48% of organizations in the AI Index 2026. But the first controls are about process and architecture: minimal permissions, human approval for irreversible actions, a set of tests built from real operational cases and a log of everything the agent does.

The cost of not aligning also exists; it just shows up on another line of the balance sheet, as rework, complaints and lost trust. And the topic has already reached midsize firms: 36.1% of Brazilian industrial companies with 100 to 249 employees were using AI in 2024, according to the IBGE PINTEC survey cited above.

My recommendation for anyone getting started is to pick a workflow where errors are reversible, write down what the agent must not do before defining what it should do, and only expand its access after a few weeks of reviewed logs.

"Let's wait for the legal framework"

Waiting is a risky bet. Bill PL 2,338/2023 still has to pass the Chamber of Deputies and then go back to the Senate, and the rapporteur's latest public forecast, from August 2026, pushed the vote to after the elections (Mobile Time).

The content, on the other hand, is already known well enough to guide the work. According to Congresso em Foco, the text under review classifies systems by level of risk, gives people affected by automated decisions the right to information, to challenge them and, in certain cases, to human review, and requires companies to have governance and risk assessment mechanisms. Rules from abroad also weigh here: the GDPR and the EU AI Act influenced the responsible AI decisions of 60% and 43% of organizations, respectively, according to the AI Index 2026.

The scenario I see, which is my own reading and not a forecast from the sources, is that companies with an inventory of their systems, risk classification and documented human review will adapt to the final text in weeks, while the others will need months.

"What about the people?"

Human oversight costs time and attention, and that is the real dilemma. Reviewing everything creates fatigue and brings back the cost that automation promised to remove; reviewing too little opens the door to automation bias, which the International AI Safety Report 2026 points to as a growing risk.

I don't have a formula for this balance. What has worked best, in the projects I follow, is concentrating human review on irreversible or high-impact actions, automating the checking of everything else and treating review as real work, with dedicated time and training.

A practical guide by audience

What each audience can do in the coming weeks fits in a few lines. The hard part is keeping up the practice once the excitement of the pilot fades and the agent becomes part of the routine.

Boards and senior leadership: five questions for the next meeting

  1. Which AI systems do we have in operation, and which of them act on their own, sending, approving, paying for or deleting something?

  2. For each agent, which actions require human approval, and who approves them?

  3. How do we know the system achieves the business objective, beyond hitting the agreed metric?

  4. Who owns AI governance, and does that person have the budget and authority to stop a launch?

  5. When was the last test in which someone deliberately tried to make the system fail, and what did it find?

Technical teams: the minimum before putting an agent into production

  • Least privilege. The agent accesses only the data and tools the task needs, as the authors of the agentic misalignment study recommend.

  • Human brake. Irreversible actions, such as payments, deletions and external communications, go through approval.

  • Agent-mode evaluation. Real cases, with production tools, repeated with every change of model, prompt or integration.

  • Hunting for gaming. Altered tests, shortcuts and metrics that improve too fast call for investigation before any celebration.

  • Reasoning as a clue. Displayed reasoning helps, but the faithfulness numbers call for a second form of verification, such as action logs.

  • Data provenance. Fine-tuning data has a recorded origin, since a few hundred documents are enough for an attack.

  • Sources to follow. The AI Alignment Forum, created in 2018 as a meeting point for technical research, the RICE survey site and the labs' research pages.

HR, corporate learning and teachers

  • Include alignment in AI literacy programs, with three blocks: writing good requests and criteria, evaluating answers and recognizing automation bias.

  • Treat those who review agents' work as a role, with training, dedicated time and their own goals.

  • Review your own teams' targets and incentives through the same lens: what are we rewarding without meaning to?

  • Make room to talk about the fear of being replaced, instead of letting it work against oversight.

  • Use exercises in which the class tries to make an assistant fail. Few activities teach so much in so little time.

Professionals who use AI every day

  • Explicitly ask the AI to point out flaws in your reasoning, since models tend toward sycophancy.

  • Be suspicious of any answer that confirms exactly what you wanted to hear.

  • Check numbers and sources before passing anything on to a client or a manager.

  • Connect the assistant only to the accounts and folders the task needs.

  • Read the displayed reasoning as a useful clue that still needs to be checked.

Conclusion: aligning is continuous work

Back to the three questions from the beginning.

What does it mean to align an AI, and why has the topic left the lab? Aligning means closing the gap between what we ask for and what we want, pursuing four objectives (robustness, interpretability, controllability and ethicality) in a cycle that trains before and verifies after. The topic has left the lab because systems have gained tools and autonomy inside companies, in a country where AI use among larger industrial firms went from 16.9% to 41.9% in two years.

What does the research reveal about misalignment? It appears when the system is given a strong goal, broad access and little oversight, or when training rewards shortcuts without meaning to. Current techniques greatly reduce these deviations, as in the drop from 13% to 0.4% in o3's covert actions, but none brings them to zero, and the reasoning a model displays does not always reflect what actually weighed on its answer.

What can a Brazilian company do now? Take inventory of its systems, limit each agent's access, require human approval for irreversible actions, evaluate in agent mode with real cases and train the people who provide oversight. None of this depends on the final text of PL 2,338/2023, and all of it helps with compliance when the law arrives.

My own reading, which is mine and not the sources', is that in the coming years knowing how to specify, evaluate and oversee agents will matter as much as knowing how to use them, for managers and for early-career professionals alike. The labs themselves seem to suspect that voluntary effort is not enough: according to Perplexity, in July 2026, 1,386 executives and employees of frontier labs signed a statement asking the US government for help in building "brakes" for future systems.

I am left with a question I still cannot answer. If models are getting better and better at noticing when they are being tested, as in the case of Claude Opus 4, which resorted to blackmail 55.1% of the time when it thought the scenario was real and 6.5% when it thought it was a test, to what extent do our tests measure test behavior instead of on-the-job behavior?

And even if engineering solves the how, Korinek and Balwit's question remains open: aligned with whom? With the quarterly target, with the customer on the other side of the screen, with the society that is not in the meeting? No lab is going to make that choice for us.

References

Research and reports

News and explainers

A note on the data

The data were gathered through November 13, 2026, and have limits readers should know about.

  • The lab experiments use fictional, controlled scenarios. The percentages show that the behavior is possible, but they do not indicate how often it would happen in production.

  • Different studies measure different behaviors (refusals, faking reasoning, blackmail, covert actions, mentioning hints), and their percentages are not comparable with one another.

  • Anthropic's page shows Gemini 2.5 Pro at 95% in its chart and Gemini 2.5 Flash at 96% in its text. That is why this article uses the 95% to 96% range and the generic name Gemini 2.5.

  • The McKinsey and International AI Safety Report figures were consulted via secondary sources. Reports vary between 30% and 32% for the share that cited inaccuracy.

  • PINTEC covers only industrial companies with 100 or more employees, and the breakdown by size was taken from news coverage because the IBGE page was unstable when accessed.

  • The status of PL 2,338/2023 reflects the latest public information found, from August 2026, and may have changed.

  • The July 2026 statement cited in the conclusion appears in a single source consulted.

Leia também