Proposal: EvalPort export adapter for this repo's requirement-judge results (no runner changes)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- tooling
Research direction
Start with evals///requirements.yaml, runner/evaluators/llm/requirements.ts, runner/evaluators/llm/utils.ts, runner/judge.ts, and the persisted results// files described in the issue. Review the EvalPort spec and its opik-openeval-adapter precedent before defining the standalone adapter. Done means the external adapter can convert these eval inputs and judge results into EvalPort data while documenting the non-lossless fields and requiring no changes here.
Written by the indexing model from the issue text.
Description
What I looked at
I read through the actual runner and data model, not just the README, before writing this:
evals/<category>/<eval-id>/{prompt.md, requirements.yaml, app/, reference/}— e.g.evals/skia/09-rn-skia-blur-filter/requirements.yamlrunner/evaluators/llm/requirements.ts— therequirements.yamlschema (version,requirements[].{id, description, weight})runner/evaluators/llm/utils.ts—RequirementResult = {id, description, weight, passed, reason, evidence[], confidence?}andcomputeScore()(the weighted pass ratio)runner/judge.ts— the persisted per-eval JSON (results/<run-id>/evals/<eval-id>.json) andsummary.jsonshapes- PR #380 and artus9033's comment on it, re: the deliberate "opinionated, best-practice-enforcing" judging philosophy, plus the v2 graded partial-credit work in flight there
What I'm proposing
I maintain EvalPort, an open JSON format (TestCase / Grader / EvalSuite / ResultSet) for making eval datasets and results portable across frameworks. I'd like to build a standalone adapter package — the same pattern as the existing opik-openeval-adapter, autogen-openeval-adapter, crewai-openeval-adapter in that repo — that converts this repo's evals and judge results to/from EvalPort, with zero changes to this repo or its runner. It would live in the EvalPort repo, not here, and read evals/** and results/<run-id>/** as input only.
The mapping is unusually clean because your requirement-judge model already looks like EvalPort's grader model:
evals/<cat>/<id>/requirements.yaml → EvalSuite
// one grader per requirement — 'llm_judge' is EvalPort's closest well-known type
// for "an LLM evaluates output against a rubric"
function requirementToGrader(r: RequirementDefinition): Grader {
return {
id: r.id,
type: 'llm_judge',
description: r.description,
weight: r.weight ?? 1,
params: { prompt: r.description }, // model is a run-time (--model) setting here,
// not fixed per requirement — see gap #4
}
}
function evalToTestCase(evalId: string, promptMd: string, appFiles: LoadedFile[], reqs: RequirementDefinition[]): TestCase {
return {
id: evalId, // e.g. "skia/09-rn-skia-blur-filter"
input: promptMd,
context: appFiles.map(f => `// ${f.path}\n${f.content}`),
graders: reqs.map(r => r.id),
metadata: { 'callstack.evalPath': `evals/${evalId}` },
}
}
results/<run-id>/evals/<id>.json → ResultSet.results[]
function requirementResultToGraderResult(r: RequirementResult): GraderResult {
return {
grader_id: r.id,
type: 'llm_judge',
score: r.confidence ?? (r.passed ? 1 : 0), // v1 has no numeric score; v2 (#380) adds
// one — passes straight through once that lands
passed: r.passed,
reason: r.reason,
metadata: { evidence: r.evidence, weight: r.weight },
}
}
function persistedResultToResult(p: PersistedEvalResult): Result {
return {
test_case_id: p.evalId,
actual_output: p.outputFiles.map(f => `// ${f}`).join('\n'), // see gap #1
grader_results: p.llmJudgeRequirements.map(requirementResultToGraderResult),
passed: p.score.ratio >= 0.5, // configurable threshold, same convention the opik adapter uses
metadata: { judgeModel: p.judgeModel, solverModel: p.solverModel, ratio: p.score.ratio },
}
}
summary.json (evalCount, requirementsTotal/Passed, weightedAverageScore) maps directly onto ResultSet.summary (total, pass_rate derived from requirementsPassed/Total, avg_score = weightedAverageScore).
Honest gaps — this would not be a lossless round-trip
actual_outputis a poor fit for multi-file submissions.Result.actual_outputis one string; a solver's output is N files (app/App.tsx, sometimes_layout.tsx+index.tsx+ more, per eval). The concatenation above is lossy for per-file diffing — I'd keep real per-file content inmetadata.filesand treat the joined string as a convenience field only.expected_output/reference/isn't a golden answer. Yourreference/files are judge-grounding context, not something the model output is string- or semantic-diffed against. I'd map them intometadata.reference_filesrather than the schema'sexpected_outputfield, so nothing implies an exact-match semantic that doesn't exist here.- This can't carry the "opinionated" judging intent, only its output. As artus9033 noted on #380, scoring is deliberately opinionated — rewarding best-practice APIs, penalizing specific bad ones — not pure intent-matching.
params.prompt = r.descriptionpreserves the requirement text, so a tool that re-runs the same judge model against it would reproduce that behavior, but a tool that only reads the exportedResultSetgets the result (pass/fail/reason/evidence), not the grading philosophy behind it. That's inherent to exporting judge results, not specific to this mapping. - v1/v2 split, and grader-level
model.llm_judge's well-known params aremodel+prompt; here the judge model is a--modelrun-time flag, the same for every requirement in a run, not fixed per grader. I'd leave it out of the sharedGraderand set it onResultSet.provider.modelinstead (fromjudgeModel), and would carrymethodologyVersionfrom #380 inmetadataunder acallstack.*key, sinceopeneval.*is reserved by the spec.
The ask
Would an export path like this be useful — e.g. for publishing results in a format other eval tooling (or a cross-framework leaderboard) could ingest without hand-parsing results/ JSON? If so, I'll build and maintain the adapter in the EvalPort repo; it needs no PR here and no runner changes. If the "results as portable data" framing doesn't fit how you want this benchmark consumed, that's a completely reasonable answer too — happy to close this out.
EvalPort spec: https://github.com/adhabnr-ux/evalport/blob/main/spec/SPEC.md
Precedent adapter (same pattern, different source project): https://github.com/adhabnr-ux/evalport/tree/main/adapters/opik-openeval-adapter
— Sahi, independent contributor (not affiliated with this project)
- Dominant language
- TypeScript
- Stars
- 112
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstackincubator/evals
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
callstackincubator/evals#391 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
callstackincubator/evals#385 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
callstackincubator/evals#371 · 8 reactions ·
All issues in callstackincubator/evals
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
earendil-works/gondolin#222 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
endora-commerce/endora-commerce#2203 ·
Maintainers usually reply within 1 day
-
enhancement priority:medium ready-for-human
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
wondermoney/wondermoney#1079 ·
Maintainers usually reply within 1 day