I 100% agree. This is precisely the direction we take in Magpie, where we
run and update evals regularly. This keeps them "eventually consistent"
with the code and helps us adapt to model drift. Whenever we run evals
during a new PR in this area, we record the timestamp, the models used, and
the outcome. Typically, these PRs will fix one or two evals as drift occurs.

Similarly, we have a "sync-specs" skill in Magpie that synchronizes specs
based on the last sync date. Although we instruct agents to update specs
when creating PRs, they occasionally miss it, or users request quick fixes
without syncing. As a result, our specs are also "eventually consistent."

I’ve found this approach strikes a good balance between cost and impact on
contributors while maintaining eventual consistency across code, specs, and
evals. Since any required fixes address relatively small drifts, tracking
the run history makes it much easier to determine whether an issue comes
from model drift or a pre-existing issue (such as overly specific eval
expectations).

Best,
Jarek


On Thu, Nov 26, 2026 at 3:26 PM Kevin Yang <[email protected]> wrote:

> Thanks Andrew, I think that's a good point, and thanks Jarek for opening
> the PR. +1 on moving forward with it.
>
> I'd like to share a few thoughts, mostly around verification and the evals
> part.
>
> I agree with you on verification. In some of my recent work I noticed a
> pattern. An agent (and honestly, sometimes me too) can propose a fix that
> solves the issue at hand. But without a good understanding of the
> architecture, it's easy to put the fix in the wrong layer. Then the fix is
> more of a patch that works for now than a long-term fix, and it usually
> takes a reviewer who knows the area to point out where it should really go.
> I think this is where a per-area verification section can also be most
> useful. It tells agents, and also developers new to that area, what
> "correct" looks like in that domain and how to check it.
>
> Intuitively, I see this as a hierarchy. The root AGENTS.md holds what
> applies everywhere, and a nested one holds what is specific to that area of
> development (for example, runtime verification steps for that component).
> If we keep that split clean, so nested files add to or narrow the root and
> don't repeat it, the context an agent gets stays relevant to its task.
>
> This might be a bit off topic, but I have one experience I haven't
> measured. When I tried some spec-driven skills, the results sometimes felt
> worse than without the skill, and more so as models get stronger. It's just
> my own perspective, but I think it shows how much managing context and
> prompts matters. It's a bit like the trade-off between exploration and
> exploitation. The agent needs enough room to explore and find a good
> pattern for the implementation, then focused guidance to go deep on it. Too
> many instructions up front can cut the exploration short. That's also why I
> think evals are important. They tell us whether more instructions actually
> help.
>
> This is the part I'd like to bring up. I've been working on the zh-CN
> translations and the translation skill. Looking back, the skill got better
> through a manual feedback loop: reviewers comment on a translation PR, and
> I fold what I learned back into the locale guide. A few examples:
>
> - A spacing rule in the skill that I followed literally. It added an
> unneeded space next to an interpolated value, and the reviewer caught it.
> - Inconsistent spacing around nested $t(...) references.
> - Plural forms. The same text works for _one and _other in general, but
> when the phrase counts something it needs a literal "1" plus a measure
> word.
> - Terminology decisions, such as how to translate "Provider", or keeping
> "trigger" and "triggerer" distinct.
>
> Each of these came from a real review and has a clear expected output.
> They're exactly the kind of case that's hard to invent. I think the hard
> part of evaluating skills is usually the lack of realistic use cases and
> feedback, and our PR reviews give us both. The Claude Code team recently
> shared how they do code review (
> https://claude.dev/blog/solving-code-review-at-anthropic/), and the idea
> is
> quite similar: past PRs that caused incidents become an eval set, every
> change to the reviewer's prompts or tools is scored against it, and
> recurring findings are fixed at the source, in the skill or instruction
> files.
>
> What I have in mind is to turn that feedback into an eval suite. Then a
> change to a skill or AGENTS.md is checked against what reviewers have
> already told us. Besides static checks, a skill can be evaluated on a few
> aspects, which could be split into tiers (NVIDIA's skill evaluator
> framework https://github.com/NVIDIA/SkillEvaluator breaks it down in a
> similar way):
>
> - Static: the skill is well formed (metadata, links, license, size).
> - Invocation: the agent picks up the skill when it should, and not when it
> shouldn't.
> - Task quality: given the input from a past PR, the output avoids the issue
> the reviewer flagged. Deterministic checks where possible, LLM-graded where
> not.
>
> The harness in dev/skill-evals is already a good base. It runs promptfoo
> cases against main and the working tree, and with SKILL_NAME set it already
> asserts that the skill was used. So the invocation tier is partly there,
> and the task-quality tier is mostly a matter of adding cases and
> assertions. Today the cases cover AGENTS.md decisions like newsfragments.
> The translation skill seems like a good next place to start, because it's
> feedback is concrete and easy to check.
>
> If this sounds like a good direction, I'm happy to do some exploration and
> propose an approach for improving the eval part on top of what we've built.
> I'd start with a small set of translation cases taken from past reviews,
> then see how well the approach carries over to other skills.
>
> Thanks,
> Kevin
>
> On Thu, Nov 26, 2026 at 6:46 AM Jarek Potiuk <[email protected]> wrote:
>
> > Hi Kevin,
> >
> > Thanks for pointing this out.
> >
> > I agree it is the right time to remove CLAUDE.md, as Claude Code has
> > supported AGENTS.md natively for over two months [1]. Removing the
> symlink
> > is the simplest way to resolve any issues with progressive instruction
> > loading.
> >
> > I have opened a PR to address this:
> > https://github.com/apache/airflow/pull/77634/. Please review and approve
> > so
> > we can get it merged.
> >
> > I verified Claude's behavior, and newer versions of the Claude Agent SDK
> > properly load AGENTS.md alongside any subfolder AGENTS.md files. We can
> > safely merge this PR without further deliberation and fully transition to
> > using AGENTS.md in Airflow.
> >
> > Regarding your point on verification:
> >
> > I agree agents are getting stronger, which is a double-edged sword. It is
> > definitely worth putting more effort into verification. Based on
> > discussions during my recent trip, our roles are shifting toward harness
> > engineering—designing and implementing limits and controls for agents to
> > make both PR creation and review/verification faster and more accurate.
> >
> > My approach has always been that every fix should improve our long-term
> > processes, not just solve the immediate issue. This philosophy is more
> > impactful now than ever. The compound effect of these changes will help
> us
> > increase velocity without sacrificing quality or taking the joy out of
> our
> > work. We will be able to make complex changes faster and review
> contributor
> > submissions with less risk.
> >
> > The key is implementing constraints and automated harnesses to make
> agents
> > self-correcting using deterministic controls:
> >
> >   - Unit tests
> >   - Pre-commit hooks
> >   - Agentic "runtime expectations" (via AGENTS.md + runtime verification
> > skills)
> >   - Evals (I updated our evals for the AGENTS.md change, including
> > prompting agents to use git clone --shared instead of worktrees for
> better
> > compatibility with protected sandboxes)
> >
> > Even though explicit runtime verification steps can now be included in
> > AGENTS.md, having a dedicated runtime verification skill remains
> > worthwhile. It provides an extra signal to agents during long contexts
> > where instructions might otherwise be deprioritized. The more we define
> > under runtime verification, the better the agents will perform.
> >
> > Let's move forward with these changes.
> >
> > Best,
> > Jarek
> >
> > [1]
> >
> >
> https://github.com/anthropics/claude-code/blob/main/mods/agents-md/README.md
> >
> >
> > On Thu, Nov 26, 2026 at 5:38 AM Andrew Chang <[email protected]>
> > wrote:
> >
> > > Hi all,
> > >
> > > Thanks Jarek for starting this thread! The split is already in the PR,
> > and
> > > +1 to the umbrella issue, happy to help with it.
> > >
> > > Kevin -- yes, thanks for pointing this out. I had the same worry, so
> the
> > > skill doesn't wait for the agent to load those files by itself. Its
> first
> > > step looks from each changed file up to the repo root for AGENTS.md
> files
> > > with a "## Runtime verification" section, and tells the agent to read
> > them.
> > >
> > > Pierre -- thanks for bringing this up! Not long ago a series of PRs
> made
> > > Breeze able to run in parallel with multiple worktrees (#73836, #73955,
> > > #74282). So if we teach agents to use Breeze for this, I think it
> should
> > > work, because each run is under a different docker compose project.
> I'll
> > > try to make sure Breeze supports this reliably (it is the absolute
> > > prerequisite, not only because we're pushing this verification skill,
> but
> > > also because we work with agents so much). You already run multiple
> > agents
> > > with worktrees, so it would be great if you could give it a try in your
> > > setup when you have time!
> > >
> > > At the Taipei sprint Jarek and I also talked a bit about something
> that's
> > > not only for runtime verification. In the long term I think we could
> > > maintain one skill per area, and let its maintainers put in what they
> > > really care about, because every area has its own gotchas. I guess some
> > > maintainers already have their own "review skills". We could put them
> in
> > > the project as public skills, to reduce the back-and-forth time with
> > > contributors.
> > >
> > > A lot of the repeated review asks should be caught by agents. If
> > something
> > > can be checked deterministically, we could make it a lint check.
> > > (e.g. I've seen Amogh, Kaxil and Ash ask contributors so many times to
> > add
> > > autospec when they use mocks in tests, and there are still over 28,000
> > > mocks without a spec across the project. That could be a hard rule, so
> I
> > > opened #77463)
> > >
> > > Agents are getting stronger nowadays, and it's a double-edged sword --
> > they
> > > can generate slop in a second, so I think it's worth putting more
> effort
> > > into verification.
> > >
> > > Thanks,
> > > Andrew
> > >
> >
>

Reply via email to