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 — agentests/core/src/AGENTS.md at main · feuersteiner/agentests

Expand file tree

/

AGENTS.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
15 lines (14 loc) · 2.74 KB
/

AGENTS.md

Copy path

File metadata and controls

15 lines (14 loc) · 2.74 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

src agent guide

Validation is the loader's job and only the loader's: src/loader/ validates test files, eval files, and config, and every other folder here, including folders added later, receives clean, typed values and trusts them. Outside the loader, never validate inputs, arguments, or a module's own config: no Zod parse or safeParse, no type guards, no defensive checks on arguments. The one exception: building the engines throws when an API key is missing from the environment map. If a value can reach a module wrong, fix the loader, not the module. The main components are orchestrators, each in a folder named by its verb: scope/, select/, assert/, and eval/; new stages follow this pattern. src/index.ts holds Agentests, the main class and the entry for everything: built from the full config and the environment map, it builds the engines (throwing when an API key is missing) and one ScopeOrchestrator, SelectOrchestrator, AssertOrchestrator, and EvalOrchestrator, keeps the engines as a protected member, for test stubs, and the orchestrators as private members, and coordinates them; it loads Tests and evals through the loader; its public members are run(scope, id?) and eval(id?), nothing else; it is not a barrel. The folder's index.ts exports a <Verb>Orchestrator class built once from the engines and/or its config section (the eval orchestrator from the other orchestrators), whose run(...) receives the Test's block and the sources (the run's scope for the scope orchestrator, the Test and one eval for the eval orchestrator); its types.ts holds <Verb>Schema / AgentTest<Verb> and <Verb>ConfigSchema / AgentTest<Verb>Config where a schema exists. Orchestrators keep no per-Test state and decide engine order, early stopping, and thresholds; engines only score. Orchestrators never walk the file system or call Git, except the scope orchestrator, the only one that does (it lists the scope's files from Git, or an eval folder's files from disk, then applies ignore). src/types.ts holds only the shared building blocks and imports nothing from this package; each folder owns its types and schemas in its own types.ts and may import the shared ones. assert/types.ts owns AgentTestResult; eval/types.ts owns AgentTestEvalResult and AgentTestEvalsResult. Tests need no eval folders; their eval results are an empty list. Public re-exports live outside src/, in core/index.ts and core/types.ts; nothing in src/ re-exports another folder's names. The whole test.yaml, eval.yaml, and config schemas live in src/loader/types.ts because only the loader validates with them. Never make src/types.ts import from a folder (a circular import that fails at load time); exported names keep the AgentTest* prefix.

You are visitor 01402792 — 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.