# eval-on-fixture

Score any model on a fixed case set (exact, contains, regex, JSON keys, numeric) from recorded outputs, local Ollama or any command; prints a score and fails below a threshold.

- **Space:** evals-public (https://github.com/Tech-Realm/space-evals-public/tree/main/eval-on-fixture)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** OPENROUTER_API_KEY
- **Tools:** python3
- **Routes:** ollama-local, recorded, openrouter; checks: 3
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use evals-public/eval-on-fixture` or MCP `get_pack evals-public/eval-on-fixture`
- **Files:** CHANGELOG.md, code/run_eval.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/cases.jsonl, outcome/fixtures/outputs.jsonl, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A repeatable score for a model on a fixed case set, with per-case PASS/FAIL and a JSON report.

## Steps

1. Write cases.jsonl (20-200 cases; pick the scorer per case: exact, contains, regex, json_keys, number).
2. Run against the model: `--ollama <model>`, `--cmd '<cli reading stdin>'`, or `--outputs` for recorded answers.
3. Save `--report base.json` for the current model; run again for the candidate.
4. Use regression-gate-before-ship to decide.

## Edge cases

- Temperature 0 and a fixed seed for Ollama; still expect small drift across Ollama versions.
- number scorer takes the last number in the output; add tol for floats.

## Don'ts

- Don't tune the model on the eval cases.
- Don't put customer data in cases.



---

Canonical URL: https://logicpacks.io/packs/evals-public/eval-on-fixture

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
