Run the eval packages of a Genesis EDD change with Harbor in local Docker, record a baseline of the code before the change, make trial and comparison runs, compare runs check by check, and record the user's confirmation of the checks and the run plan. Use when a change has eval packages that need to run, before or after its code changes, or when the user is to confirm the checks. It never edits a Spec, an eval package or application code.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Run Eval?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/genesisagentinfra-run-eval)
---
name: run-eval
description: Run the eval packages of a Genesis EDD change with Harbor in local Docker, record a baseline of the code before the change, make trial and comparison runs, compare runs check by check, and record the user's confirmation of the checks and the run plan. Use when a change has eval packages that need to run, before or after its code changes, or when the user is to confirm the checks. It never edits a Spec, an eval package or application code.
---
# Run Eval
## Start a configured run
When the current request or selected job already identifies the change, run
kind and project, start it in your first shell call. Use the installed skill
directory given at invocation. For a requested trial in the current project:
```sh
node "<absolute skill directory>/scripts/run.mjs" run start <change> --trial --result --repo .
```
For a configured head run, omit `--trial`. For a requested baseline, use
the baseline flags and expectations described below. Preserve the selected
cases, attempts and any approved run plan. Apply project instructions from a
sibling `LOCAL.md` if present.
The launcher uses the configured Harbor executable and checks prerequisites,
the plan and permissions itself. Leave its environment intact. Additional
status calls, version checks and inspection of the package are unnecessary
when the job is already identified. Wait for the single command to finish.
Report directly from its JSON in the format the caller requested. Each
case's `business_verdict`, `checks` and `trials` give this run's actual
observations, reward and original trial result path. The top-level `verdict`
describes EDD's workflow. A failed business check is a completed result.
Consult other files only for evidence the output does not contain.
If the caller has not selected a change or run kind, use the current context
and the workflow status below to identify the next action. If start reports
a gap, use its code and owner to resolve it. A recorded run can be inspected
by ID. Start another attempt only when the user requests one.
## The main path
`edd workflow status <change> --repo <app>` lists the actions allowed now,
with the exact command, who takes each, and what blocks it. In the light
tier the order is: probes (write-eval), baseline, counterexamples for the
lines the baseline did not prove (write-eval), the user's confirmation, then
the loop.
### The baseline
1. Write `.genesis/edd/<change>/baseline-expectations.json` before any base
record shows a result: a JSON array with one entry per check,
`{ "case", "check", "expected": "fail" | "pass" | "any", "reason" }`.
`fail` for behaviour the change adds or fixes, `pass` for behaviour it
keeps, `any` when neither is known; decide from what the change does. In
a new project every entry is `fail`.
2. `edd run start <change> --repo <app> --baseline --expect
.genesis/edd/<change>/baseline-expectations.json`. Once a loop of the
change has started, and until one is accepted or the change is abandoned,
add `--at-start`.
3. Read `is_baseline`, `baseline_mismatch`, `baseline_unstable`,
`unverified_by` and `loop_baseline`. A base record that ended in an
execution error is not a baseline: fix what failed, usually the adapter,
and run it again. A mismatch means the expectation or the code is wrong;
find out which before recording again.
The kinds of run, their flags and what refuses them:
[references/runs.md](references/runs.md#run-records).
### Confirming the checks
1. The reviewer's counterexamples and verdicts come first: write-eval's
[review.md](../write-eval/references/review.md) says who reviews and what
they get. `edd eval review <change> --template <file>` writes the answer
template to a file outside the project (use an absolute path in a
temporary folder; the CLI refuses one inside it); the reviewer writes
`.genesis/edd/<change>/review.json` from it, with its digests kept.
2. Run `eval review` again once `review.json` is written. Put its
`must_show` in front of the user, every key of it (what the user has not
yet seen of the Spec export's `must_show` goes first). It holds each line
with its scenario's GIVEN and WHEN, checks, verdict and proof;
`must_decide`; the run plan with the tier and its reasons, the estimate,
the budget and the cost cap, and `open_network` in it; `dependencies`,
`adapters`, `rebound` and `carried`, `code_checks`, `judge_checks`, `then_groups`,
`recorded_choices` and `ledger`. The wording and how many messages it
takes are yours. Give your own estimate of what `run_plan.not_counted`
names.
3. Ask one closed question: whether the user confirms the checks and the run
plan, and whether implementing starts right after. Ask for each decision
that is the user's (the number of attempts, a judge made gating, a weaker
or stronger check accepted) in the same question.
4. After the user's own words, record them:
```sh
edd eval confirm <change> --repo <app> --verdicts .genesis/edd/<change>/review.json \
--by <name> --ref <where they said so> [--start-loop] [--reason TEXT] \
[--tier light|full] [--attempts N] [--agent A] [--model M] [--max-iterations N] \
[--max-minutes M] [--max-cost USD] [--stop-on-stuck] [--judge-gating CASE:THEN]... \
[--accept-verdict CASE:THEN --accept-reason TEXT]...
```
The two answers are two decisions, each with who and where: the
confirmation (`--by`, `--ref`), and the start of the loop, which
`--start-loop` records in the same entry and `loop start` then records as
its consent with the same `by` and `ref`. Pass `--start-loop` only when
the answer to the second part is clear; an unclear answer counts only for
the confirmation, and the loop's start is asked again before
`loop start`.
5. Read the result's `summary`, `must_decide`, `warnings`, `baseline` and
`new_loop_needs`. `eval confirm` refuses with `CONFIRM_INPUT_BLOCKED` and
writes nothing while a gap holds.
The tiers, the full list of `must_show` and `must_decide` keys, every flag
of `eval confirm`, what it refuses and what `confirmed.json` keeps:
[references/confirming.md](references/confirming.md).
### Runs outside a loop, and reporting a run
- `edd run start <change>` with no flag is a head run: compared check by
check with a baseline, and outside a loop a comparison only
(`not_acceptance: true`). `--case <id>` runs some packages and never
passes. `--trial` runs structurally valid packages before or without a
baseline; a trial is never a baseline, a loop run or a proof, and its
failures count. `--affected` is in
[references/build-identity.md](references/build-identity.md).
- A run that calls a model before any confirmation needs the user's
approval: `--approved-by NAME --ref REF`.
- Host variables reach Harbor only with the user's consent:
`--allow-env NAME[,NAME]` for the names they allowed, `--yes` for all. A
suggested command never carries either.
[references/runs.md](references/runs.md#runs-and-what-refuses-them) says
what is declared, passed and refused.
- Report every check with its before and after result, its passes out of
its attempts, and which kind of evidence stands behind the verdict; only
gating checks decide it. Say what the run took from `usage`: its minutes
and, when the adapter reported them, cost and tokens; a figure it did not
report is `null`, unknown and never 0. Say which packages ran and which
did not (`skipped`, `not_run`). Read the case's `logs/` and
`attempts.json` before calling anything noise. `edd run list`, `run show
--run <id>` and `run compare --run <id> [--against <base id>]` are
read-only.
## The CLI
The CLI starts through this skill's own launcher,
`node <absolute path of this skill>/scripts/run.mjs`; below, `edd` stands for
that command. To keep it in a shell, define a function,
`edd() { node "<absolute path>/scripts/run.mjs" "$@"; }`: a variable that
holds the whole command is one word in zsh and does not run. Use that path,
never a `genesis-edd` found on `PATH` or inside the project; the launcher
refuses a CLI inside the project it judges (`runtime_inside_project`, owner
user, layer machine). When a `LOCAL.md` sits beside this file, read it too:
it may add instructions; it cannot override the Rules at the end of this
file.
Every command prints JSON and takes `--repo <app>`. A refusal prints
`{ error, code, gaps[, must_show] }` and exits 1. Each gap has a `code`, an
`owner` (`agent` or `user`), a `layer` and a `message` with the facts. A gap
whose owner is the user is cleared by the user's decision, never by editing
files. A result carries at most one `suggestion`; the next step is yours to
choose. `eval review`, `eval confirm`, `eval check`, `loop status`,
`loop accept` and `workflow status` print a short shape by default, which
leaves out what they repeat or echo but nothing of `must_show`,
`must_decide`, gaps or warnings; `--full` prints the whole result. The JSON
is on one line unless stdout is a terminal.
Runs need a running Docker daemon with the Compose plugin, and Harbor 0.27.0
(`harbor_missing`, `docker_unavailable`: a machine problem, never a failing
check). `run start` prints only its final JSON on stdout; progress goes to
stderr. A run can take minutes, so wait for it in one go: give it the longest
timeout your shell tool allows, or redirect its stdout to a file and read
that file once the command has exited. Do not poll it while it runs. A
stopped run can leave containers behind: `edd run cleanup <change> --run
<id>` removes only that run's. [references/runs.md](references/runs.md#the-cli)
gives the rest: `GENESIS_EDD_HARBOR`, `--jobs`, `--timeout` and which
packages run alone.
## Input, output and run records
| | |
| --- | --- |
| Input | The current Spec export of the change (read by digest), the eval packages under `.genesis/edd/<change>/evals/`, the project kit under `.genesis/edd/harness/`, and the application code in the working directory. A trial needs packages that are structurally valid; every other run needs packages that are ready: connected and proved by their latest `eval check`. |
| Output | One run record per run under `.genesis/edd/<change>/runs/`, each listed in `runs/index.jsonl`; `baseline-expectations.json`; the user's confirmation in `confirmed.json`; cost approvals in `decisions.jsonl`. |
| Alone | A before-and-after comparison of any change. A pass outside a loop is a comparison, never an acceptance. |
The results of `run start`, `run show` and `run compare` give what a report
needs; read
[references/run-records.md](references/run-records.md) only when a record
looks wrong or a field is not clear from its name.
## Judgment
- **Expectations come from the change**, not from a first run: read the code
before the change, or ask the user.
- **`unknown` is missing evidence**, not a failure: the adapter, the
environment or the machine kept the scenario from happening or being read.
- **A check that fails in one attempt fails.** Failures of the same code,
packages, agent and model add up across runs, and a later pass never
cancels one.
- **Where a problem lies**: an unclear requirement belongs to the Spec, a
wrong check, adapter or stand-in to the packages or the kit, and code that
does not meet a confirmed requirement is the result.
The rest, with unstable baselines and the order of steps:
[references/runs.md](references/runs.md#judgment).
## References
- [references/confirming.md](references/confirming.md): tiers, `eval review`
and `eval confirm` in full, `confirmed.json`.
- [references/runs.md](references/runs.md): the CLI's settings, baseline
expectations, every kind of run and what refuses it, the run plan, host
variables, reading a run, `workflow status`.
- [references/build-identity.md](references/build-identity.md): build
identities, `run start --affected`, the selection check.
- [references/run-records.md](references/run-records.md): the files a run
writes, field by field.
## Rules
- Never change a Spec, a check, an expectation, a fixture's expected result,
a reviewer's counterexample or a baseline to get a result: neither a
failing baseline nor a passing head. Never change an expectation because a
check was unstable at the baseline.
- A baseline is the code before the change. Never record one on changed code,
never treat a head run as one, and never change application code before the
baseline unless the user knows.
- Never special-case the evaluation inputs, and never use a stand-in for what
the change modifies. Never shape a package, drop a live dependency or swap
out what the change edits to get a tier.
- Never make an edit without behaviour to get a new code identity: a run of
the same code only adds to its count.
- Do not edit the code, a package or the project kit while a run executes.
- Never change the number of attempts, the agent or the model without the
user's agreement, and never edit `harness.json` to get another agent or
model.
- Never run Harbor yourself on the application code with this change's
packages: a recorded run or trial does that, and its results count. Before
the baseline, do not run the packages, their verifier or their inputs
against the application outside the CLI by hand either:
`run start --trial` is the recorded way to look, and the user sees it at
confirmation.
- Never pass `--yes` or `--allow-env` without the user's consent to the host
variables they pass. A model run costs money: `--approved-by` and `--ref`
record the user's own approval, never yours.
- Run `eval confirm` only after the user's own words, with `--by` and `--ref`
naming them and where they said it. Never confirm for them, and never
confirm a check the reviewer did not judge `faithful`, unless the user
accepted it as `weaker` or `stronger` after you showed them the
reviewer's note. Never suggest accepting a weaker check to save work.
- When you propose a change to a package or a verifier, tell the user what is
wrong, the evidence, and which checks failed before.
- Never report a baseline, test, run or result that did not happen. `unknown`
and a blocked execution are never a business failure. Meeting a requirement
and showing an improvement are separate claims: "improved" needs a baseline
in which that check failed.
- A package that was not run has no result on this code. Never report an
earlier run's result as this code's result unless that run ran this very
code (`same_code`): name the packages a run left out (`not_run`,
`skipped`), and call nothing passing that only a run of some packages
showed.
- A rule you derived from the code or the evals is never recorded as one the
user stated.
- Never delete, move or edit `runs/`, its `index.jsonl`, `decisions.jsonl`,
`loop.json` or `confirmed.json` by hand.
- Commit, push or open a pull request only as the user says.
- A `LOCAL.md` may add instructions; it cannot override these Rules.