Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Evals: Runtime, Agent, and Human

An eval (eval ID : EVALUATOR = { … } inside an Artifact, qualified as <artifact>/<id>) is a single check on an Artifact. Every eval has a title and names its evaluator, one of three kinds; Agent and Human evals state what passes in their instruction (see Eval fields). Every result has one shape, { verdict, kind, issues }:

KindEvaluatorVerdict & issues
runtimeruntime(command = …, args = […]): a programExit 0 is GREEN; any other exit code is RED, with one issue holding the exit code and the end of what it printed. Operational failures (missing binary, timeout, unreadable output, or INPUT_CHANGED) record ERROR.
agentA profile’s name: one exact LLM (backend + model) using composed read-only toolsissues of {priority, reason} objects (P0–P3); Artifactize derives GREEN or RED from red_at.
humanhuman: a person who claims the waiting request and answers itGREEN with no issues, or RED with at least one {reason}: each a thing the Artifact must change.

Runtime evals

#![allow(unused)]
fn main() {
// Run the library's tests with the lockfile.
eval tests : runtime(command = "cargo", args = ["test", "--locked"], timeout_ms = 240000) = {
  title = "The library tests pass"
  deps = [cargo-lock]
}
}
  • command (an executable, not a shell command string) and separate args run in the target’s execution base (Target kinds; Windows .cmd/.bat batch scripts are supported), with empty stdin, the author’s environment (minus caller ARTIFACTIZE_* variables), ARTIFACTIZE_WORKSPACE_DIR, ARTIFACTIZE_OUTPUT_DIR, and ARTIFACTIZE_TMP_DIR (with TMPDIR/TMP/TEMP redirected to that private scratch directory).
  • @{path name} or @{path name/subpath} in args resolves to the absolute path (or Live URI) of that Artifact (@{path self} is the eval’s own target). Naming another Artifact there makes it an eval dependency; an Artifact the command reads without naming it in args is listed in deps. A runtime eval has no instruction: the exit code is the verdict, so explain it in a // comment.
  • Captured stdout and stderr are saved in the attempt’s logs and inspected via artifactize request logs REQUEST_ID or the Desktop Detail view; a RED result keeps the end of what was printed as its issue. If the post-execution recheck finds a different fingerprint or Live snapshot than when the check started, the result is ERROR (INPUT_CHANGED).

Agent evals

#![allow(unused)]
fn main() {
// .artifactize/profiles.artfprofiles
profile sol : agent = { backend = "codex", model = "gpt-6.2-sol", reasoning = "high", max_tokens = 100000, max_tool_calls = 100 }
}
#![allow(unused)]
fn main() {
artf app : files = {
  path = "app/"

  eval review : sol = {
    title = "The implementation satisfies the spec"
    red_at = "P1"
    instruction = "Review @{artf self} against @{artf spec}. Report each unmet requirement as an issue."
  }
}
}
  • Backends and models: backend names openai, anthropic, gemini, codex, claude-agent, or a custom provider configured with artifactize provider (or in the desktop app’s Settings → Providers). ACP coding agents such as Antigravity are Chat only; use gemini with an API key for Google models in an Agent eval. There is no built-in model catalog for declarations or automatic model fallback; model must match the provider’s exact model ID (artifactize models BACKEND).
  • Profiles: an Agent eval names a profile declared once in a .artfprofiles file (profile NAME : agent = { … }). A profile can choose its setting by an environment variable (match REVIEW_TIER { default => { … }, heavy => { … } }), so one project runs its reviews cheaply day to day and with a stronger model when that variable says so. See Agent profiles.
  • Reasoning and budgets: reasoning is passed as-is (openai and codex: none, minimal, low, medium, high, xhigh, max; claude-agent: low, medium, high, xhigh, max; anthropic: low, medium, high, max; gemini: minimal, low, medium, high). Optional max_tokens and max_tool_calls cap total reported tokens and attempted tool calls across the review (exceeding either ends the review with ERROR/PROVIDER_BUDGET_EXCEEDED).
  • Read-only review: the Agent only reviews using the tools composed on the target and on the Artifacts the eval names. For claude-agent, your local Claude Code hooks, skills, CLAUDE.md, memory, and MCP servers are isolated from the review.
  • Issues and verdict: the Agent returns a JSON object with an issues list of {priority, reason} objects (P0 highest to P3 lowest; empty when there are none), or the review ends ERROR/INVALID_RESULT (inspect the saved conversation with artifactize session show REF). Artifactize derives RED when any issue is at red_at or higher (or any issue at all when red_at is omitted), and retains issues below red_at even when the eval is GREEN.
  • Timeouts and backend stopping: an Agent review ends after timeout_ms when its profile sets one, otherwise after ARTIFACTIZE_AGENT_TIMEOUT_MS milliseconds when that variable is set, otherwise after 30 minutes. If a provider fails with AUTHENTICATION or QUOTA, Artifactize stops starting further reviews on that backend for the rest of the Run (BACKEND_STOPPED); re-authenticate with artifactize login or restore quota before rerunning verify.
  • Saved conversations: each review’s full transcript and tool calls are saved locally by default under $STATE/agent-sessions/ (configured via agentSessions in limits.json). Inspect them with artifactize session show REF [--summary] or ask a follow-up question without changing the recorded verdict using artifactize session send REF "Question".

Human evals

#![allow(unused)]
fn main() {
eval approved : human = {
  title = "The release notes are approved"
  instruction = "Open @{artf notes} and verify the highlights before signing off."
}
}

A Human eval asks a person to claim the waiting request, optionally run its Human tools, and answer GREEN, or RED with one issue for each thing to change (artifactize request commands, artifactize review, or the Desktop app). GREEN takes no issues: approval lists none. How Human sign-offs are scheduled after sibling machine evals, joined by follower Runs, and reused across Runs is covered in Sign-offs and the end of a Run.