"use client" // Study context strip for the /embed/eval/* pages. An embedded plot // travels without the benchmark page around it, so the attribution and // protocol facts that live in the page chrome are restated here, once // per iframe. Renders only when the active summary carries a curated // collection attachment; ordinary evals render nothing. import { isAssistedResult } from "@/lib/eval-processing" import type { BenchmarkEvalSummary } from "@/lib/eval-processing" export function EmbedStudyContext({ summary }: { summary: BenchmarkEvalSummary }) { const collection = summary.collection if (!collection?.curated) return null const total = summary.model_results.length const assisted = summary.model_results.filter((r) => isAssistedResult(r.protocol_condition), ).length // The strip renders inside third-party pages; only link out to a real // web URL from the sidecar, never any other scheme. const paperUrl = collection.url && /^https?:\/\//.test(collection.url) ? collection.url : null return (
From {collection.display_name} {paperUrl && ( <> {" · "} paper ↗ )}
Runs used larger inference budgets than standard evaluation setups. {assisted > 0 && ( <> {" "} {assisted} of {total} runs received oracle score feedback (the model was told when its answer was correct). )}
) }