pinecall test
Run the goldens, under every model you name.
pinecall test [paths] [--agent <name>] [--file agent.tsx] [--model m]… [--grep x] [--watch] [--json]
[--files] [--case <name>]… [--dataset] [--version n]
pinecall test --voice [--background-noise dB] [--ambience cafe] [--packet-loss 0.05]
Every golden of agents/<name>/test/goldens/ (at a project's root, each agent's own) through the agent
wherever it is held — your pinecall start, a colleague's, production's with --prod; nothing
is started here — scored by the gateway's judges, printed as a matrix. Exits 1
when a golden did not hold. One agent with no goldens yet is told where to write one and exits 2;
in a project, an agent with none is named and skipped. A run that cannot start exits 2 as well, in
one sentence: another run already going on the agent (named by its id, as below), or a golden the
gateway's schema refuses (named by the golden and the field: golden x, turns: List should have at most 40 items after validation, not 41). Every broken golden is
written whole to .pinecall/evals/<run>/<golden>.json — the golden as written, the verdicts, and
the requests the model answered, which the log deliberately keeps only a hash of.
The gateway answers the run as it starts it and plays it on; the terminal follows it on the org's
feed and prints the matrix once it is over. Ctrl-C leaves the run going on the gateway — runs show <id> reads it, and a second test on the same agent is refused naming it until it ends. A golden
that gives memory to an agent whose policy keeps none breaks alone, on the metric memory, saying
which policy to set; the rest of the suite plays.
$ pinecall test --grep reserva
clinica-norte · 2 goldens · the dataset · haiku · run_7ed3ace9352d
clinica-norte · 3 goldens · anthropic/claude-haiku-5-5
✓ no-reserva-antes-del-si file llm_node_ttft 763ms
✓ reserva-cuando-el-paciente-dice-que-si file llm_node_ttft 911ms
✓ no-da-precios-por-telefono case llm_node_ttft 804ms
3/3 · 0 judge calls · $0.0375 · 11s
Each line says where its golden came from: file for one read from agents/<name>/test/goldens/,
case for one the gateway played from the org's dataset (below).
Each step of a turn's then is a metric of its own, named by its turn: t2.tool:book,
t2.no_tool:book, t2.reply, t2.intent, t2.end, t2.nothing_else — a second one of the same
kind in that turn is t2.reply#2. The first step that breaks cuts the golden: the turns after it are not
played and its expect is not scored, so a broken golden names that turn above its broken lines:
✗ ofrece-el-martes file
turn 2 broke
t2.reply broken the reply offered no slot on Tuesday afternoon
log CA_9d1f…
--model vendor/model repeated is a column of the matrix per model. --voice says the same
goldens out loud on a real line, which rings the agent as a phone does: at whoever holds its line
(line) — the pinecall start that holds the agent, or production's process with --prod;
--background-noise puts an ambience behind the caller at that many dB under it — a television unless --ambience names a cafe, an office or a street —
at that many dB under them, and --packet-loss drops that share of their packets — a fraction
from 0 to 1 (0.05 is one in twenty), as simulate takes it. A spoken call has
no test run to assert steps on: --voice refuses a golden with an event turn or a then, and
judges the final expect alone. The audio flags are for a spoken run and are refused without
--voice, exit 2, as simulate refuses them. A spoken run plays the golden files alone — the
dataset's cases are a real caller's words, played as written calls — so --voice asks for none:
pinecall test --voice --grep reserva says the matching goldens out loud, and --voice beside
--dataset or --case is the gateway's refusal.
The files and the dataset play together. A case is a golden the gateway keeps: a real call
kept at hang-up, or one a person wrote by hand (cases). With nothing said, test plays
the golden files of agents/<name>/test/goldens/ and the approved dataset — every case of the
agent a person approved that is not held out and not kept in the repository, what a nightly asks
for (a --voice run plays the files alone, above) — and marks each line of the matrix file or case. --files plays the files alone, as a run
did before; --dataset plays the dataset alone, and agents/<name>/test/goldens/ is not read, so a
project with no goldens yet is not refused. --case <name>, repeated, plays those cases by name
alone, whatever their status — a pending one too, which is how the call that broke is reproduced
before anybody approves it; with paths or --files beside it, both. --grep narrows the files to the
goldens whose name contains the text (no pattern); the dataset plays whole. A written run's line carries
the metrics a written turn has (llm_node_ttft); e2e_latency is a spoken run's. Cases are a real caller's words, so they play only in the sandbox (the gateway
refuses --prod), and --watch beside a run of cases alone is refused with exit 2: it reads no file
that could change. In a project of several agents, each agent's files and dataset play in turn — an
agent with no goldens folder plays its dataset — and --case names one agent's cases and needs
--agent.
--version n builds every call of the run on that version of the agent's settings — as agent history numbers them — instead of the one standing: a candidate measured against what runs now. In a project of several
agents it needs --agent, as paths, --watch and --case do.
Whose settings a run plays on is the key's. From a laptop, a person's key runs on your
corner of the sandbox (agent); in CI, a sandbox server token runs on the
team's. An app written as code has nothing in either: it runs on its code. For an agent built in
Studio a deploy writes the team's corner, so a settings fix that is only in your corner is green at
your desk and red in CI until it is deployed (or agent set … --team gives it to the team).
--version names a version of the corner the run plays on.