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 — Jev-only tests require OPENAI_API_KEY at startup · Issue #106 · feuersteiner/agentests

Jev-only tests require OPENAI_API_KEY at startup #106

New issue
Copy link
New issue
Copy link
Open
Open
Jev-only tests require OPENAI_API_KEY at startup#106
Copy link

Description

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

With agentests 1.0.1 on Node 22.19.0, both run and eval exit with code 2 when OPENAI_API_KEY is missing, even when every model assertion uses Jev through decide.

Reproduce

  1. Configure decision.api: jev with jev-latest and keep the default OpenAI reasoning section.
  2. Add a test and an eval fixture. Use decide for the assertion and leave out reason.
  3. Set TYPESAFE_AI_API_KEY, leave OPENAI_API_KEY unset, and run agentests run or agentests eval.

Both commands fail before checking any files.

Error: Missing environment variable: OPENAI_API_KEY

The error also reproduces with a placeholder Jev key because startup validates the OpenAI key before any model request. The engine factory eagerly initializes the reasoning engine even when the test uses only decide.

Expected behavior

A Jev-only run should need only TYPESAFE_AI_API_KEY. Require the reasoning provider's credentials when a check reaches a reason assertion. Allow the reasoning section to be omitted when no test uses it.

Activity

  1. mlgxiii commented on Nov 27, 2026

    @mlgxiii
    mlgxiii
    on Nov 27, 2026
    More actions

    Same root cause, wider case: a Test that uses only glob and grep also needs every API key the config names, for both run and eval (the compile prompt even tells the agent to ask for them).

    Expected: keys are checked only when a check reaches a model assertion. A grep-only Test runs with no keys and no network.

    This is what would let someone try Agentests in under a minute: init, one grep-only rule, run.

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.