Skip to content

feat(decisions): add evaluation plugin with OpenRouter support - #302

Open
jack-scitix-ai wants to merge 1 commit into
scitix:mainfrom
jack-scitix-ai:feat/decisions-plugin
Open

jack-scitix-ai wants to merge 1 commit into
scitix:mainfrom
jack-scitix-ai:feat/decisions-plugin

Conversation

@jack-scitix-ai

@jack-scitix-ai jack-scitix-ai commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Type

  • feature — new benchmark, task, or capability

Summary

  • Add a standalone Decisions plugin built on EvalSubject, allowing tasks to evaluate OpenRouter Decisions without a placeholder Model.
  • Define typed text/JSON/image evidence, predicate/choice/score questions, answers, probability distributions, confidence and refusals.
  • Implement the OpenRouter Decisions API, including native field translation and response validation.
  • Add a labelled JSONL task with accuracy, refusal, Brier score and score-error metrics, plus a small local example.
  • Integrate request recording, token usage, typed persistence and strict resume; grading-only changes reuse recorded inference.
  • Add plugin tests and CI coverage. OpenAI, Google and System One support is submitted separately.
  • Declare SiEval for execution/persistence and httpx for async transport as plugin runtime dependencies. Pin SiEval to the immutable feat(core): support task-owned evaluation subjects #301 merge commit until a release provides EvalSubject.

Related Issues

Refs #299.

Built on the EvalSubject support merged in #301.

Test Plan

Automated

  • Lint/format clean (ruff check && ruff format --check)
  • Type check clean (ty check or mypy --strict)
  • Unit tests pass (pdm run pytest)

Manual

Built the plugin wheel and source distribution:

pdm build -p plugins/decisions -d /tmp/sieval-decisions-split-pr1-build

Verified that the wheel contains only the OpenRouter provider.

Validated the packaged example through the CLI:

python -m sieval run \
  plugins/decisions/examples/openrouter.yaml \
  --dry-run -o json

The plan completed with zero errors: no configured models, one dataset, one task and two samples.

Provider tests use mocked HTTP responses. Live OpenRouter calls and score comparison against a published benchmark have not been performed; the example is a local smoke dataset.

The pinned Git dependency is for development. Before publishing the plugin to PyPI, replace it with the minimum released SiEval version containing EvalSubject.

Checklist

Required (all PRs)

  • PR title follows conventional format (type(scope): description)
  • No internal paths, credentials, or personal info in committed files
  • AI-generated code has AI-Generated Code - <model> (<provider>) in module docstring
  • No new upper-layer dependencies added to core/
  • Deleted code verified — no remaining call sites depend on it

If: New Dependency

  • Added to correct PDM dependency group
  • Justified in Summary (why this package, no lighter alternative?)

Add typed decision requests and answers, a reusable EvalSubject client, and a labelled JSONL task. Record requests and token usage, preserve typed results across resume, and include plugin CI and regression tests.
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