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 — Roadmap · Issue #1 · feuersteiner/agentests

Roadmap #1

New issue
Copy link
New issue
Copy link
Open
1 / 11 of 1 issue completed
Open
Roadmap#1
1 / 11 of 1 issue completed
Copy link

Description

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

The single place that tracks where agentests is going. Version 1 is shipped. Chapter 2 is the next version and the subject of the next design discussion; most of it is hypothesis, and it says which parts. Everything after it is a checklist with no dates, and an item becomes a sub-issue when work on it starts.

A Test is one .agents/tests/<id>/ folder: TEST.md states the rule, test.yaml holds what runs, and evals/ holds cases that prove it behaves as intended.

1. Version 1: shipped

  • MVP: MVP #103, merged in Mvp #104 and published to npm as agentests 1.0.1 on 2026-11-17.

What a team can do today: write a rule in plain language, have a coding agent compile it, prove it on evals, and run it on the repository or on changed files with a pass or fail exit.

In version 1: test.yaml format version: 1, one selector per Test (glob, grep, decide), a list of escalating assertions (grep, decide, reason), evals as folders of real files, the commands init, compile, list, validate, eval, and run, and the Git scopes --changed, --staged, and --base.

Decisions made on the way

  • Name. The package, the command, and the config file are agentests (npx agentests, agentests.config.yaml). The library class is Agentests. agent-tests was taken on npm.
  • Positioning. Linting for intelligence: a judgment call becomes an engineered check. Local text checks first, one narrow question where a model is needed, evals that prove the result before it blocks a commit.
  • Plain Node. The published package is compiled JavaScript and runs with npx on Node 22 or later. Bun is this repository's tooling only.
  • The environment goes through the CLI. The CLI loads .env and passes the environment in. The library never reads .env or process.env, and fails when a key the config names is missing.
  • compile calls no model. It prints a prompt and the team's own coding agent does the work. Without a TEST.md or without an id, the prompt has the agent write the rule first.
  • One thing per criterion. The compile prompt teaches the agent to break a broad rule into narrow yes-or-no criteria, one per signal, each behind a free text check.
  • Providers by flag. init --decision openai|jev --reasoning openai|anthropic writes the config. There is no separate config command.
  • Quiet output. The banner prints only on a terminal, so agents, pipes, and hooks get the command's output alone.
  • Tests. 568 automated tests on stub engines, run before every push and before every publish. Model accuracy is measured separately, on a fixture of 21 real Tests with evals, never in the unit tests.
  • Proof on a real model. The brand voice example in the README and the demo film was run against the decision model. The first run matched 5 of 6 evals: "The text does not blame the reader for a problem" let a blaming line through. "The text does not say the reader made a mistake" matched 6 of 6, twice. A broad criterion did not hold and a narrow one did. That result is the reason for chapter 2.

2. Next version: composed asserts

Status: design, not started.

This chapter holds two kinds of statement, and each is marked.

Direction, decided:

  • An assert is a question. It has three properties: an id, a description that is the question it asks, and a fail message.
  • An assert may carry a grep as a signal. Most asserts are answered by the decision engine.
  • decide and reason stop being fields the author picks per assert.
  • A workflow in test.yaml composes asserts by id, with thresholds and logic, like a small state machine. Its result fails the Test.
  • The compile prompt pushes the agent to break a rule into many questions, tens when it can, the way one judges a spam email.

Everything else in this chapter is a hypothesis. Sections that go beyond the direction above open with Hypothesis. A hypothesis is a starting point for the next discussion, not a plan. It has to be argued, and where it makes a claim about models, accuracy, or cost, measured on evals before it is adopted. The syntax in every example is a hypothesis too.

Why

Version 1 asks the author to think about four things at once: which sources (glob), which text (grep), which model (decide or reason), and in which order they escalate. The format fixes that order, has one threshold for the whole config, and can only combine criteria in two ways: a list is "any one is enough", and separate assertions are "all must hold".

Real judgments do not work that way. Deciding whether an email is spam is not one question. It is many small ones: is the subject bait, does the sender look forged, does it ask for money, does it ask for credentials, does it press for time, is the greeting generic, are the links mismatched. No single answer decides. A few strong signals, or several weak ones together, do.

Version 1 cannot say "fail when three of these ten are true", or "this one alone is enough above 0.8, these two together above 0.6". The next version makes that the core of the format.

The idea

Two parts, and only two:

  1. Asserts are questions. Each assert asks one narrow yes-or-no question about a source and gets a score from 0 to 1. Nothing else: no engine choice, no escalation order.
  2. A workflow composes them. One block in test.yaml refers to asserts by id and says, in a small expression language, which combinations of scores fail the source.

The author writes many small questions, tens when the rule is fuzzy, then states how they add up. The compile prompt pushes the agent to do exactly that.

A possible format

Hypothesis. The shape shows the direction. Every name, keyword, and operator in it is open.

version: 2
id: no-spam
title: Outbound email is not spam
description: Emails we send do not read as spam.
select:
  glob: 'emails/**/*.md'
assert:
  - id: subject-baits
    description: Does the subject line promise a prize or demand urgent action?
    fail: Rewrite the subject to say what the email is about.
    grep: '[Uu]rgent|[Ww]inner|[Ff]ree|[Aa]ct now'
  - id: sender-looks-forged
    description: Does the sender name imitate a person or a brand it does not belong to?
    fail: Send from the real sender name.
  - id: asks-for-money
    description: Does the email ask the reader to pay or transfer money?
    fail: Remove the payment request or link to the invoice.
  - id: asks-for-credentials
    description: Does the email ask the reader for a password, a code, or card details?
    fail: Never ask for credentials by email.
  - id: presses-for-time
    description: Does the email give the reader a short deadline to act?
    fail: Remove the deadline or state the real one.
  - id: generic-greeting
    description: Does the email greet the reader without using their name?
    fail: Address the reader by name.
  - id: mismatched-links
    description: Does any link text name one site while its address points to another?
    fail: Make each link text match its address.
workflow:
  - fail: asks-for-credentials > 0.8
  - fail: subject-baits > 0.7 and sender-looks-forged > 0.6
  - fail: count(> 0.6) >= 3

An assert is one question

Three required properties and one optional signal:

  • id: lowercase kebab-case, unique in the Test. The workflow refers to it.
  • description: the question this assert asks, written as a question. It goes to the model as is. One observable thing per question.
  • fail: what to change when this assert contributes to a failure. It replaces error.
  • grep (optional): a text signal, described below.

The fields decide and reason leave the assert. The author no longer picks an engine per criterion. Questions go to the decision engine.

Hypothesis: the score is the probability that the answer is yes, and fail replaces the name error.

grep is a signal, not a stage

A text check is free and deterministic, so it stays as a signal on the assert.

Hypothesis: its one job is to decide whether the question is worth asking. When an assert has a grep and it does not match, the score is 0 and no model is called. When it matches, the question is asked. An assert without grep is always asked when the workflow needs it.

That keeps the property version 1 already has: most files never reach a model.

The workflow

Hypothesis, apart from the direction that a workflow composes asserts by id with thresholds and logic. The rule list, the operators, skip, the first-match order, and lazy evaluation are all proposals.

A list of rules, read top to bottom. Each rule names an outcome and a condition. The first rule whose condition is true decides the source. If no rule matches, the source passes.

workflow:
  - skip: is-customer-copy < 0.5
  - fail: asks-for-credentials > 0.8
  - fail: subject-baits > 0.7 and sender-looks-forged > 0.6
  - fail: count(> 0.6) >= 3

The expression language, kept small on purpose:

  • An assert id stands for its score: subject-baits > 0.7.
  • Comparisons: >, >=, <, <= against a number from 0 to 1.
  • Logic: and, or, not, and parentheses.
  • Counting: count(> 0.6) is how many asserts score above 0.6. count(subject-baits, presses-for-time, generic-greeting > 0.6) counts within a named set. any(...) and all(...) are the two common cases.
  • Outcomes: fail and skip. skip takes the place of select.decide: a question decides whether the source is in scope at all.

Evaluation is lazy. An assert is asked only when a rule that is being evaluated needs its score, and a rule stops as soon as its result is known. The author controls cost by ordering: decisive, cheap rules first. Asking is in the order the rules read, so the same file always takes the same path.

This is the small state machine: ask what the current rule needs, decide, or move to the next rule.

Findings and outcomes

Hypothesis.

Outcomes stay pass, fail, and skip, and the exit codes do not change.

When a fail rule fires, the finding lists each assert that made the rule true, with its fail message, so the report still names the exact thing to fix:

emails/launch.md  no-spam/asks-for-credentials  Never ask for credentials by email.

A rule that fires on a count reports every assert it counted.

Where the engines go

Hypothesis, apart from the direction that the author no longer picks an engine per assert.

Out of the Test and into the config. The Test says what to ask. The config says who answers.

  • Questions go to the decision model.
  • The reasoning model becomes an escalation the config controls, not a field on the assert. Proposed: when a score lands in an uncertain band, for example 0.4 to 0.6, and the rule's result depends on it, the question is asked again of the reasoning model. Whether it survives at all is an open question.
  • The single assert.threshold in the config goes away. Thresholds live in the workflow, next to the logic that uses them.

Cost

Hypothesis, and the one that most needs measuring.

Tens of questions per file must not mean tens of calls per file. The decision API already accepts several questions about one input in a single call, so the questions a rule needs can be sent together: the file is sent once and each answer comes back with its own score. With grep gates and lazy rules on top, a Test with thirty asserts should cost about what a version 1 Test with three does. This has to be measured on the accuracy fixture before it is promised, including whether batching changes the scores.

Evals

Hypothesis.

The folder format does not change: a tiny repository and an eval.yaml with the outcome it expects.

Two additions make thresholds an engineering decision instead of a guess:

  • eval prints each assert's score for each eval, so the author sees how far a score is from its threshold.
  • An eval may pin which assert decides it, so a Test that fails for the wrong reason does not pass its eval by accident:
expect: fail
by: asks-for-credentials

The compile prompt

The direction is decided: the prompt pushes the agent toward many narrow questions. Hypothesis: the five steps below are how it does that.

  1. List every observable signal the rule depends on. Tens are fine. One question each, about one thing the content alone can show.
  2. Add a grep wherever a text signal can rule the question out for free.
  3. Write the workflow: which single signals are decisive, which pairs, and how many weak ones together.
  4. Write evals, with near-miss pairs: two cases that look alike and must get different outcomes.
  5. Run eval, read the scores, and set each threshold with a margin on both sides.

Upgrading from version 1

Hypothesis.

Following the versioning rules below: one runner, the schema is versioned, and the loader upgrades on read.

  • A version 1 assertion becomes an assert whose description is its criterion, and a rule fail: <id> < threshold, since a version 1 criterion states the passing condition. Its grep carries over.
  • A version 1 select.decide becomes an assert and a skip rule.
  • error becomes fail.
  • A version 1 file keeps running unchanged. Nobody rewrites a Test by hand.

Hypotheses to settle in the next discussion

Each is stated as the current guess, so it can be confirmed, changed, or dropped.

  1. Polarity. A question asks for the problem ("does it ask for credentials?"), so a high score is bad. Version 1 does the opposite: a criterion states the passing condition. The expression language allows both; this is about the convention.
  2. grep semantics. grep is a gate only. The alternative: an assert can be a text check alone, scoring 1 on a match with no model.
  3. Bare ids. subject-baits and sender-looks-forged is not allowed; every comparison names its number. The alternative: a bare id means "above a default threshold".
  4. How much language. Comparisons, logic, and count are enough for the first release. Sums and averages wait.
  5. The reasoning model. It stays, as a config-level escalation for uncertain scores. The alternative: drop it and rely on narrower questions.
  6. Messages. The asserts' fail texts are always enough. The alternative: a rule can carry its own message.
  7. Names. workflow, fail, and assert. The alternatives: rules, error, checks.
  8. Selection. Content decisions move to asserts and skip rules, and select keeps glob. The alternative: select stays as it is in version 1.
  9. Batching. Several questions in one call give the same scores as one question per call. Unknown until measured.
  10. Lazy evaluation and rule order. First match decides and asserts are asked only when needed. The alternative: ask everything, then evaluate, which costs more and is simpler to reason about.
  11. by in an eval. Evals can pin the assert that decides them. The alternative: outcomes only, as in version 1.
  12. Scope of one question. A question sees one source. Rules that compare two files stay out of this version.

Work, when the design is agreed

This list follows the hypotheses above and changes with them.

  • Schema version: 2 and the upgrade from version 1.
  • The expression language: parser, validation with clear errors, and lazy evaluation.
  • Batched questions in the decision engine, measured on the accuracy fixture.
  • Findings that list the asserts behind a rule.
  • eval with per-assert scores and the optional by.
  • The compile prompt rewritten around many questions and a workflow.
  • README and demo updated to a composed example.

3. Selectors

Additive: select grows from one object to an object or a list. To be revisited once chapter 2 settles how much selection moves into asserts.

  • Several selectors per Test, each with an ID; a source selected by any of them is tested.
  • Typed selection: files or directories.
  • where: select a directory by querying its immediate children.
  • Child counts: each where entry bounds how many children match with min, max and exactly, the same keys as count in Count checks, per-line judgment, and Vale-style prose checks #108, instead of result: and six comparison names. count itself counts text in a source (Count checks, per-line judgment, and Vale-style prose checks #108).
  • Glob exclusions: ! patterns behave like .gitignore. Version 1 only rejects them.
Earlier selector draft, written before version 1 was scoped

Kept for reference. Names predate version 1 (ask is now decide) and the syntax is not settled.

select:
  type: directories
  glob: 'src/**/*-ui'
  where:
    - glob: '*'
      result:
        equals: 3
    - glob: 'types.ts'
    - glob: 'component.svelte'
    - glob: '*.svelte'
      grep: '\bTODO\b'
      result:
        equals: 0

where is directory-only, one level, and retains the parent directory. Each entry independently queries the same immediate children, using paths relative to that parent. Filters and where entries combine with AND; alternatives within a filter combine with OR. result compares matching target counts, not grep occurrences; omitted result means at least one match. Comparisons: equals, different-from, more-than, less-than, more-or-equals, less-or-equals; several combine with AND. Zero matches can satisfy equals: 0. An empty final selection runs no tests.

4. Findings and reporting

  • explain: why a question got its score. Version 1 engines return scores only.
  • System prompt override for the model engines; version 1 always uses the built-in prompt.
  • Findings with line, quote, reason, and fix.
  • JSON reports.
  • GitHub annotations.

5. Evals and benchmarks

  • Benchmarks: run the same evals across models and compare accuracy, consistency, speed, and cost.
  • Source freshness: validate flags a test.yaml older than its TEST.md.

6. CLI

  • targets <id>: list the sources a Test would inspect.
  • docs: ship the skills that teach agents to write and run Tests.

7. Integrations

  • GitHub Action: run on pull requests and pushes, with documented setup.
  • Testing plugins on the shared runner: Vitest, Bun, Playwright Test, Jest.

8. Community library

  • Catalog of shared Tests in library/.
  • add <id>: install a library Test.
  • vote <id>: vote for a library Test.
  • Attribution and contribution guidance.
  • Screening of contributions for malware and prompt injection.

9. Documentation site

  • Bring back the documentation site, built from docs/usecases.md and the README.

Versioning rules

  • version describes the test.yaml format, not the npm package. The package keeps semver.
  • Additive changes do not bump it. Only a change that makes an old file mean something else does.
  • One runner. Only the schema is versioned. A breaking format adds an upgrade function; the loader upgrades on read and the runner only sees the latest shape.
  • A file with a version newer than the installed package fails with "upgrade agentests".

Sub-issues

Collapse Sub-issuesSub-issues

1 of 11 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. feuersteiner
    changed the title [-]V1 implementation[/-] [+]Roadmap[/+] on Nov 13, 2026
  2. feuersteiner
    added a sub-issue on Nov 13, 2026
    • MVP #103
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.