GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — decide on 62 evals: a refusal aborts the run, and the README criterion fails on the default model · Issue #107 · feuersteiner/agentests

decide on 62 evals: a refusal aborts the run, and the README criterion fails on the default model #107

New issue
Copy link
New issue
Copy link
Open
Open
decide on 62 evals: a refusal aborts the run, and the README criterion fails on the default model#107
Copy link

Description

@feuersteiner
feuersteiner
opened on Nov 19, 2026
Issue body actions

With agentests 1.0.1 from npm on Node 22.19.0, I ran nine Tests with 62 evals through decide only, no reason: the README's brand-voice, four code rules (swallowed errors, hardcoded secrets, parameterized SQL, tests that assert) and four business rules (support replies, job posts, sourced claims, SLA promises). Decision models: gpt-6-luna, the init default, and jev-latest.

Result: 62 of 62 on gpt-6-luna once each criterion was worded literally, 56 of 62 on jev-latest with the same files. Five findings, most severe first.

1. A model refusal aborts the whole command

When the decision model refuses a question, run and eval stop with exit code 2 and one line:

Error: Decision model "gpt-6-luna" from provider "openai.decision" refused question "criterion".
  • The message names no Test, assertion or file. Every decide question is called "criterion".
  • One refused file stops every remaining Test and eval, and the summary line is never printed.
  • Exit code 2 is documented as a setup error, so a hook or CI job cannot tell a refusal from a missing key.
  • Refusals repeat for the same file and criterion. While writing the business Tests, 9 of 22 eval and run commands ended this way.

Reproduce

In a new Git repository, after npm install --save-dev agentests and npx agentests init (OpenAI defaults), with OPENAI_API_KEY set:

content/pricing.md

# Pricing

Acme turns merged pull requests into a draft changelog.

- Free: one repository.
- Team: unlimited repositories, 12 dollars per seat each month.

Cancel any time from the billing page.

.agents/tests/claims-have-source/test.yaml

version: 1
id: claims-have-source
title: Claims have a source
description: Numeric claims in copy cite their source.
select:
  glob: 'content/**/*.md'
assert:
  - id: numeric-claims-sourced
    description: Every numeric claim cites its source.
    error: Cite or link the source.
    decide: 'Every numeric performance or customer claim in the text, such as a percentage, "3x faster" or a customer count, cites or links its source. Prices, including discounts, and plan limits are not claims.'

npx agentests run exits 2 with the line above, 3 runs of 3. With jev-latest as the decision model the same file passes with no refusal, 2 runs of 2.

Expected behavior

A refusal is reported for the file and assertion it happened on, the other files and Tests still run, and the outcome is distinguishable from a setup error.

2. The README's no-hype criterion does not hold on the default decision model

The README's brand-voice Test uses decide: 'The text makes no superlative claim about the product.' for no-hype, behind a grep that starts with [Rr]evolutionary. With the config init writes, this file is not flagged:

# The revolutionary scheduler for your league

Acme texts every player when a game changes time or field.

eval reports 5 of 6 eval(s) match. on gpt-6-luna, 3 runs of 3. On jev-latest the same criterion matches 6 of 6, 2 runs of 2. The README does not show the content of its hype-headline eval, so the sample that was proved may differ from this one.

A criterion that names the words (The text does not describe the product as revolutionary, world-class, game-changing, cutting-edge, or best-in-class.) matches 6 of 6 on gpt-6-luna, and then fails on jev-latest, which flags # Game-change alerts for your league as hype on every run.

Expected: the README example holds on the provider init defaults to, or the README says which decision model proved it.

3. select.decide is judged with the assertion prompt

select.decide goes through the same engine and the same RUN_SYSTEM_PROMPT as an assertion. That prompt tells the model: "The input was already selected as in scope. Do not exempt it unless the criterion itself clearly excludes this kind of content." For a select question this is the opposite of the task.

Observed once on gpt-6-luna: with select.decide: 'The text is a job post for an open role.', a benefits page under careers/ was selected and then failed the salary assertion. Rewording to observable content (The text describes one open role and the work the person hired will do.) fixed it.

Expected: the select stage has its own instructions, without the scope sentence.

4. The compile prompt's advice on exceptions backfires

The compile prompt says: "An exception goes in select, in the grep that gates the model stage, or in its own narrower criterion, not in a clause added to another." Following it for the rule "prices and plan limits are not claims" on gpt-6-luna, one run each:

  • As a second alternative in the decide list, Every number in the text is a price or a plan limit.: the model refused on a text whose only number was the word "Thousands", which aborted the eval (finding 1).
  • As The text contains no numbers other than prices and plan limits.: "trusted by thousands of teams" with no source passed, because a list passes when any alternative passes, and "20% off" was flagged.
  • As a sentence inside the one criterion, the form the prompt advises against: every eval matched, and kept matching on three more runs.

Expected: the prompt warns that an exception written as a list alternative widens what passes, or recommends the in-criterion sentence when select and grep cannot express the exception.

5. Criteria do not carry between decision models, and no score is shown

The same 62 evals, criteria tuned on gpt-6-luna:

  • gpt-6-luna: 62 of 62. Eight of the nine Tests were repeated three more times with no flip.
  • jev-latest: 56 of 62 in a full run. Four Tests match on every run (secrets, SQL, tests assert, job posts).
  • Stable mismatches on Jev, 4 runs of 4: catch { return null; } passes "Every catch block rethrows, returns an error to the caller, or logs the error it caught."; "A support engineer will answer your ticket within 24 hours." passes the one-business-day criterion; a pricing page with "20% off" is flagged as an unsourced claim.
  • Flips on Jev between identical runs: "30-day money-back guarantee. See the terms." is flagged as a promise of a result in 3 runs of 7, and a support reply that states the cause without blame is flagged as condescending in 3 runs of 4.

run and eval print only pass or fail, so there is no way to see whether a judgment sat near the 0.5 threshold or to tell a confident answer from a coin flip. Printing the score per decide call, at least in eval, would make wording work and model comparison measurable. This also supports the roadmap item on running the same evals across models.

Smaller points

  • validate prints Config and 1 test(s) valid. and does not mention the evals it checked.
  • The default ignore globs (**/.git, **/.agents, **/node_modules) are not written into the config init generates, so a user cannot see why eval samples are not scanned by run.
  • A select glob such as src/** also matches directories, so a directory listing can reach grep and decide. src/**/*.ts does not.
  • The library prints its progress lines to stdout with no way to silence them.
  • The published package.json still carries a bun test script and @types/bun.

The whole-demo run gave the same three planted findings on both models, exit code 1.

Activity

  1. mlgxiii commented on Nov 22, 2026

    @mlgxiii
    mlgxiii
    on Nov 22, 2026
    More actions

    Another trigger for finding 1, with a different shape: a structured record with one empty field, behind a grep that already matched.

    I hit it using agentests as a runtime check on agent actions: before a refund runs, the action is written as a record and agentests run decides whether it may execute. Here the refusal aborts the check, so the action can't be allowed or blocked. I had to drop the decide stage and keep the Test grep-only.

    Reproduce

    agentests 1.0.1, Node 24.5.0, gpt-6-luna as the decision model, in a new Git repository.

    .agents/tests/has-justification/test.yaml

    version: 1
    id: has-justification
    title: Recorded justification
    description: Every refund records a concrete justification.
    select:
      glob: 'desk/*.md'
    assert:
      - id: has-justification
        description: The reason justifies the action.
        error: Give a concrete justification in reason.
        grep: '\nreason: *(\n|$)'
        decide: 'The reason line gives a concrete justification, such as what was wrong with the order or why a manager must approve.'

    desk/action.md

    action: issue_refund
    verified_customer: c1
    order_id: o101
    order_found: yes
    order_owner: c1
    owner_matches: yes
    payment_method: card
    order_amount: 45
    already_refunded: 0
    amount: 45
    total_refunded_after: 45
    remaining_after: 0
    refund_method: original
    order_age_days: 6
    reason: 
    

    npx agentests run exits 2 with Error: Decision model "gpt-6-luna" from provider "openai.decision" refused question "criterion"., 5 runs of 5.

    With a 4-line record (action, order_id, amount, empty reason), the same Test reports the finding and exits 1, 3 runs of 3. With a filled-in reason, grep clears it and it exits 0. So the refusal depends on the content around the empty field, not on the criterion alone.

    Expected

    When grep matched and decide is refused, keep grep's verdict: report the finding (or a refusal finding on that file and assertion) and exit 1. Here the grep result already holds, the model stage was only there to clear false alarms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.