Eval cases
An eval case is one row in evals/evals.json — one prompt the model is given, one expected behavior, and a small set of assertions that decide whether the run was a pass.
The case shape
Section titled “The case shape”type EvalCase = { id: string | number; description?: string; prompt: string; expected_output?: string; setup?: WorkspaceSetup; files?: string[]; // legacy shorthand for setup assertions?: EvalAssertion[]; sandbox?: "none" | "just-bash"; sandboxMocks?: SandboxCommandMock[]; metadata?: Record<string, unknown>;};Loaded and validated by readEvalsJson (in src/evals/loader.ts) with an issue-collecting error type — invalid cases produce a structured list of issues rather than a single thrown error, so the CLI can report all problems in one pass.
A few notes on the fields:
id— string or number. Lowercase kebab-case slugs are recommended (default-world,assistant-names-file). Numbers also work. The CLI sanitizes IDs for filesystem paths undereval-<id>/, but readable IDs make the artifact tree self-documenting.prompt— exactly what you’d type into your agent. One realistic user message per case.expected_output— a human-readable description of success. Not used directly by the grader; it’s a comment for the author and for whoever reads the suite later.assertions— see Assertions for the union of types.metadata.covers: optional list of theSKILL.mdsections this case exercises, by heading text or its leading words ("Phase 2"names## Phase 2: Draft the config).auditreports an entry that matches no heading, which means the skill was restructured under the suite, and lists the sections no case covers.
Workspace setup
Section titled “Workspace setup”WorkspaceSetup unifies the ways a case prepares its execution workspace:
type WorkspaceSetup = | { kind: "empty" } | { kind: "seeded"; sources: { from: string; to?: string }[]; mountMode?: "preserve-path" | "flatten-contents" } | { kind: "fixture"; fixture: FixtureRef };-
empty— start with an empty temp workspace. Best for skills that produce files from scratch. -
seeded: copy files fromevals/into the temp workspace before the run. Each entry insourceshas afrompath insideevals/and an optionaltopath in the workspace. WithmountMode: "preserve-path", the default, a source lands at itsfrompath. With"flatten-contents", the contents of each source land at the workspace root, which is what most suites want:"setup": { "kind": "seeded", "sources": [{ "from": "files/clean-repo", "to": "." }], "mountMode": "flatten-contents" } -
fixture— use the existingFixtureRefmaterializer (insrc/fixtures/), which supports git initialization and pre-run hooks. Use this when a case needs to start from a non-trivial repo state.
The older files: ["..."] shorthand still works and becomes a seeded setup with mountMode: "preserve-path", so each file keeps its files/... path inside the workspace. Prefer setup for new cases. It states where files land and supports all three kinds.
Sandbox
Section titled “Sandbox”sandbox—"none"(default) runs the case with the host shell and real filesystem;"just-bash"runs it inside an in-processjust-bashvirtual shell rooted at the case workspace. Theread,write, andedittools share that filesystem, so absolute paths such as/tmp/xstay inside the workspace. Skills in context are readable but not writable. There’s no host shell, the repo tree is untouched, and generated files are still captured underoutputs/. The--sandboxCLI flag overrides this per run.sandboxMocks— deterministic stand-ins for external commands under thejust-bashsandbox.npm/npx/gitdefault to no-op success; override any command with specific output and file effects:
{ "id": "install-deps", "prompt": "Install dependencies.", "sandbox": "just-bash", "sandboxMocks": [ { "command": "npm", "stdout": "added 1 package\n", "exitCode": 0, "files": [{ "path": "node_modules/.installed", "content": "ok" }] } ]}Each SandboxCommandMock is { command, stdout?, stderr?, exitCode?, files?: { path, content }[] }. Mocks only apply when the case runs under just-bash.
Concrete examples
Section titled “Concrete examples”Empty workspace, single assertion:
{ "id": "default-world", "prompt": "Create a greeting.", "expected_output": "greeting.txt with 'Hello, world!'", "assertions": [ { "type": "file-exists", "path": "greeting.txt" } ]}Seeded with a fixture directory:
{ "id": 1, "prompt": "Set up semantic-release in this repo.", "files": ["files/clean-repo"], "assertions": [ { "type": "file-exists", "path": ".releaserc.json" }, { "type": "regex-match", "pattern": "conventionalcommits", "target": { "file": ".releaserc.json" } }, "The response summarizes the semantic-release plugins it installed." ]}Mixed targets (file + assistant text):
{ "id": "assistant-names-file", "prompt": "Please generate a greeting for Grace Hopper.", "assertions": [ { "type": "file-exists", "path": "greeting.txt" }, { "type": "regex-match", "pattern": "greeting\\.txt", "target": "assistant-text" }, { "type": "regex-match", "pattern": "Hello, Grace Hopper!", "target": { "file": "greeting.txt" } } ]}The third case asserts both on a file and on the assistant’s reply — the regex target can be a workspace file or the literal string "assistant-text".
Running one case in isolation
Section titled “Running one case in isolation”The CLI takes --case <id> and is repeatable, so you can run a single case end-to-end without touching the others:
arc-skill-eval run ./skills/hello-world --case default-worldThat’s the right loop while iterating on a single assertion or a single fixture — you avoid the wall-clock cost of the rest of the suite until you’ve stabilized the one case.