Skip to content

fix(eval): reject per-case target selection - #1551

Merged
christso merged 1 commit into
mainfrom
hard-deprecate-per-case-targets
Jun 28, 2026
Merged

fix(eval): reject per-case target selection#1551
christso merged 1 commit into
mainfrom
hard-deprecate-per-case-targets

Conversation

@christso

@christso christso commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Authored eval YAML no longer supports target selection inside individual test-case execution blocks. The test-case execution schema now omits target and targets, and the parser/validator reject unsupported test execution keys through generic strictness instead of a bespoke field-specific deprecation path.

Runtime matrix execution no longer reads EvalTest.targets, so every selected suite/experiment/CLI target runs the same filtered case set rather than silently creating sparse per-case matrices. Promptfoo imports keep default provider filters at the suite target level and reject test-level provider filters because they would require unsupported per-case target selection.

Docs, examples, the eval-writer guidance, and the generated schema reference now show target choice as runtime policy rather than test-case data.

Validation

  • bun install --frozen-lockfile (dependencies were absent in this isolated worktree; lockfile unchanged)
  • bun --filter @agentv/core build
  • bun test packages/core/test/evaluation/matrix-targets.test.ts packages/core/test/evaluation/eval-inline-experiment.test.ts packages/core/test/evaluation/validation/eval-file-schema.test.ts packages/core/test/evaluation/validation/eval-validator.test.ts packages/core/test/evaluation/loaders/config-loader.test.ts apps/cli/src/commands/import/promptfoo.test.ts apps/cli/test/commands/eval/task-bundle.test.ts packages/core/test/evaluation/validation/eval-schema-sync.test.ts
  • bun run typecheck
  • bun run lint
  • git diff --check

Post-Deploy Monitoring & Validation

No additional operational monitoring required. This is local parser/validator/CLI behavior with no deployed runtime service; GitHub Actions are the merge gate, and failures in schema sync, core parser tests, CLI import tests, typecheck, or lint should block release.


Compound Engineering
GPT-5

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 28, 2026

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4cf921b
Status: ✅  Deploy successful!
Preview URL: https://a5bdc49c.agentv.pages.dev
Branch Preview URL: https://hard-deprecate-per-case-targ.agentv.pages.dev

View logs

@christso
christso force-pushed the hard-deprecate-per-case-targets branch from 0660be1 to 4cf921b Compare June 28, 2026 08:24
@christso
christso marked this pull request as ready for review June 28, 2026 08:34
@christso
christso merged commit 1d4b62b into main Jun 28, 2026
8 checks passed
@christso
christso deleted the hard-deprecate-per-case-targets branch June 28, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant