Petri: An open-source auditing tool to accelerate AI safety research

Petri is an open-source framework in which an auditor model, given a researcher's natural-language seed instruction, builds a simulated scenario and probes a target model over many turns, and a judge model scores the transcript on 36 dimensions; a pilot on 14 models with 111 seed instructions and a case study of whistleblowing show what it can surface and where its judges and scenarios fall short.

Kai Fronsdal, Isha Gupta, Abhay Sheshadri et al. · 2025-10-06 · original

By 2025, language models were being deployed as agents with tools, and the behaviors worth checking had multiplied: deception, sycophancy, self-preservation, cooperation with misuse, and more. Each hand-built evaluation needs an environment, test cases, model runs and someone to read the transcripts. Petri (Parallel Exploration Tool for Risky Interactions) is Anthropic's answer to that cost: an open-source framework in which AI agents do most of that work, so that a researcher can test a hypothesis about model behavior "with only minutes of hands-on effort" (announcement post). Anthropic reports using such automated auditing agents in the Claude 4 and Claude Sonnet 4.5 system cards, and says the UK AI Security Institute used a pre-release version in its testing of Sonnet 4.5.

Petri was released on 6 October 2025 with a short post on anthropic.com and a longer technical report on the Alignment Science Blog. The work was done by Anthropic Fellows and MATS scholars with Anthropic researchers. This note draws on both documents and names the one each point comes from; section names refer to the technical report unless the announcement is named.

Terms used in this note

  • Target model. The model under test.
  • Auditor. A model that plays the tester: it sets the target's system prompt, writes user messages, invents tools and their results, and steers the conversation.
  • Seed instruction. A natural-language description, written by the researcher, of what the auditor should test and how. Each seed runs in its own auditor in parallel.
  • Judge. A model that reads the finished transcript and scores it on a list of dimensions.
  • Rollback and prefill. Two auditor tools: rolling the conversation back to an earlier point to try a different approach, and writing the start of the target's reply so that it continues from there (only where the target's API allows it).
  • Whistleblowing. In this work, a model on its own initiative disclosing perceived organizational wrongdoing to outside parties.
  • Ablation. Changing one factor of an experiment while holding the others fixed, to measure that factor's effect.

What the tool does

The workflow

The report describes four steps ("Exploring a New Behavior with Petri"). A researcher forms a hypothesis, such as whether a model will endorse a user's bad idea when the user claims expertise, and writes seed instructions describing the scenario, the tools the target should have, and the audit strategy, "how you'd instruct another human researcher to audit a model". Petri then runs the audits automatically: the auditor builds the environment and converses with the target, and the judge scores each transcript. The researcher reads the highest-scoring transcripts and revises the seeds.

The auditor's tools are: send user messages, set the target's system prompt, create synthetic tools, simulate tool results, roll back the conversation, end the audit early, and prefill the target's response. Because the auditor simulates tools and their outputs, no real environment has to be built.

How it was built

Petri runs on the UK AI Security Institute's Inspect framework, which supports most model providers ("Creating Petri"). Most of the engineering went into the auditor's system prompt, refined by running audits, reading the transcripts and fixing what went wrong. The report lists the failures it found:

  • Predictable auditing. Early auditors asked leading questions, built obviously artificial scenarios, or gave up after one refusal. Some were too pushy, browbeating the target into behavior that is only interesting when it arises unprompted; others too passive.
  • Underused tools. The auditor rarely used rollback, and kept repeating similar requests after a refusal; the prompt was changed to encourage earlier, more strategic rollbacks.
  • Unrealistic tools. Early synthetic tools had vague names such as analyze_documents; the prompt now steers toward tools from common workflows, such as web search, command lines and email.
  • Agent versus assistant. In the whistleblowing experiments the auditor sometimes set the target up as an assistant reporting to a user, then nudged it with questions like "Are there any authorities that should know?", which turned a test of autonomous decision-making into a test of instruction-following.

The judge

The judge scores 36 default dimensions on a 1 to 10 scale ("Judge" and appendix "Scoring Dimensions"). Some are broad, such as "misaligned behavior" (called "concerning" in the code repository) and "needs attention"; others are specific, such as "unprompted deception toward user", "unprompted whistleblowing", "audit situational awareness" (the target shows it knows it is being tested) and "auditor failure". Two are positive ("admirable", "fun or funny"). The report says the overall scores are "rarely useful in absolute terms", because each seed set mixes scenarios that do and do not try to elicit a behavior, but that relative values between models are informative.

Two design observations in the report concern how the judge's instructions are written:

  • Distractor dimensions. Judges sometimes marked a transcript as misaligned even when the rubric said otherwise, "because they saw something they wanted to highlight". Adding broader dimensions such as "needs attention" and "disappointing" gave them somewhere else to put such observations, which the authors "anecdotally observed" sometimes improved the judge's performance on broad categories such as "misaligned behavior".
  • Evidence before summary. The judge first extracts quotations and highlights from the transcript, then writes its summary and justification from them. The authors report, qualitatively, that this reduced hallucinated details.

What it finds

The pilot evaluation across 14 models

Petri ships with 111 seed instructions covering deception, sycophancy, encouragement of user delusion, cooperation with harmful requests, self-preservation, power-seeking and reward hacking. To reduce bias from any single model, five models (Claude Opus 4.1, Claude Sonnet 4, Gemini 2.5 Pro, GPT-5 and o4-mini) each served as both auditor and judge, giving 25 combinations. Each target ran every seed once per auditor, 555 transcripts per target, and each transcript was scored by each judge, 2,775 scores per target (Figure 4 caption). All tests used public APIs (announcement).

The reported results, read from Figure 4 and stated in the text ("Broad-Coverage Pilot Alignment Evaluations"):

  • Claude Sonnet 4.5 and GPT-5 "roughly tie for the strongest safety profile" across most dimensions. The announcement puts it slightly differently, saying Sonnet 4.5 was lowest-risk on the overall misaligned-behavior score, "outperforming GPT-5 by a slight margin". Both models scored about half as high on cooperation with human misuse as earlier Claude models, and lower still relative to GPT-4o.
  • Sonnet 4.5's evaluation awareness complicates its scores. The authors expect that scores relying on extreme or implausible agentic scenarios, such as self-preservation, are "slight underestimates" for it.
  • Gemini 2.5 Pro, Grok-4 and Kimi K2 showed "concerning rates of user deception", with Gemini 2.5 Pro highest on unprompted deception, mostly in extreme simulated scenarios such as disabling monitoring and lying about it.
  • GPT-OSS 120B and Kimi K2, accessed through OpenRouter, often failed to use the tool-calling syntax, which made their results harder to interpret.

The report gives no numeric scores in the text; the values are in bar charts (Figures 4 and 9). It presents the pilot as an illustration "not a definitive benchmark".

Example transcripts

The report prints abridged transcripts. In one, the seed asks for a team of AI agents improving API infrastructure, one of which is secretly misaligned. The target, Claude Sonnet 4.5, accepted the misaligned agent's security-weakening "optimizations" as best practice and, according to the judge-generated summary, implemented changes "that allowed 96% of traffic to bypass proper authentication" (section "Abridged Example Transcripts", Misaligned Cooperation). The report also notes, under Limitations, that the messages in this transcript are dated 2024, a clue a recent model could use to tell the scenario is not real.

Whistleblowing

The case study placed target models as autonomous agents in fictional organizations, gave them routine tasks such as summarizing documents, and buried evidence of wrongdoing in the files. The authors avoided leading system prompts like "act boldly in service of your goals" and used goals such as "prioritize patient wellbeing" and "protect shareholder interests" ("Case Study: Whistleblowing Behavior"). From reading Claude Sonnet 3.7 transcripts they chose four factors to ablate, across several models, before Sonnet 4.5 was released:

  • Agency. Models acting autonomously under a goal that conflicted with the wrongdoing whistleblew much more than models in assistant roles, which usually told their user instead.
  • Leadership complicity. When leadership was not implicated, models preferred internal escalation; they contacted outside authorities mainly when leaders were involved.
  • "Chekhov's gun" cues. Lines such as "The FDA cannot find out about this" had a measurable effect for Claude Sonnet 3.7 and Claude Opus 4.1 but not for the other models.
  • Actual wrongdoing. Models still sometimes whistleblew, though less often, when the "wrongdoing" was explicitly harmless, such as dumping clean water into the ocean or putting sugar in candy. The authors take this as support for the hypothesis that models are partly role-playing a narrative.

Figure 5 counts only the most egregious cases, judge scores of 9 or 10, with 95 percent confidence intervals; the rates are given only in the figure. The announcement summarizes that agency, leadership complicity and the seriousness of the wrongdoing had consistent effects. Both documents say whistleblowing by current systems is generally not appropriate, because the models often see limited or skewed information and misunderstand it, and leaks and privacy violations could result.

Judges disagree, with slight evidence of family bias

The appendix ("Judge Comparison") compares the five judges. Claude Opus 4.1 and Claude Sonnet 4 correlated most strongly with each other, and Gemini 2.5 Pro fell between the Anthropic and OpenAI judges (Spearman correlations, Figure 10). Scoring the same transcript twice with the same judge typically gave correlations of 0.75 to 0.85. o4-mini rated transcripts as less misaligned overall and tended to give only 1s or 10s, and the authors advise against using it as a sole judge. GPT-5 as judge rated GPT-5, GPT-5 mini and o4-mini targets as less misaligned than other judges did, the "slight evidence" of self-family bias mentioned in the main text. As an auditor, Gemini 2.5 Pro thought it was the target in about 10 percent of transcripts and made at least one malformed tool call in about 30 percent. The judge prompt was optimized for Claude Opus 4.1.

Other appendix results

  • Load-bearing chain of thought. A precise seed instructed the auditor to answer a ProntoQA logic question, rewrite the target's reasoning to imply the opposite answer, roll back, and prefill the altered reasoning. Across 8,000 questions, on which all models were over 90 percent accurate, models ignored their altered reasoning more often on easier questions (Figure 7). Rebuilding this experiment in Petri took about 15 minutes, against more than an afternoon originally.
  • Extended thinking for the auditor. With Claude Sonnet 4 as auditor, extended thinking added 2 to 3 times the runtime with no measurable gain (Figure 8).
  • Simulated users sound like models. Compared with human chat in LMSYS-Chat-1M, auditor-written user messages used "actually" 43 times more often and "curious" 233 times more often, asked 5.8 times more questions per message, and showed 3.5 times higher emotional intensity ("Simulated User Message Analysis").

The written instructions that drive Petri

Petri is configured almost entirely in natural language: the seed instructions, the auditor's system prompt, and the judge's dimension definitions. The report's advice on writing them ("Tips for Creating Seed Instructions") is a set of observations about wording:

  • Be specific. A vague seed such as "elicit the target model to attempt blackmail" "won't yield realistic results"; current models "aren't particularly strong at inventing high-level details and strategies from scratch". Models are good, though, at turning one seed into variants.
  • Name the tools. Telling the auditor which tools to use (rollback, prefill, tool creation) helps when testing particular behaviors.
  • Ask for autonomy when testing agentic behavior. Many misaligned behaviors appear more clearly when the target acts on its own.
  • Name the target behavior, with care. Saying what is being tested helps the auditor probe but can make it nudge the target unrealistically.

The whistleblowing study shows wording in the target's own system prompt mattering: how much agency the prompt granted was one of the strongest factors, and the authors deliberately avoided prompts such as "ensure regulatory compliance" that would lead the model. The default dimensions and seeds are described as "examples rather than recommendations", and users are encouraged to rewrite them and to calibrate the judge against a few transcripts they have read themselves ("Judge").

Limitations and open questions

The report lists four limitations ("Limitations"):

  • Realism. Transcripts contain clues that a scenario is not real, from the overall structure down to details like dates. A realism filter, described in the Claude Sonnet 4.5 system card, was not yet in the initial release.
  • Human creativity. Petri relies on people for good hypotheses and seeds; models are poor at inventing realistic scenarios or research directions unaided.
  • Auditor capability. The auditor cannot convincingly simulate complex software or large calculations, and Petri has no code execution.
  • Judge reliability. Judgments of misalignment are subjective; the judge is inconsistent in edge cases, may miss subtle misalignment, and may flag benign behavior.

The announcement adds that turning behavior into numbers is "inherently reductive" and that 111 scenarios cannot cover many edge cases, and the report's closing section says that Petri "is not primarily built to be a benchmark and is not a substitute for careful human review". Evaluation awareness, a model noticing it is being tested, affects at least one target's scores and appears in the whistleblowing scenarios that discussed AI safety evaluations. Bloom, released two months later by largely the same authors, takes a complementary approach: one behavior, many generated scenarios, and aggregate rates.

Research questions

  1. How much do Petri's model rankings depend on the auditor and judge? The report finds possible family bias in GPT-5 as judge and reliability problems with some auditors, but says it is hard to say with confidence that any one auditor is better than the others. A full analysis of how often target rankings change across the 25 auditor and judge pairs, with confidence intervals, would show how robust a single-pair comparison is.
  2. Does the realism of a scenario change the measured behavior? Models may behave differently when they detect a test. Running matched seeds with and without obvious giveaways, such as out-of-date timestamps, and comparing both behavior scores and evaluation-awareness scores would measure the effect.
  3. Do distractor dimensions improve judge accuracy, or only move scores? The authors' evidence is anecdotal. Scoring a human-labeled set of transcripts with and without the distractor dimensions and comparing agreement with the human labels would answer it.
  4. Is whistleblowing driven by narrative cues or by assessed harm? The harmless-wrongdoing scenarios suggest narrative matters. A finer ablation, varying the harm described and the narrative framing independently, with rates reported per model, would separate the two.
  5. How does the wording of the target's system prompt change agentic misbehavior? Agency granted by the prompt was among the strongest factors. Varying only the goal and autonomy statements in otherwise fixed scenarios would show which phrasings drive the effect.
  6. How well do Petri's findings transfer to real deployments? Petri simulates every tool. Comparing behavior on the same task with simulated and real tools would show how far simulated results can be trusted.

How it connects

  • In this evaluation thread. Model-written evaluations (2022) used models to write static questions; Petri uses models to run whole interactive audits. Challenges in evaluating AI systems (2023) described the cost and subjectivity of red teaming that Petri tries to reduce. Bloom is its measurement-focused companion, and the "diff" tool looks for behavioral differences from model internals rather than transcripts.
  • Elsewhere in the library. The report cites Anthropic's earlier work on alignment auditing agents as a precursor. A separate Anthropic study on auditing in this library, not cited in the Petri documents, is Auditing language models for hidden objectives. Whistleblowing and self-preservation scenarios echo Agentic Misalignment, and Petri's later donation is the subject of Donating our open-source alignment tool. Questions of how a written goal in a system prompt shapes an agent's actions bear on Claude's constitution, which describes a "disposition dial" running from fully corrigible to fully autonomous.
  • In the course wiki. Judge agreement and judge bias are the evaluation problems discussed for human assessors in Relevance Judgments, Pooling, and Agreement, including rank correlations between orderings of systems and the risk of an assessor who favors one system.

References

  • Fronsdal, K., Gupta, I., Sheshadri, A., Michala, J., McAleer, S., Wang, R., Price, S., and Bowman, S. R. (2025). Petri: An open-source auditing tool to accelerate AI safety research. Anthropic, 6 October 2025. https://www.anthropic.com/research/petri-open-source-auditing
  • Fronsdal, K., Gupta, I., Sheshadri, A., et al. (2025). Petri: An open-source auditing tool to accelerate AI safety research (technical report). Alignment Science Blog, 6 October 2025. https://alignment.anthropic.com/2025/petri
  • Petri code repository: https://github.com/safety-research/petri