JuliusBrussee/caveman · error · Error
requires grader , which the recorded interpreter does not…
Error message
${where} requires grader ${grader}, which the recorded interpreter does not compute What it means
Replay eval packs may only require graders the recorded interpreter is known to compute: exact_match, tool_order, tool_count, and guard_respected. json_schema is deliberately excluded because over a typed interpreter result it could only check a non-empty hash — a grader that cannot fail and would inflate the apparent rigor of a replay. Any other grader name triggers this error.
Solutions
- Replace the unsupported grader with one from the allowlist: exact_match, tool_order, tool_count, or guard_respected.
- Remove json_schema (and any unverifiable grader) from the graders list entirely.
- Fix spelling/casing so the grader name exactly matches an allowlisted identifier.
Example fix
// before "graders": ["exact_match", "json_schema"] // after "graders": ["exact_match", "tool_order"]
Defensive patterns
Strategy: validation
Validate before calling
const knownGraders = new Set(['exact_match', 'tool_order', 'tool_count', 'guard_respected']);
for (const g of item.eval_pack.graders) {
if (!knownGraders.has(g)) throw new Error(`grader ${g} not computed by recorded interpreter`);
} Type guard
const isKnownGrader = (g) => ['exact_match','tool_order','tool_count','guard_respected'].includes(g);
Try / catch
try { validateReport(report); } catch (err) { if (String(err.message).includes('which the recorded interpreter does not compute')) { /* fix graders list against allowlist */ } else throw err; } Prevention
- Keep the grader allowlist in a shared constant imported by the eval-pack editor.
- Exclude json_schema by policy for typed interpreter results.
- Validate grader names at eval-pack authoring time.
When it happens
Trigger: Running the validator on a report whose eval_pack.graders array contains a grader string outside the fixed allowlist (e.g. "json_schema", "llm_judge", or a misspelled grader name).
Common situations: Adding json_schema out of habit from other eval frameworks; typos like "exact-match" vs "exact_match"; copying graders from a different tool's eval config.
Understand the failure class
Background: Invalid enum value errors: "Unknown type", "Invalid scope", "must be one of" — when a string is not on the library's allowed list — this error's family across 23 libraries.
Related errors
- bedrock action is not allowed
- unknown trace filter(s)
- apiKey, baseURL, and agent are required
- arm must be or
- artifact_id is required
AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20).
Data as JSON: /api/errors/4394fe4d6a3c6598.
Report an issue: GitHub.
Appendix: source
Thrown at packages/shared/contracts/scripts/validate-continuous-improvement.mjs:240
throw new Error(`${where} change set or eval pack is bound to another case`);
}
// The case must investigate the pair its own opportunity named. A cohort
// built from a differently-derived pair would describe one comparison and
// measure another.
const source = report.opportunities.find((opportunity) => opportunity.id === item.opportunity_id);
if (!source) throw new Error(`${where} names an opportunity that is not in this report`);
if (armVariants.get("baseline").id !== source.current_variant_id || armVariants.get("alternative").id !== source.alternative_variant_id) {
throw new Error(`${where} cohort arms (${armVariants.get("baseline").id}/${armVariants.get("alternative").id}) are not the variants opportunity ${source.id} named`);
}
// Every required grader is one the recorded interpreter actually computes.
// `json_schema` is deliberately absent: over a typed interpreter result it
// could only assert that a hash is non-empty, which is a grader that cannot
// fail and therefore inflates how much a replay was checked.
const knownGraders = new Set(["exact_match", "tool_order", "tool_count", "guard_respected"]);
for (const grader of item.eval_pack.graders) {
if (!knownGraders.has(grader)) throw new Error(`${where} requires grader ${grader}, which the recorded interpreter does not compute`);
}
// Every dataset case — recorded or generated — must name a real analysis
// unit of this case's own task family, and its generator and perturbation
// must agree. A generated case whose source unit cannot be resolved would be
// invented evidence wearing an adversarial label.
const dataset = item.eval_pack.dataset;
const generatorPerturbation = new Map([
["recorded_case.v1", "none"],
["boundary_guard_threshold.v1", "guard_threshold_boundary"],
["adversarial_misleading_tool_output.v1", "misleading_tool_output"],
["adversarial_stale_input.v1", "stale_input"],
]);
const roleCounts = { target_failure: 0, prior_success: 0, boundary: 0, adversarial: 0 };
const recordedSources = new Set();
const datasetCaseIDs = new Set();
for (const entry of dataset.cases) {
const at = `${where} dataset case ${entry.id}`;View on GitHub (pinned to 3ee70a1026)